diff options
author | jdp <jdp@FreeBSD.org> | 2002-07-24 03:02:43 +0000 |
---|---|---|
committer | jdp <jdp@FreeBSD.org> | 2002-07-24 03:02:43 +0000 |
commit | 86b3836232069126cbad3fccd52778f5adc4a676 (patch) | |
tree | 23efb20689613024e75cb76a8367533e47d49173 /usr.bin/netstat/ipx.c | |
parent | ccc9f3815e7af0c92ecbd5c93328262a5a5f246e (diff) | |
download | FreeBSD-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/ipx.c')
-rw-r--r-- | usr.bin/netstat/ipx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/netstat/ipx.c b/usr.bin/netstat/ipx.c index e7a0155..f334257 100644 --- a/usr.bin/netstat/ipx.c +++ b/usr.bin/netstat/ipx.c @@ -134,7 +134,7 @@ ipxprotopr(u_long off, char *name, int af __unused) } if (Aflag) printf("%8lx ", ppcb); - printf("%-5.5s %6ld %6ld ", name, sockb.so_rcv.sb_cc, + printf("%-5.5s %6u %6u ", name, sockb.so_rcv.sb_cc, sockb.so_snd.sb_cc); printf(Aflag?" %-18.18s":" %-22.22s", ipx_prpr(&ipxpcb.ipxp_laddr)); printf(Aflag?" %-18.18s":" %-22.22s", ipx_prpr(&ipxpcb.ipxp_faddr)); |