summaryrefslogtreecommitdiff
path: root/sys/net/pf.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2015-06-30 15:30:18 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2015-06-30 15:30:18 +0000
commitab04cb32d34e855d961263d79cb06308c3dfa79c (patch)
tree8fcd90d0bfdebab4a5fa0dc6a909e389884db834 /sys/net/pf.c
parent0b812a21998977cef74d01a9fb18550fb3cd4b85 (diff)
Get rid of the undocumented & temporary* m_copy() macro added for
compatibility with 4.3BSD in September 1989. *Pick your own definition for "temporary". ok bluhm@, claudio@, dlg@
Diffstat (limited to 'sys/net/pf.c')
-rw-r--r--sys/net/pf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c
index a2f7441273a..29efd293ebc 100644
--- a/sys/net/pf.c
+++ b/sys/net/pf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf.c,v 1.920 2015/06/22 15:58:23 mikeb Exp $ */
+/* $OpenBSD: pf.c,v 1.921 2015/06/30 15:30:17 mpi Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -2429,7 +2429,7 @@ pf_send_icmp(struct mbuf *m, u_int8_t type, u_int8_t code, sa_family_t af,
{
struct mbuf *m0;
- if ((m0 = m_copy(m, 0, M_COPYALL)) == NULL)
+ if ((m0 = m_copym(m, 0, M_COPYALL, M_NOWAIT)) == NULL)
return;
m0->m_pkthdr.pf.flags |= PF_TAG_GENERATED;