1
--- net-tools-1.60/man/en_US/netstat.8.old 2006-02-10 11:18:11.000000000 +0100
2
+++ net-tools-1.60/man/en_US/netstat.8 2006-02-10 11:22:19.000000000 +0100
4
Print routing information from the FIB. (This is the default.)
6
Print routing information from the route cache.
8
+If SELinux enabled print SELinux context.
10
+Stop trimming long addresses.
12
Netstat will cycle printing through statistics every
14
--- net-tools-1.60/netstat.c.old 2006-02-10 11:18:12.000000000 +0100
15
+++ net-tools-1.60/netstat.c 2006-02-10 11:13:50.000000000 +0100
27
get_sname(htons(local_port), "tcp",
28
flag_not & FLAG_NUM_PORT));
30
- if ((strlen(local_addr) + strlen(buffer)) >= 27)
31
- local_addr[27 - strlen(buffer) - 1] = '\0';
33
+ if ((strlen(local_addr) + strlen(buffer)) >= 27)
34
+ local_addr[27 - strlen(buffer) - 1] = '\0';
37
strcat(local_addr, ":");
38
strncat(local_addr, buffer, sizeof(local_addr)-strlen(local_addr)-1);
39
snprintf(buffer, sizeof(buffer), "%s",
40
get_sname(htons(rem_port), "tcp", flag_not & FLAG_NUM_PORT));
42
- if ((strlen(rem_addr) + strlen(buffer)) >= 27)
43
- rem_addr[27 - strlen(buffer) - 1] = '\0';
46
+ if ((strlen(rem_addr) + strlen(buffer)) >= 27)
47
+ rem_addr[27 - strlen(buffer) - 1] = '\0';
50
strcat(rem_addr, ":");
51
strncat(rem_addr, buffer, sizeof(rem_addr)-strlen(rem_addr)-1);
54
{"groups", 0, 0, 'g'},
55
{"context", 0, 0, 'Z'},
56
+ {"notrim", 0, 0, 'T'},
64
- while ((i = getopt_long(argc, argv, "MCFA:acdegphiI::nNorstuVv?wxlZ", longopts, &lop)) != EOF)
65
+ while ((i = getopt_long(argc, argv, "MCFA:acdegphiI::nNorstuVv?wxlZT", longopts, &lop)) != EOF)
69
@@ -1904,6 +1912,10 @@
79
if(argc == optind + 1) {
80
--- net-tools-1.60/netstat.c.trim2 2006-04-06 16:12:02.000000000 +0200
81
+++ net-tools-1.60/netstat.c 2006-04-06 16:18:09.000000000 +0200
83
fprintf(stderr, _(" -a, --all, --listening display all sockets (default: connected)\n"));
84
fprintf(stderr, _(" -o, --timers display timers\n"));
85
fprintf(stderr, _(" -F, --fib display Forwarding Information Base (default)\n"));
86
- fprintf(stderr, _(" -C, --cache display routing cache instead of FIB\n\n"));
87
+ fprintf(stderr, _(" -C, --cache display routing cache instead of FIB\n"));
88
+ fprintf(stderr, _(" -T, --notrim stop trimming long addresses\n"));
89
fprintf(stderr, _(" -Z, --context display SELinux security context for sockets\n\n"));
91
fprintf(stderr, _(" <Iface>: Name of interface to monitor/list.\n"));