]>
Commit | Line | Data |
---|---|---|
236898d6 MT |
1 | --- net-tools-1.60/netstat.c.ifaceopt 2005-03-01 12:11:43.695661632 +0100 |
2 | +++ net-tools-1.60/netstat.c 2005-03-01 12:16:37.601981080 +0100 | |
3 | @@ -1658,10 +1658,11 @@ | |
4 | { | |
5 | fprintf(stderr, _("usage: netstat [-veenNcCF] [<Af>] -r netstat {-V|--version|-h|--help}\n")); | |
6 | fprintf(stderr, _(" netstat [-vnNcaeol] [<Socket> ...]\n")); | |
7 | - fprintf(stderr, _(" netstat { [-veenNac] -i[<Iface>] | [-cnNe] -M | -s } [delay]\n\n")); | |
8 | + fprintf(stderr, _(" netstat { [-veenNac] -I[<Iface>] | [-veenNac] -i | [-cnNe] -M | -s } [delay]\n\n")); | |
9 | ||
10 | fprintf(stderr, _(" -r, --route display routing table\n")); | |
11 | - fprintf(stderr, _(" -i, --interfaces=[<Iface>] display interface table\n")); | |
12 | + fprintf(stderr, _(" -I, --interfaces=[<Iface>] display interface table for <Iface>\n")); | |
13 | + fprintf(stderr, _(" -i, --interfaces display interface table\n")); | |
14 | fprintf(stderr, _(" -g, --groups display multicast group memberships\n")); | |
15 | fprintf(stderr, _(" -s, --statistics display networking statistics (like SNMP)\n")); | |
16 | #if HAVE_FW_MASQUERADE | |
17 | @@ -1700,7 +1701,8 @@ | |
18 | { | |
19 | AFTRANS_OPTS, | |
20 | {"version", 0, 0, 'V'}, | |
21 | - {"interfaces", 2, 0, 'i'}, | |
22 | + {"interfaces", 2, 0, 'I'}, | |
23 | + {"interfaces", 0, 0, 'i'}, | |
24 | {"help", 0, 0, 'h'}, | |
25 | {"route", 0, 0, 'r'}, | |
26 | #if HAVE_FW_MASQUERADE | |
27 | @@ -1738,7 +1740,8 @@ | |
28 | getroute_init(); /* Set up AF routing support */ | |
29 | ||
30 | afname[0] = '\0'; | |
31 | - while ((i = getopt_long(argc, argv, "MCFA:acdegphi::nNorstuVv?wxl", longopts, &lop)) != EOF) | |
32 | + | |
33 | + while ((i = getopt_long(argc, argv, "MCFA:acdegphiI::nNorstuVv?wxl", longopts, &lop)) != EOF) | |
34 | switch (i) { | |
35 | case -1: | |
36 | break; | |
37 | @@ -1779,11 +1782,14 @@ | |
38 | case 'p': | |
39 | flag_prg++; | |
40 | break; | |
41 | - case 'i': | |
42 | + case 'I': | |
43 | if (optarg && strcmp(optarg, "(null)")) | |
44 | flag_int_name = strdup(optarg); | |
45 | flag_int++; | |
46 | break; | |
47 | + case 'i': | |
48 | + flag_int++; | |
49 | + break; | |
50 | case 'n': | |
51 | flag_not |= FLAG_NUM; | |
52 | break; |