summaryrefslogtreecommitdiffstats
path: root/sys/contrib/pf/net
diff options
context:
space:
mode:
authormlaier <mlaier@FreeBSD.org>2004-07-18 00:51:56 +0000
committermlaier <mlaier@FreeBSD.org>2004-07-18 00:51:56 +0000
commitd420de60b621ea91476aa899a4c5a833c9c7caa4 (patch)
tree1e68c6c722b24aaf2de3891140c13bf2fa5ed701 /sys/contrib/pf/net
parent87a7f91241b8c7ba52924be3b6e47bb6c0754df6 (diff)
downloadFreeBSD-src-d420de60b621ea91476aa899a4c5a833c9c7caa4.zip
FreeBSD-src-d420de60b621ea91476aa899a4c5a833c9c7caa4.tar.gz
m_tag_copy takes an additional "how" parameter in FreeBSD.
Submitted by: rwatson
Diffstat (limited to 'sys/contrib/pf/net')
-rw-r--r--sys/contrib/pf/net/pf.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/contrib/pf/net/pf.c b/sys/contrib/pf/net/pf.c
index 5df3ba6..e0063a1 100644
--- a/sys/contrib/pf/net/pf.c
+++ b/sys/contrib/pf/net/pf.c
@@ -5161,7 +5161,11 @@ pf_route(struct mbuf **m, struct pf_rule *r, int dir, struct ifnet *oifp,
if ((m0 = m_copym2(*m, 0, M_COPYALL, M_NOWAIT)) == NULL)
#endif
return;
+#ifdef __FreeBSD__
+ if ((mtag = m_tag_copy(mtag, M_DONTWAIT)) == NULL)
+#else
if ((mtag = m_tag_copy(mtag)) == NULL)
+#endif
goto bad;
m_tag_prepend(m0, mtag);
} else {
@@ -5444,7 +5448,11 @@ pf_route6(struct mbuf **m, struct pf_rule *r, int dir, struct ifnet *oifp,
if ((m0 = m_copym2(*m, 0, M_COPYALL, M_NOWAIT)) == NULL)
#endif
return;
+#ifdef __FreeBSD__
+ if ((mtag = m_tag_copy(mtag, M_DONTWAIT)) == NULL)
+#else
if ((mtag = m_tag_copy(mtag)) == NULL)
+#endif
goto bad;
m_tag_prepend(m0, mtag);
} else {
OpenPOWER on IntegriCloud