summaryrefslogtreecommitdiff
path: root/usr.bin/netstat
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2011-03-02 21:51:15 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2011-03-02 21:51:15 +0000
commit42fb8f7a6e8c7329e512b5ab255c782f171bedda (patch)
treec1c1b1ff3acd8bae4fa2df2731e4e5af71c42df0 /usr.bin/netstat
parent4f6c2d1a2500ce0d4ca0611831861e63bde672cc (diff)
Add the socket splicing fields of struct socket to netstat -vP
output for debugging. ok markus@, claudio@
Diffstat (limited to 'usr.bin/netstat')
-rw-r--r--usr.bin/netstat/inet.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/netstat/inet.c b/usr.bin/netstat/inet.c
index 037b231390f..41d47c82de3 100644
--- a/usr.bin/netstat/inet.c
+++ b/usr.bin/netstat/inet.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: inet.c,v 1.114 2010/10/30 23:06:05 bluhm Exp $ */
+/* $OpenBSD: inet.c,v 1.115 2011/03/02 21:51:14 bluhm Exp $ */
/* $NetBSD: inet.c,v 1.14 1995/10/03 21:42:37 thorpej Exp $ */
/*
@@ -1180,6 +1180,10 @@ socket_dump(u_long off)
p("%u", so_siguid, ", ");
p("%u", so_sigeuid, "\n ");
p("%lu", so_oobmark, "\n ");
+ p("%p", so_splice, ", ");
+ p("%p", so_spliceback, "\n ");
+ p("%lld", so_splicelen, ", ");
+ p("%lld", so_splicemax, "\n ");
sockbuf_dump(&so.so_rcv, "so_rcv");
sockbuf_dump(&so.so_snd, "so_snd");
p("%u", so_euid, ", ");