summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbluhm <bluhm@openbsd.org>2015-08-24 15:55:53 +0000
committerbluhm <bluhm@openbsd.org>2015-08-24 15:55:53 +0000
commit8b012e5c32468048e2500de3479e12720778971b (patch)
tree040ad249c15925122e4fd027a301bb17c8dd9ace
parentRename the syn cache counter into tcp_syn_cache_count to have the (diff)
downloadwireguard-openbsd-8b012e5c32468048e2500de3479e12720778971b.tar.xz
wireguard-openbsd-8b012e5c32468048e2500de3479e12720778971b.zip
Remove obsolete fields in struct unpcb. In the past they were used
for flow control with unix domain sockets, this is now done by filling the send buffer with fake data counters. OK naddy@; no fallout in a bulk build
-rw-r--r--sys/sys/unpcb.h4
-rw-r--r--usr.bin/netstat/unix.c4
2 files changed, 2 insertions, 6 deletions
diff --git a/sys/sys/unpcb.h b/sys/sys/unpcb.h
index beeafc1e8b5..6cd06853ae9 100644
--- a/sys/sys/unpcb.h
+++ b/sys/sys/unpcb.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: unpcb.h,v 1.10 2015/07/18 15:00:01 guenther Exp $ */
+/* $OpenBSD: unpcb.h,v 1.11 2015/08/24 15:55:53 bluhm Exp $ */
/* $NetBSD: unpcb.h,v 1.6 1994/06/29 06:46:08 cgd Exp $ */
/*
@@ -68,8 +68,6 @@ struct unpcb {
struct mbuf *unp_addr; /* bound address of socket */
int unp_flags; /* this unpcb contains peer eids */
struct sockpeercred unp_connid;/* id of peer process */
- int unp_cc; /* copy of rcv.sb_cc */
- int unp_mbcnt; /* copy of rcv.sb_mbcnt */
struct timespec unp_ctime; /* holds creation time */
};
diff --git a/usr.bin/netstat/unix.c b/usr.bin/netstat/unix.c
index c6776e5e7d6..2bb4c2c0d0a 100644
--- a/usr.bin/netstat/unix.c
+++ b/usr.bin/netstat/unix.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: unix.c,v 1.27 2015/04/22 18:07:32 bluhm Exp $ */
+/* $OpenBSD: unix.c,v 1.28 2015/08/24 15:55:53 bluhm Exp $ */
/* $NetBSD: unix.c,v 1.13 1995/10/03 21:42:48 thorpej Exp $ */
/*-
@@ -117,8 +117,6 @@ unpcb_dump(u_long off)
p("%u", unp_connid.uid, ", ");
p("%u", unp_connid.gid, ", ");
p("%d", unp_connid.pid, "\n ");
- p("%d", unp_cc, ", ");
- p("%d", unp_mbcnt, "\n ");
pll("%lld", unp_ctime.tv_sec, ", ");
p("%ld", unp_ctime.tv_nsec, "\n");
#undef p