summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat/netgraph.c
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>2002-07-24 03:02:43 +0000
committerjdp <jdp@FreeBSD.org>2002-07-24 03:02:43 +0000
commit86b3836232069126cbad3fccd52778f5adc4a676 (patch)
tree23efb20689613024e75cb76a8367533e47d49173 /usr.bin/netstat/netgraph.c
parentccc9f3815e7af0c92ecbd5c93328262a5a5f246e (diff)
downloadFreeBSD-src-86b3836232069126cbad3fccd52778f5adc4a676.zip
FreeBSD-src-86b3836232069126cbad3fccd52778f5adc4a676.tar.gz
Widen struct sockbuf's sb_timeo member to int from short. With
non-default but reasonable values of hz this member overflowed, breaking NFS over UDP. Also, as long as I'm plowing up struct sockbuf ... Change certain members from u_long/long to u_int/int in order to reduce wasted space on 64-bit machines. This change was requested by Andrew Gallatin. Netstat and systat need to be rebuilt. I am incrementing __FreeBSD_version in case any ports need to change.
Diffstat (limited to 'usr.bin/netstat/netgraph.c')
-rw-r--r--usr.bin/netstat/netgraph.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/netstat/netgraph.c b/usr.bin/netstat/netgraph.c
index fb032e8..e536063 100644
--- a/usr.bin/netstat/netgraph.c
+++ b/usr.bin/netstat/netgraph.c
@@ -159,7 +159,7 @@ netgraphprotopr(u_long off, char *name, int af __unused)
/* Show socket */
if (Aflag)
printf("%8lx ", (u_long) this);
- printf("%-5.5s %6lu %6lu ",
+ printf("%-5.5s %6u %6u ",
name, sockb.so_rcv.sb_cc, sockb.so_snd.sb_cc);
/* Get ngsock structure */
OpenPOWER on IntegriCloud