FreeBSD Bugzilla – Attachment 5374 Details for
Bug 12898
Added a command-line switch to netstat to output the number of routes in the routing table.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.63 KB, created by
Benjamin April
on 1999-07-31 16:00:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Benjamin April
Created:
1999-07-31 16:00:01 UTC
Size:
1.63 KB
patch
obsolete
>*** main.c Sun Jul 25 22:02:16 1999 >--- ./main.c.old Sat Jul 24 12:12:53 1999 >*************** >*** 221,227 **** > > af = AF_UNSPEC; > >! while ((ch = getopt(argc, argv, "Aabcdf:ghI:iM:mN:np:rstuw:")) != -1) > switch(ch) { > case 'A': > Aflag = 1; >--- 221,227 ---- > > af = AF_UNSPEC; > >! while ((ch = getopt(argc, argv, "Aabdf:ghI:iM:mN:np:rstuw:")) != -1) > switch(ch) { > case 'A': > Aflag = 1; >*************** >*** 232,241 **** > case 'b': > bflag = 1; > break; >- case 'c': >- cflag = 1; >- nflag = 1; >- break; > case 'd': > dflag = 1; > break; >--- 232,237 ---- >*************** >*** 381,391 **** > intpr(interval, nl[N_IFNET].n_value); > exit(0); > } >- if (cflag) { >- kread(0, 0, 0); >- routecount(nl[N_RTREE].n_value); >- exit(0); >- } > if (rflag) { > kread(0, 0, 0); > if (sflag) >--- 377,382 ---- >*************** >*** 571,582 **** > static void > usage() > { >! (void)fprintf(stderr, "%s\n%s\n%s\n%s\n%s\n", > "usage: netstat [-Aan] [-f address_family] [-M core] [-N system]", > " netstat [-bdghimnrs] [-f address_family] [-M core] [-N system]", > " netstat [-bdn] [-I interface] [-M core] [-N system] [-w wait]", >! " netstat [-M core] [-N system] [-p protocol]", >! " netstat [-c]"); > exit(1); > } > >--- 562,572 ---- > static void > usage() > { >! (void)fprintf(stderr, "%s\n%s\n%s\n%s\n", > "usage: netstat [-Aan] [-f address_family] [-M core] [-N system]", > " netstat [-bdghimnrs] [-f address_family] [-M core] [-N system]", > " netstat [-bdn] [-I interface] [-M core] [-N system] [-w wait]", >! " netstat [-M core] [-N system] [-p protocol]"); > exit(1); > } >
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 12898
: 5374 |
5375
|
5376