From: Matthew Newton Date: Mon, 12 Mar 2018 10:37:42 +0000 (+0000) Subject: radclient "-i" didn't work, so just remove it to save confusion X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea5b99abaab09645c2a64f27d90d7d324c278684;p=thirdparty%2Ffreeradius-server.git radclient "-i" didn't work, so just remove it to save confusion --- diff --git a/src/main/radclient.c b/src/main/radclient.c index 08cbd04e908..47aaf66dadf 100644 --- a/src/main/radclient.c +++ b/src/main/radclient.c @@ -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 Set request id to 'id'. Values may be 0..255\n"); fprintf(stderr, " -n Send N requests/s\n"); fprintf(stderr, " -p 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();