the subject says it all. could someone who uses dup-to try this?
ok?
Index: pf.c
===================================================================
RCS file: /cvs/src/sys/net/pf.c,v
retrieving revision 1.966
diff -u -p -r1.966 pf.c
--- pf.c 4 Mar 2016 22:38:23 -0000 1.966
+++ pf.c 22 Mar 2016 11:59:50 -0000
@@ -5487,7 +5487,7 @@ pf_route(struct mbuf **m, struct pf_rule
}
if (r->rt == PF_DUPTO) {
- if ((m0 = m_copym2(*m, 0, M_COPYALL, M_NOWAIT)) == NULL)
+ if ((m0 = m_dup_pkt(*m, max_linkhdr, M_NOWAIT)) == NULL)
return;
} else {
if ((r->rt == PF_REPLYTO) == (r->direction == dir))
@@ -5646,7 +5646,7 @@ pf_route6(struct mbuf **m, struct pf_rul
}
if (r->rt == PF_DUPTO) {
- if ((m0 = m_copym2(*m, 0, M_COPYALL, M_NOWAIT)) == NULL)
+ if ((m0 = m_dup_pkt(*m, max_linkhdr, M_NOWAIT)) == NULL)
return;
} else {
if ((r->rt == PF_REPLYTO) == (r->direction == dir))