From d103d05a353049170f948a87510a7cc0a0150362 Mon Sep 17 00:00:00 2001 From: dlg Date: Thu, 27 May 2021 03:46:15 +0000 Subject: [PATCH] ajacoutot says i missed copying some bits from bridge for divert-to. --- sys/net/if_tpmr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); } -- 2.20.1