summaryrefslogtreecommitdiff
path: root/sys/netinet/udp_usrreq.c
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2018-04-06 10:59:12 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2018-04-06 10:59:12 +0000
commite5799b1123ccc604d6353c622b08d0a4740e9633 (patch)
treee2f6969bf2c4a61e2828f9f513594c40fdeb694d /sys/netinet/udp_usrreq.c
parent1926c1712f5a585e23260e9cfe28e431cf37893d (diff)
Use the existing pf state to speed up UDP socket lookup. This was
disabled as there were some stability issues. It seems that the crashes were fixed when reference counting for pf states was implemented. Se reenable this code. Apart from the performance improvement it also makes corner cases for pf divert-to more reliable. OK henning@
Diffstat (limited to 'sys/netinet/udp_usrreq.c')
-rw-r--r--sys/netinet/udp_usrreq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c
index 57a35faf9e1..001a41a0810 100644
--- a/sys/netinet/udp_usrreq.c
+++ b/sys/netinet/udp_usrreq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: udp_usrreq.c,v 1.245 2017/12/01 10:33:33 bluhm Exp $ */
+/* $OpenBSD: udp_usrreq.c,v 1.246 2018/04/06 10:59:11 bluhm Exp $ */
/* $NetBSD: udp_usrreq.c,v 1.28 1996/03/16 23:54:03 christos Exp $ */
/*
@@ -513,7 +513,7 @@ udp_input(struct mbuf **mp, int *offp, int proto, int af)
/*
* Locate pcb for datagram.
*/
-#if NPF > 0 && 0 /* currently disabled */
+#if NPF > 0
inp = pf_inp_lookup(m);
#endif
if (inp == NULL) {