diff options
author | 2019-04-02 10:52:33 +0000 | |
---|---|---|
committer | 2019-04-02 10:52:33 +0000 | |
commit | 1c3eac280ee9a229cd92d1a1bc698afd046582d7 (patch) | |
tree | 1186198a2cf0c316af867d37bfb2aef0106c1444 /sys/net/if_mpe.c | |
parent | Fix ddb not to write its history to out of the region. When the (diff) | |
download | wireguard-openbsd-1c3eac280ee9a229cd92d1a1bc698afd046582d7.tar.xz wireguard-openbsd-1c3eac280ee9a229cd92d1a1bc698afd046582d7.zip |
call pf_pkt_addr_changed on input
makes this consistent with other tunnel drivers, but mostly to avoid
having state info leak between layers of encapsulation.
Diffstat (limited to 'sys/net/if_mpe.c')
-rw-r--r-- | sys/net/if_mpe.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/net/if_mpe.c b/sys/net/if_mpe.c index af5c61204d8..f6fe6f01087 100644 --- a/sys/net/if_mpe.c +++ b/sys/net/if_mpe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_mpe.c,v 1.89 2019/04/02 10:50:16 dlg Exp $ */ +/* $OpenBSD: if_mpe.c,v 1.90 2019/04/02 10:52:33 dlg Exp $ */ /* * Copyright (c) 2008 Pierre-Yves Ritschard <pyr@spootnik.org> @@ -447,6 +447,10 @@ mpe_input(struct ifnet *ifp, 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 + #if NBPFILTER > 0 if (ifp->if_bpf) { bpf_mtap_af(ifp->if_bpf, m->m_pkthdr.ph_family, |