diff options
author | gnn <gnn@FreeBSD.org> | 2008-05-15 20:18:44 +0000 |
---|---|---|
committer | gnn <gnn@FreeBSD.org> | 2008-05-15 20:18:44 +0000 |
commit | 368bdf05e9188bfc74fa11ed733351ed1c1e5c2c (patch) | |
tree | dc4a19cd314451b850213be8dc0f8bf050c8258b /sys/kern/uipc_sockbuf.c | |
parent | f7f31164f19cdffc5fc75cde6ac6d025b796f980 (diff) | |
download | FreeBSD-src-368bdf05e9188bfc74fa11ed733351ed1c1e5c2c.zip FreeBSD-src-368bdf05e9188bfc74fa11ed733351ed1c1e5c2c.tar.gz |
Update the kernel to count the number of mbufs and clusters
(all types) used per socket buffer.
Add support to netstat to print out all of the socket buffer
statistics.
Update the netstat manual page to describe the new -x flag
which gives the extended output.
Reviewed by: rwatson, julian
Diffstat (limited to 'sys/kern/uipc_sockbuf.c')
-rw-r--r-- | sys/kern/uipc_sockbuf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/uipc_sockbuf.c b/sys/kern/uipc_sockbuf.c index 9e89826..b730c69 100644 --- a/sys/kern/uipc_sockbuf.c +++ b/sys/kern/uipc_sockbuf.c @@ -1027,6 +1027,8 @@ sbtoxsockbuf(struct sockbuf *sb, struct xsockbuf *xsb) xsb->sb_cc = sb->sb_cc; xsb->sb_hiwat = sb->sb_hiwat; xsb->sb_mbcnt = sb->sb_mbcnt; + xsb->sb_mcnt = sb->sb_mcnt; + xsb->sb_ccnt = sb->sb_ccnt; xsb->sb_mbmax = sb->sb_mbmax; xsb->sb_lowat = sb->sb_lowat; xsb->sb_flags = sb->sb_flags; |