summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2021-05-27 03:46:16 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2021-05-27 03:46:16 +0000
commit5b2d1411df11f6c9b01f6540b7a038776f0e40b3 (patch)
treef6a7961e4604998f6c9e4be35f7ceb95417c791c /sys/net
parentc7d86bf7d51b31c25605fa83df4cb6af311d0a6d (diff)
ajacoutot says i missed copying some bits from bridge for divert-to.
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_tpmr.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/if_tpmr.c b/sys/net/if_tpmr.c
index 753379a446b..5fcb0b0e006 100644
--- a/sys/net/if_tpmr.c
+++ b/sys/net/if_tpmr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_tpmr.c,v 1.25 2021/05/26 06:44:28 dlg Exp $ */
+/* $OpenBSD: if_tpmr.c,v 1.26 2021/05/27 03:46:15 dlg Exp $ */
/*
* Copyright (c) 2019 The University of Queensland
@@ -276,6 +276,8 @@ tpmr_pf(struct ifnet *ifp0, int dir, struct mbuf *m)
return (NULL);
if (dir == PF_IN && ISSET(m->m_pkthdr.pf.flags, PF_TAG_DIVERTED)) {
+ pf_mbuf_unlink_state_key(m);
+ pf_mbuf_unlink_inpcb(m);
(*ip_input)(ifp0, m);
return (NULL);
}