summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat/unix.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/unix.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/unix.c')
-rw-r--r--usr.bin/netstat/unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/netstat/unix.c b/usr.bin/netstat/unix.c
index abc2a5d..5698ede 100644
--- a/usr.bin/netstat/unix.c
+++ b/usr.bin/netstat/unix.c
@@ -146,7 +146,7 @@ unixdomainpr(struct xunpcb *xunp, struct xsocket *so)
"Inode", "Conn", "Refs", "Nextref");
first = 0;
}
- printf("%8lx %-6.6s %6ld %6ld %8lx %8lx %8lx %8lx",
+ printf("%8lx %-6.6s %6u %6u %8lx %8lx %8lx %8lx",
(long)so->so_pcb, socktype[so->so_type], so->so_rcv.sb_cc,
so->so_snd.sb_cc,
(long)unp->unp_vnode, (long)unp->unp_conn,
OpenPOWER on IntegriCloud