diff options
author | 2019-06-26 08:13:13 +0000 | |
---|---|---|
committer | 2019-06-26 08:13:13 +0000 | |
commit | afacbf8498e9a6aa5c450d98e3fe72cb153250b1 (patch) | |
tree | b5f4fea9829cc41beb6e64df7d6ecaebbf40af79 /sys/net/if_mpip.c | |
parent | add support for bypassing iommu translation (diff) | |
download | wireguard-openbsd-afacbf8498e9a6aa5c450d98e3fe72cb153250b1.tar.xz wireguard-openbsd-afacbf8498e9a6aa5c450d98e3fe72cb153250b1.zip |
The MPLS edge devices get the packets from the MPLS stack which never
passed though pf_test(). So there is no need to try to call
pf_pkt_addr_changed() instead just check that the PF statekey is NULL.
Initial problem of not including pf.h found by jsg@
OK jsg@ sashan@
Diffstat (limited to 'sys/net/if_mpip.c')
-rw-r--r-- | sys/net/if_mpip.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/net/if_mpip.c b/sys/net/if_mpip.c index 8843afd5bcf..f4f11781e82 100644 --- a/sys/net/if_mpip.c +++ b/sys/net/if_mpip.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_mpip.c,v 1.7 2019/04/19 07:39:37 dlg Exp $ */ +/* $OpenBSD: if_mpip.c,v 1.8 2019/06/26 08:13:13 claudio Exp $ */ /* * Copyright (c) 2015 Rafael Zalamena <rzalamena@openbsd.org> @@ -602,9 +602,8 @@ mpip_input(struct mpip_softc *sc, struct mbuf *m) m->m_pkthdr.ph_ifidx = ifp->if_index; m->m_pkthdr.ph_rtableid = ifp->if_rdomain; -#if NPF > 0 - pf_pkt_addr_changed(m); -#endif + /* packet has not been processed by PF yet. */ + KASSERT(m->m_pkthdr.pf.statekey == NULL); #if NBPFILTER > 0 { |