]> git.ipfire.org Git - ipfire-3.x.git/blame - net-tools/patches/net-tools-1.60-i-option.patch
Move all packages to root.
[ipfire-3.x.git] / net-tools / patches / net-tools-1.60-i-option.patch
CommitLineData
236898d6
MT
1--- net-tools-1.60/netstat.c.i-option 2008-07-10 10:56:29.000000000 +0200
2+++ net-tools-1.60/netstat.c 2008-07-10 13:46:27.000000000 +0200
3@@ -2042,7 +2042,7 @@ static void usage(void)
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, --interface=[<Iface>] display interface table for <Iface>\n"));
8+ fprintf(stderr, _(" -I, --interfaces=<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@@ -2085,7 +2085,6 @@ int main
13 AFTRANS_OPTS,
14 {"version", 0, 0, 'V'},
15 {"interfaces", 2, 0, 'I'},
16- {"interfaces", 0, 0, 'i'},
17 {"help", 0, 0, 'h'},
18 {"route", 0, 0, 'r'},
19 #if HAVE_FW_MASQUERADE
20@@ -2173,10 +2172,6 @@ int main
21 if (optarg[0] == '=') optarg++;
22 if (optarg && strcmp(optarg, "(null)"))
23 flag_int_name = strdup(optarg);
24- else {
25- usage();
26- exit(1);
27- }
28 flag_int++;
29 break;
30 case 'i':
31--- net-tools-1.60/man/en_US/netstat.8.i-option 2008-07-10 13:55:04.000000000 +0200
32+++ net-tools-1.60/man/en_US/netstat.8 2008-07-15 12:21:51.000000000 +0200
33@@ -43,10 +43,10 @@ netstat \- Print network connections, ro
34 .RB [delay]
35 .P
36 .B netstat
37-.RB { \-\-interfaces | \-i }
38+.RB { \-\-interfaces | \-I | \-i }
39 .RI [ iface ]
40 .RB [ \-\-all | \-a ]
41-.RB [ \-\-extend | \-e [ \-\-extend | \-e] ]
42+.RB [ \-\-extend | \-e ]
43 .RB [ \-\-verbose | \-v ]
44 .RB [ \-\-program | \-p ]
45 .RB [ \-\-numeric | \-n ]
46@@ -107,9 +107,8 @@ families will be printed.
47 Display the kernel routing tables.
48 .SS "\-\-groups , \-g"
49 Display multicast group membership information for IPv4 and IPv6.
50-.SS "\-\-interface=\fIiface \fR, \fB\-i"
51-Display a table of all network interfaces, or the specified
52-.IR iface ) .
53+.SS "\-\-interfaces=\fIiface \fR, \fB\-I=\fIiface \fR, \fB\-i"
54+Display a table of all network interfaces, or the specified \fIiface\fR.
55 .SS "\-\-masquerade , \-M"
56 Display a list of masqueraded connections.
57 .SS "\-\-statistics , \-s"