diff options
author | mlaier <mlaier@FreeBSD.org> | 2004-07-18 00:51:56 +0000 |
---|---|---|
committer | mlaier <mlaier@FreeBSD.org> | 2004-07-18 00:51:56 +0000 |
commit | d420de60b621ea91476aa899a4c5a833c9c7caa4 (patch) | |
tree | 1e68c6c722b24aaf2de3891140c13bf2fa5ed701 /sys/contrib/pf | |
parent | 87a7f91241b8c7ba52924be3b6e47bb6c0754df6 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/contrib/pf/net/pf.c | 8 |
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 { |