]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Make home server coa config match raddb/proxy.conf
authorAlan T. DeKok <aland@freeradius.org>
Fri, 27 May 2011 08:47:09 +0000 (10:47 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 27 May 2011 08:51:00 +0000 (10:51 +0200)
src/main/realms.c

index 4e6e4afb797440628ef726a9e20a0e714a120872..6ca664bce3af9f87630b87688f5ef70bd7307bcc 100644 (file)
@@ -326,6 +326,21 @@ static char *hs_virtual_server = NULL;
 static char *hs_proto = NULL;
 #endif
 
+#ifdef WITH_COA
+static CONF_PARSER home_server_coa[] = {
+       { "irt",  PW_TYPE_INTEGER,
+         offsetof(home_server, coa_irt), 0, Stringify(2) },
+       { "mrt",  PW_TYPE_INTEGER,
+         offsetof(home_server, coa_mrt), 0, Stringify(16) },
+       { "mrc",  PW_TYPE_INTEGER,
+         offsetof(home_server, coa_mrc), 0, Stringify(5) },
+       { "mrd",  PW_TYPE_INTEGER,
+         offsetof(home_server, coa_mrd), 0, Stringify(30) },
+
+       { NULL, -1, 0, NULL, NULL }             /* end the list */
+};
+#endif
+
 static CONF_PARSER home_server_config[] = {
        { "ipaddr",  PW_TYPE_IPADDR,
          0, &hs_ip4addr,  NULL },
@@ -391,14 +406,7 @@ static CONF_PARSER home_server_config[] = {
 #endif
 
 #ifdef WITH_COA
-       { "irt",  PW_TYPE_INTEGER,
-         offsetof(home_server, coa_irt), 0, Stringify(2) },
-       { "mrt",  PW_TYPE_INTEGER,
-         offsetof(home_server, coa_mrt), 0, Stringify(16) },
-       { "mrc",  PW_TYPE_INTEGER,
-         offsetof(home_server, coa_mrc), 0, Stringify(5) },
-       { "mrd",  PW_TYPE_INTEGER,
-         offsetof(home_server, coa_mrd), 0, Stringify(30) },
+       {  "coa", PW_TYPE_SUBSECTION, 0, NULL, (const void *) home_server_coa },
 #endif
 
        { "limit", PW_TYPE_SUBSECTION, 0, NULL, (const void *) limit_config },