summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2011-07-05 05:14:42 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2011-07-05 05:14:42 +0000
commit88a0ecfe483b2d832b3719c437a54d11b49d653d (patch)
tree9d2ffde5efd6cfcc26981bf7a439ca0d40f6734a
parent2c7026a6a177d748ca4955dcdebf84cd0d17d6c5 (diff)
Add so_idletv to netstat -vP pcb-address output.
ok mikeb@
-rw-r--r--usr.bin/netstat/inet.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/netstat/inet.c b/usr.bin/netstat/inet.c
index b3fdc015bc9..3df11b39114 100644
--- a/usr.bin/netstat/inet.c
+++ b/usr.bin/netstat/inet.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: inet.c,v 1.117 2011/03/18 22:34:58 sthen Exp $ */
+/* $OpenBSD: inet.c,v 1.118 2011/07/05 05:14:41 bluhm Exp $ */
/* $NetBSD: inet.c,v 1.14 1995/10/03 21:42:37 thorpej Exp $ */
/*
@@ -1193,7 +1193,9 @@ socket_dump(u_long off)
p("%p", so_splice, ", ");
p("%p", so_spliceback, "\n ");
p("%lld", so_splicelen, ", ");
- p("%lld", so_splicemax, "\n ");
+ p("%lld", so_splicemax, ", ");
+ p("%ld", so_idletv.tv_sec, ", ");
+ p("%ld", so_idletv.tv_usec, "\n ");
sockbuf_dump(&so.so_rcv, "so_rcv");
sockbuf_dump(&so.so_snd, "so_snd");
p("%u", so_euid, ", ");