]> 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:47:09 +0000 (10:47 +0200)
src/main/realms.c

index e063e544961586ec080ccfe80183b47b575b75cd..ca45c7049ecb5845cdbf2e12415d4fea42de7cd1 100644 (file)
@@ -286,6 +286,21 @@ static char *hs_type = NULL;
 static char *hs_check = NULL;
 static char *hs_virtual_server = NULL;
 
+#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 },
@@ -346,14 +361,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
 
        { NULL, -1, 0, NULL, NULL }             /* end the list */