ALT Linux Bugzilla
– Attachment 2708 Details for
Bug 12628
segmentation fault netstat -I eth0
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
Updated patch version
net-tools-1.60-rh-netstat-ifaceopt.patch (text/plain), 2.09 KB, created by
Slava Semushin
on 2008-07-18 11:40:24 MSD
(
hide
)
Description:
Updated patch version
Filename:
MIME Type:
Creator:
Slava Semushin
Created:
2008-07-18 11:40:24 MSD
Size:
2.09 KB
patch
obsolete
>--- net-tools-1.60/netstat.c.ifaceopt 2005-03-01 12:11:43.695661632 +0100 >+++ net-tools-1.60/netstat.c 2005-03-01 12:16:37.601981080 +0100 >@@ -1658,10 +1658,11 @@ > { > fprintf(stderr, _("usage: netstat [-veenNcCF] [<Af>] -r netstat {-V|--version|-h|--help}\n")); > fprintf(stderr, _(" netstat [-vnNcaeol] [<Socket> ...]\n")); >- fprintf(stderr, _(" netstat { [-veenNac] -i[<Iface>] | [-cnNe] -M | -s } [delay]\n\n")); >+ 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\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")); > #if HAVE_FW_MASQUERADE >@@ -1700,7 +1701,8 @@ > { > AFTRANS_OPTS, > {"version", 0, 0, 'V'}, >- {"interfaces", 2, 0, 'i'}, >+ {"interfaces", 2, 0, 'I'}, >+ {"interfaces", 0, 0, 'i'}, > {"help", 0, 0, 'h'}, > {"route", 0, 0, 'r'}, > #if HAVE_FW_MASQUERADE >@@ -1738,7 +1740,8 @@ > getroute_init(); /* Set up AF routing support */ > > afname[0] = '\0'; >- while ((i = getopt_long(argc, argv, "MCFA:acdegphi::nNorstuVv?wxl", longopts, &lop)) != EOF) >+ >+ while ((i = getopt_long(argc, argv, "MCFA:acdegphiI::nNorstuVv?wxl", longopts, &lop)) != EOF) > switch (i) { > case -1: > break; >@@ -1773,9 +1773,16 @@ > case 'p': > flag_prg++; > break; >+ case 'I': >+ if (optarg != NULL) { >+ if (optarg[0] == '=') { >+ optarg++; >+ } >+ flag_int_name = strdup(optarg); >+ } >+ flag_int++; >+ break; > case 'i': >- if (optarg && strcmp(optarg, "(null)")) >- flag_int_name = strdup(optarg); > flag_int++; > break; > case 'n':
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 12628
: 2708