summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoritojun <itojun@openbsd.org>2004-07-12 00:50:22 +0000
committeritojun <itojun@openbsd.org>2004-07-12 00:50:22 +0000
commitf6d146802e6c52445faa632a61f529cef85ce1e6 (patch)
treedc974d0b2ad5cda0ab2f6a3c343fcdcbda9b9a42
parentoops (diff)
downloadwireguard-openbsd-f6d146802e6c52445faa632a61f529cef85ce1e6.tar.xz
wireguard-openbsd-f6d146802e6c52445faa632a61f529cef85ce1e6.zip
remove PF_FORWARD (which was introduced by ipv6 reass-on-scrub).
daniel found it.
-rw-r--r--sys/net/pfvar.h4
-rw-r--r--sys/netinet6/ip6_forward.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/net/pfvar.h b/sys/net/pfvar.h
index 74fa7161d5e..1e23993297c 100644
--- a/sys/net/pfvar.h
+++ b/sys/net/pfvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfvar.h,v 1.201 2004/07/11 15:54:21 itojun Exp $ */
+/* $OpenBSD: pfvar.h,v 1.202 2004/07/12 00:50:22 itojun Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -47,7 +47,7 @@ struct ip;
#define PF_TCPS_PROXY_SRC ((TCP_NSTATES)+0)
#define PF_TCPS_PROXY_DST ((TCP_NSTATES)+1)
-enum { PF_INOUT, PF_IN, PF_OUT, PF_FORWARD };
+enum { PF_INOUT, PF_IN, PF_OUT };
enum { PF_LAN_EXT, PF_EXT_GWY, PF_ID };
enum { PF_PASS, PF_DROP, PF_SCRUB, PF_NAT, PF_NONAT,
PF_BINAT, PF_NOBINAT, PF_RDR, PF_NORDR, PF_SYNPROXY_DROP };
diff --git a/sys/netinet6/ip6_forward.c b/sys/netinet6/ip6_forward.c
index 188455ad852..eaea4690d38 100644
--- a/sys/netinet6/ip6_forward.c
+++ b/sys/netinet6/ip6_forward.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip6_forward.c,v 1.32 2004/06/25 00:42:58 itojun Exp $ */
+/* $OpenBSD: ip6_forward.c,v 1.33 2004/07/12 00:50:22 itojun Exp $ */
/* $KAME: ip6_forward.c,v 1.75 2001/06/29 12:42:13 jinmei Exp $ */
/*
@@ -429,7 +429,7 @@ ip6_forward(m, srcrt)
ip6->ip6_dst.s6_addr16[1] = 0;
#if NPF > 0
- if (pf_test6(PF_FORWARD, rt->rt_ifp, &m, NULL) != PF_PASS) {
+ if (pf_test6(PF_OUT, rt->rt_ifp, &m, NULL) != PF_PASS) {
m_freem(m);
goto senderr;
}