diff options
author | George V. Neville-Neil <gnn@FreeBSD.org> | 2008-05-15 20:18:44 +0000 |
---|---|---|
committer | George V. Neville-Neil <gnn@FreeBSD.org> | 2008-05-15 20:18:44 +0000 |
commit | 49f287f8c58cd72f62ae5047baf110ec91b6acf7 (patch) | |
tree | dc4a19cd314451b850213be8dc0f8bf050c8258b /sys/kern/uipc_sockbuf.c | |
parent | 90356491d7c1d6bf64068ece7ea715f10a583a87 (diff) | |
download | src-49f287f8c58cd72f62ae5047baf110ec91b6acf7.tar.gz src-49f287f8c58cd72f62ae5047baf110ec91b6acf7.zip |
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
Notes
Notes:
svn path=/head/; revision=179027
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 9e8982685e5a..b730c695955e 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; |