diff options
author | 2017-11-20 10:35:24 +0000 | |
---|---|---|
committer | 2017-11-20 10:35:24 +0000 | |
commit | 94334c667cb14a4cfacff059c4e2da21206ed658 (patch) | |
tree | f8289e1c9810f75b425caae8fcd133de0f51a6f9 /sys/netinet/tcp_usrreq.c | |
parent | Remove duplicated code working around the fact that ifpromisc() required (diff) | |
download | wireguard-openbsd-94334c667cb14a4cfacff059c4e2da21206ed658.tar.xz wireguard-openbsd-94334c667cb14a4cfacff059c4e2da21206ed658.zip |
Sprinkle some NET_ASSERT_LOCKED(), const and co to prepare running
pr_input handlers without KERNEL_LOCK().
ok visa@
Diffstat (limited to 'sys/netinet/tcp_usrreq.c')
-rw-r--r-- | sys/netinet/tcp_usrreq.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c index b6ab40112c2..56725f20260 100644 --- a/sys/netinet/tcp_usrreq.c +++ b/sys/netinet/tcp_usrreq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_usrreq.c,v 1.159 2017/11/02 14:01:18 florian Exp $ */ +/* $OpenBSD: tcp_usrreq.c,v 1.160 2017/11/20 10:35:24 mpi Exp $ */ /* $NetBSD: tcp_usrreq.c,v 1.20 1996/02/13 23:44:16 christos Exp $ */ /* @@ -576,6 +576,7 @@ tcp_attach(struct socket *so, int proto) return (error); } + NET_ASSERT_LOCKED(); error = in_pcballoc(so, &tcbtable); if (error) return (error); |