From 263c04e1bde3d1faacc0c2054395ce503cb8aaba Mon Sep 17 00:00:00 2001 From: Florian Obser Date: Thu, 2 Nov 2017 14:01:19 +0000 Subject: Move PRU_DETACH out of pr_usrreq into per proto pr_detach functions to pave way for more fine grained locking. Suggested by, comments & OK mpi --- sys/net/raw_usrreq.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'sys/net/raw_usrreq.c') diff --git a/sys/net/raw_usrreq.c b/sys/net/raw_usrreq.c index d72f242c892..5f1d1c43479 100644 --- a/sys/net/raw_usrreq.c +++ b/sys/net/raw_usrreq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: raw_usrreq.c,v 1.32 2017/07/03 19:23:47 claudio Exp $ */ +/* $OpenBSD: raw_usrreq.c,v 1.33 2017/11/02 14:01:18 florian Exp $ */ /* $NetBSD: raw_usrreq.c,v 1.11 1996/02/13 22:00:43 christos Exp $ */ /* @@ -67,14 +67,6 @@ raw_usrreq(struct socket *so, int req, struct mbuf *m, struct mbuf *nam, return (EINVAL); } switch (req) { - /* - * Destroy state just before socket deallocation. - * Flush data or not depending on the options. - */ - case PRU_DETACH: - raw_detach(rp); - break; - case PRU_CONNECT: case PRU_BIND: case PRU_CONNECT2: -- cgit v1.2.3