summaryrefslogtreecommitdiff
path: root/sys/netiso
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>2001-06-27 03:49:56 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>2001-06-27 03:49:56 +0000
commit5a60def576e7a9fc33be3c2ce84e9c5a4ea87acf (patch)
treeeec94d4164616ff7c03e306b4723bda222307b2f /sys/netiso
parentcc7d393f894b86439bc3d6e082a11123747a46bd (diff)
Get rid of M_COPY_* macros; either use M_MOVE_* or M_DUP_*, depending
on how macros should be treated. Code by fgsch@, ok by me and itojun@
Diffstat (limited to 'sys/netiso')
-rw-r--r--sys/netiso/if_eon.c4
-rw-r--r--sys/netiso/tp_cons.c4
-rw-r--r--sys/netiso/tp_inet.c4
-rw-r--r--sys/netiso/tuba_subr.c4
4 files changed, 8 insertions, 8 deletions
diff --git a/sys/netiso/if_eon.c b/sys/netiso/if_eon.c
index d012293f851..9e22247e001 100644
--- a/sys/netiso/if_eon.c
+++ b/sys/netiso/if_eon.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_eon.c,v 1.12 2001/06/25 01:50:17 fgsch Exp $ */
+/* $OpenBSD: if_eon.c,v 1.13 2001/06/27 03:49:54 angelos Exp $ */
/* $NetBSD: if_eon.c,v 1.15 1996/05/09 22:29:37 scottr Exp $ */
/*-
@@ -416,7 +416,7 @@ send:
MGETHDR(mh, M_DONTWAIT, MT_HEADER);
if (mh == (struct mbuf *) 0)
goto flush;
- M_COPY_HDR(mh, m);
+ M_MOVE_HDR(mh, m);
mh->m_next = m;
m = mh;
MH_ALIGN(m, sizeof(struct eon_iphdr));
diff --git a/sys/netiso/tp_cons.c b/sys/netiso/tp_cons.c
index fdd833f4741..d5cb50ee216 100644
--- a/sys/netiso/tp_cons.c
+++ b/sys/netiso/tp_cons.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tp_cons.c,v 1.4 2001/06/25 01:50:17 fgsch Exp $ */
+/* $OpenBSD: tp_cons.c,v 1.5 2001/06/27 03:49:54 angelos Exp $ */
/* $NetBSD: tp_cons.c,v 1.8 1996/02/14 21:32:37 christos Exp $ */
/*-
@@ -300,7 +300,7 @@ tpcons_output(m0, va_alist)
MGETHDR(m, M_DONTWAIT, MT_DATA);
if (m == 0)
return ENOBUFS;
- M_COPY_HDR(m, m0);
+ M_MOVE_HDR(m, m0);
m->m_next = m0;
}
m->m_pkthdr.len = datalen;
diff --git a/sys/netiso/tp_inet.c b/sys/netiso/tp_inet.c
index 63eba45b903..72f1a429d12 100644
--- a/sys/netiso/tp_inet.c
+++ b/sys/netiso/tp_inet.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tp_inet.c,v 1.5 2001/06/25 01:50:17 fgsch Exp $ */
+/* $OpenBSD: tp_inet.c,v 1.6 2001/06/27 03:49:54 angelos Exp $ */
/* $NetBSD: tp_inet.c,v 1.11 1996/03/16 23:13:49 christos Exp $ */
/*-
@@ -454,7 +454,7 @@ tpip_output_dg(m0, va_alist)
error = ENOBUFS;
goto bad;
}
- M_COPY_HDR(m, m0);
+ M_MOVE_HDR(m, m0);
m->m_next = m0;
MH_ALIGN(m, sizeof(struct ip));
m->m_len = sizeof(struct ip);
diff --git a/sys/netiso/tuba_subr.c b/sys/netiso/tuba_subr.c
index e91a1f86e18..a70cdeab30b 100644
--- a/sys/netiso/tuba_subr.c
+++ b/sys/netiso/tuba_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tuba_subr.c,v 1.8 2001/06/25 02:57:23 angelos Exp $ */
+/* $OpenBSD: tuba_subr.c,v 1.9 2001/06/27 03:49:55 angelos Exp $ */
/* $NetBSD: tuba_subr.c,v 1.7 1996/02/13 22:12:32 christos Exp $ */
/*
@@ -329,7 +329,7 @@ tuba_tcpinput(m, va_alist)
m = m0;
goto drop;
}
- M_COPY_PKTHDR(m, m0);
+ M_MOVE_PKTHDR(m, m0);
m->m_next = m0;
m->m_data += max_linkhdr;
if (len < sizeof(struct tcphdr)) {