]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
radclient "-i" didn't work, so just remove it to save confusion
authorMatthew Newton <matthew-git@newtoncomputing.co.uk>
Mon, 12 Mar 2018 10:37:42 +0000 (10:37 +0000)
committerMatthew Newton <matthew-git@newtoncomputing.co.uk>
Mon, 12 Mar 2018 11:40:45 +0000 (11:40 +0000)
src/main/radclient.c

index 08cbd04e908322c3bf875d9a3aed8d06ea3a8a6d..47aaf66dadf1ff690d52582dd162c076c19c8670 100644 (file)
@@ -61,7 +61,6 @@ static fr_ipaddr_t client_ipaddr;
 static uint16_t client_port = 0;
 
 static int sockfd;
-static int last_used_id = -1;
 
 #ifdef WITH_TCP
 static char const *proto = NULL;
@@ -92,7 +91,6 @@ static void NEVER_RETURNS usage(void)
        fprintf(stderr, "                         If a second file is provided, it will be used to verify responses\n");
        fprintf(stderr, "  -F                     Print the file name, packet number and reply code.\n");
        fprintf(stderr, "  -h                     Print usage help information.\n");
-       fprintf(stderr, "  -i <id>                Set request id to 'id'.  Values may be 0..255\n");
        fprintf(stderr, "  -n <num>               Send N requests/s\n");
        fprintf(stderr, "  -p <num>               Send 'num' packets from a file in parallel.\n");
        fprintf(stderr, "  -q                     Do not print anything out.\n");
@@ -1182,7 +1180,7 @@ int main(int argc, char **argv)
                exit(1);
        }
 
-       while ((c = getopt(argc, argv, "46c:d:D:f:Fhi:n:p:qr:sS:t:vx"
+       while ((c = getopt(argc, argv, "46c:d:D:f:Fhn:p:qr:sS:t:vx"
 #ifdef WITH_TCP
                "P:"
 #endif
@@ -1234,15 +1232,6 @@ int main(int argc, char **argv)
                        print_filename = true;
                        break;
 
-               case 'i':       /* currently broken */
-                       if (!isdigit((int) *optarg))
-                               usage();
-                       last_used_id = atoi(optarg);
-                       if ((last_used_id < 0) || (last_used_id > 255)) {
-                               usage();
-                       }
-                       break;
-
                case 'n':
                        persec = atoi(optarg);
                        if (persec <= 0) usage();