]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
allow setting CoA filter attribute name
authorAlan T. DeKok <aland@freeradius.org>
Fri, 9 Aug 2024 19:48:05 +0000 (15:48 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 9 Aug 2024 19:48:05 +0000 (15:48 -0400)
src/bin/radclient-ng.c

index d10db83f18fda493b01cebe3620435987918f558..abb5edb0dd1ab15fbbfe5783f3aed7ebf9eab32b 100644 (file)
@@ -1387,7 +1387,7 @@ int main(int argc, char **argv)
         *
         ***********************************************************************/
 
-       while ((c = getopt(argc, argv, "46c:C:d:D:f:Fi:ho:p:P:r:sS:t:vx")) != -1) switch (c) {
+       while ((c = getopt(argc, argv, "46A:c:C:d:D:f:Fi:ho:p:P:r:sS:t:vx")) != -1) switch (c) {
                case '4':
                        fd_config.dst_ipaddr.af = AF_INET;
                        break;
@@ -1396,6 +1396,10 @@ int main(int argc, char **argv)
                        fd_config.dst_ipaddr.af = AF_INET6;
                        break;
 
+               case 'A':
+                       attr_coa_filter_name = optarg;
+                       break;
+
                case 'c':
                        if (!isdigit((uint8_t) *optarg)) usage();