-/* $OpenBSD: pfkey.c,v 1.29 2016/03/22 11:53:21 dlg Exp $ */
+/* $OpenBSD: pfkey.c,v 1.30 2016/08/15 11:35:25 dlg Exp $ */
/*
* @(#)COPYRIGHT 1.1 (NRL) 17 January 1995
int s;
if (more) {
- if (!(packet2 = m_copym2(packet, 0, M_COPYALL, M_DONTWAIT)))
+ if (!(packet2 = m_dup_pkt(packet, 0, M_DONTWAIT)))
return (ENOMEM);
} else
packet2 = packet;
-/* $OpenBSD: ip_ah.c,v 1.119 2016/03/07 18:44:00 naddy Exp $ */
+/* $OpenBSD: ip_ah.c,v 1.120 2016/08/15 11:35:25 dlg Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
* Angelos D. Keromytis (kermit@csd.uch.gr) and
if (mi != NULL) {
/* Replace the rest of the mbuf chain. */
- struct mbuf *n = m_copym2(mi, 0, M_COPYALL, M_DONTWAIT);
+ struct mbuf *n = m_dup_pkt(mi, 0, M_DONTWAIT);
if (n == NULL) {
ahstat.ahs_hdrops++;
-/* $OpenBSD: ip_esp.c,v 1.137 2016/03/07 18:44:00 naddy Exp $ */
+/* $OpenBSD: ip_esp.c,v 1.138 2016/08/15 11:35:25 dlg Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
* Angelos D. Keromytis (kermit@csd.uch.gr) and
if (mi != NULL) {
/* Replace the rest of the mbuf chain. */
- struct mbuf *n = m_copym2(mi, 0, M_COPYALL, M_DONTWAIT);
+ struct mbuf *n = m_dup_pkt(mi, 0, M_DONTWAIT);
if (n == NULL) {
DPRINTF(("esp_output(): bad mbuf chain, SA %s/%08x\n",
-/* $OpenBSD: ip_ipcomp.c,v 1.44 2015/07/15 22:16:42 deraadt Exp $ */
+/* $OpenBSD: ip_ipcomp.c,v 1.45 2016/08/15 11:35:25 dlg Exp $ */
/*
* Copyright (c) 2001 Jean-Jacques Bernard-Gundol (jj@wabbitt.org)
if (mi != NULL) {
/* Replace the rest of the mbuf chain. */
- struct mbuf *n = m_copym2(mi, 0, M_COPYALL, M_DONTWAIT);
+ struct mbuf *n = m_dup_pkt(mi, 0, M_DONTWAIT);
if (n == NULL) {
DPRINTF(("ipcomp_output(): bad mbuf chain, IPCA %s/%08x\n",
-/* $OpenBSD: ip_output.c,v 1.325 2016/07/01 18:28:58 jca Exp $ */
+/* $OpenBSD: ip_output.c,v 1.326 2016/08/15 11:35:25 dlg Exp $ */
/* $NetBSD: ip_output.c,v 1.28 1996/02/13 23:43:07 christos Exp $ */
/*
struct ip *ip;
struct mbuf *copym;
- copym = m_copym2(m, 0, M_COPYALL, M_DONTWAIT);
+ copym = m_dup_pkt(m, max_linkhdr, M_DONTWAIT);
if (copym != NULL) {
/*
* We don't bother to fragment if the IP length is greater