Skip to content

Commit

Permalink
pf: deal with KPI change bug on stable/13
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtner committed May 18, 2023
1 parent 7eb6eb0 commit 1107d69
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions sys/netpfil/pf/pf_norm.c
Expand Up @@ -1008,9 +1008,16 @@ pf_refragment6(struct ifnet *ifp, struct mbuf **m0, struct m_tag *mtag)
m->m_flags |= M_SKIP_FIREWALL;
memset(&pd, 0, sizeof(pd));
pd.pf_mtag = pf_find_mtag(m);
if (error == 0)
ip6_forward(m, 0);
else
if (error == 0) {
/*
* XXX deal with KPI change in forwarding,
* try to output the packet otherwise
*/
if (m->m_pkthdr.rcvif)
ip6_forward(m, 0);
else
ip6_output(m, NULL, NULL, 0, NULL, NULL, NULL);
} else
m_freem(m);
}

Expand Down

0 comments on commit 1107d69

Please sign in to comment.