diff options
| author | 2011-07-08 18:30:16 +0000 | |
|---|---|---|
| committer | 2011-07-08 18:30:16 +0000 | |
| commit | 90b03482cbe8f7eb592091739fe0f91d2f2a9712 (patch) | |
| tree | 870d600feac63574a4ae67b5dc720def8b5ba07b /sys/netinet/udp_usrreq.c | |
| parent | Move uvm_pmr_alloc_pig to kern/subr_hibernate.c (diff) | |
| download | wireguard-openbsd-90b03482cbe8f7eb592091739fe0f91d2f2a9712.tar.xz wireguard-openbsd-90b03482cbe8f7eb592091739fe0f91d2f2a9712.zip | |
Include PIPEX in kernel by default. And add new sysctl variable
`net.pipex.enable' to enable PIPEX. By default, pipex is disabled
and it will not process packets from wire. Update man pages and
update HOWTO_PIPEX_NPPPD.txt for testers.
discussed with dlg@, ok deraadt@ mcbride@ claudio@
Diffstat (limited to 'sys/netinet/udp_usrreq.c')
| -rw-r--r-- | sys/netinet/udp_usrreq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c index d2479425074..b3fd28f017e 100644 --- a/sys/netinet/udp_usrreq.c +++ b/sys/netinet/udp_usrreq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: udp_usrreq.c,v 1.144 2011/05/13 14:31:17 oga Exp $ */ +/* $OpenBSD: udp_usrreq.c,v 1.145 2011/07/08 18:30:17 yasuoka Exp $ */ /* $NetBSD: udp_usrreq.c,v 1.28 1996/03/16 23:54:03 christos Exp $ */ /* @@ -692,7 +692,7 @@ udp_input(struct mbuf *m, ...) IP_RECVDSTPORT, IPPROTO_IP); } #ifdef PIPEX - if (inp->inp_pipex) { + if (pipex_enable && inp->inp_pipex) { struct pipex_session *session; int off = iphlen + sizeof(struct udphdr); if ((session = pipex_l2tp_lookup_session(m, off)) != NULL) { |
