Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37839514
en ru br
Репозитории ALT
S:1.60-alt19
5.1: 1.60-alt15
4.1: 1.60-alt13
4.0: 1.60-alt13
3.0: 1.60-alt12
www.altlinux.org/Changes

Группа :: Система/Настройка/Сеть
Пакет: net-tools

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: net-tools-1.60-rh-alt-netstat-interface.patch
Скачать


--- net-tools-1.60/netstat.c.old	2007-03-27 09:28:28.000000000 +0200
+++ net-tools-1.60/netstat.c	2007-03-27 09:26:39.000000000 +0200
@@ -2105,7 +2105,7 @@
     fprintf(stderr, _("       netstat { [-veenNac] -I[<Iface>] | [-veenNac] -i | [-cnNe] -M | -s } [delay]\n\n"));
 
     fprintf(stderr, _("        -r, --route                display routing table\n"));
-    fprintf(stderr, _("        -I, --interfaces=[<Iface>] display interface table for <Iface>\n"));
+    fprintf(stderr, _("        -I, --interfaces=<Iface>   display interface table for <Iface>\n"));
     fprintf(stderr, _("        -i, --interfaces           display interface table\n"));
     fprintf(stderr, _("        -g, --groups               display multicast group memberships\n"));
     fprintf(stderr, _("        -s, --statistics           display networking statistics (like SNMP)\n"));
@@ -2085,7 +2085,6 @@ int main
 	AFTRANS_OPTS,
 	{"version", 0, 0, 'V'},
 	{"interfaces", 2, 0, 'I'},
-	{"interfaces", 0, 0, 'i'},
 	{"help", 0, 0, 'h'},
 	{"route", 0, 0, 'r'},
 #if HAVE_FW_MASQUERADE
@@ -2234,6 +2234,7 @@
 	case 'I':
             if (optarg && strcmp(optarg, "(null)"))
         	if (optarg[0] == '=') optarg++;
+            if (optarg && strcmp(optarg, "(null)"))
                 flag_int_name = strdup(optarg);
 	    flag_int++;
 	    break;
--- net-tools-1.60/man/en_US/netstat.8.i-option	2008-07-10 13:55:04.000000000 +0200
+++ net-tools-1.60/man/en_US/netstat.8	2008-07-15 12:21:51.000000000 +0200
@@ -43,10 +43,10 @@ netstat \- Print network connections, ro
 .RB [delay]
 .P
 .B netstat
-.RB { \-\-interfaces | \-i }
+.RB { \-\-interfaces | \-I | \-i }
 .RI [ iface ]
 .RB [ \-\-all | \-a ]
-.RB [ \-\-extend | \-e  [ \-\-extend | \-e] ]
+.RB [ \-\-extend | \-e  ]
 .RB [ \-\-verbose | \-v ]
 .RB [ \-\-program | \-p ]
 .RB [ \-\-numeric | \-n ]
@@ -107,9 +107,8 @@ families will be printed.
 Display the kernel routing tables.
 .SS "\-\-groups , \-g"
 Display multicast group membership information for IPv4 and IPv6.
-.SS "\-\-interface=\fIiface \fR, \fB\-i"
-Display a table of all network interfaces, or the specified
-.IR iface ) .
+.SS "\-\-interfaces=\fIiface \fR, \fB\-I=\fIiface \fR, \fB\-i"
+Display a table of all network interfaces, or the specified \fIiface\fR.
 .SS "\-\-masquerade , \-M"
 Display a list of masqueraded connections.
 .SS "\-\-statistics , \-s"
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin