]>
Commit | Line | Data |
---|---|---|
236898d6 MT |
1 | --- net-tools-1.60/netstat.c.old 2007-03-27 09:28:28.000000000 +0200 |
2 | +++ net-tools-1.60/netstat.c 2007-03-27 09:26:39.000000000 +0200 | |
3 | @@ -2105,7 +2105,7 @@ | |
4 | fprintf(stderr, _(" netstat { [-veenNac] -I[<Iface>] | [-veenNac] -i | [-cnNe] -M | -s } [delay]\n\n")); | |
5 | ||
6 | fprintf(stderr, _(" -r, --route display routing table\n")); | |
7 | - fprintf(stderr, _(" -I, --interfaces=[<Iface>] display interface table for <Iface>\n")); | |
8 | + fprintf(stderr, _(" -I, --interface=[<Iface>] display interface table for <Iface>\n")); | |
9 | fprintf(stderr, _(" -i, --interfaces display interface table\n")); | |
10 | fprintf(stderr, _(" -g, --groups display multicast group memberships\n")); | |
11 | fprintf(stderr, _(" -s, --statistics display networking statistics (like SNMP)\n")); | |
12 | @@ -2234,7 +2234,12 @@ | |
13 | case 'I': | |
14 | if (optarg && strcmp(optarg, "(null)")) | |
15 | if (optarg[0] == '=') optarg++; | |
16 | - flag_int_name = strdup(optarg); | |
17 | + if (optarg && strcmp(optarg, "(null)")) | |
18 | + flag_int_name = strdup(optarg); | |
19 | + else { | |
20 | + usage(); | |
21 | + exit(1); | |
22 | + } | |
23 | flag_int++; | |
24 | break; | |
25 | case 'i': |