summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbluhm <bluhm@openbsd.org>2012-09-19 19:41:29 +0000
committerbluhm <bluhm@openbsd.org>2012-09-19 19:41:29 +0000
commit88b888f645e83b56b33117e3c6c61790b61e69f2 (patch)
tree4baa39167f95bf6623d4e9f7e5586b2ec20952d2
parentSet envelope expirancy in lka before sending the envelope to mfa. (diff)
downloadwireguard-openbsd-88b888f645e83b56b33117e3c6c61790b61e69f2.tar.xz
wireguard-openbsd-88b888f645e83b56b33117e3c6c61790b61e69f2.zip
In somove() make the call to pr_usrreq(PRU_RCVD) under the same
conditions as in soreceive(). My goal is to make socket splicing less protocol dependent. ok claudio@
-rw-r--r--sys/kern/uipc_socket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c
index 6f7df6f3557..ff2a79bcf35 100644
--- a/sys/kern/uipc_socket.c
+++ b/sys/kern/uipc_socket.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uipc_socket.c,v 1.105 2012/09/17 14:33:56 bluhm Exp $ */
+/* $OpenBSD: uipc_socket.c,v 1.106 2012/09/19 19:41:29 bluhm Exp $ */
/* $NetBSD: uipc_socket.c,v 1.21 1996/02/04 02:17:52 christos Exp $ */
/*
@@ -1236,7 +1236,7 @@ somove(struct socket *so, int wait)
#endif
/* Send window update to source peer if receive buffer has changed. */
- if (m)
+ if (m && so->so_proto->pr_flags & PR_WANTRCVD && so->so_pcb)
(so->so_proto->pr_usrreq)(so, PRU_RCVD, NULL,
(struct mbuf *)0L, NULL, NULL);