summaryrefslogtreecommitdiff
path: root/sys/netiso
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>2001-05-27 12:26:07 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>2001-05-27 12:26:07 +0000
commitf05c66782e5f198be244db4c822c89015f239fe3 (patch)
treef976ffed5cc17c7e52ec82bb571c6b88f608cea3 /sys/netiso
parenta06de11cdfa70a71fcd72f5b6ba19812e3ac1d2b (diff)
More tag fixups (why do I bother with this...)
Diffstat (limited to 'sys/netiso')
-rw-r--r--sys/netiso/if_eon.c5
-rw-r--r--sys/netiso/tp_cons.c5
-rw-r--r--sys/netiso/tp_inet.c5
-rw-r--r--sys/netiso/tuba_subr.c6
4 files changed, 15 insertions, 6 deletions
diff --git a/sys/netiso/if_eon.c b/sys/netiso/if_eon.c
index 79dca64acb5..e08e186274b 100644
--- a/sys/netiso/if_eon.c
+++ b/sys/netiso/if_eon.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_eon.c,v 1.9 2001/02/06 00:22:25 mickey Exp $ */
+/* $OpenBSD: if_eon.c,v 1.10 2001/05/27 12:26:05 angelos Exp $ */
/* $NetBSD: if_eon.c,v 1.15 1996/05/09 22:29:37 scottr Exp $ */
/*-
@@ -417,6 +417,9 @@ send:
MGETHDR(mh, M_DONTWAIT, MT_HEADER);
if (mh == (struct mbuf *) 0)
goto flush;
+ M_COPY_HDR(mh, m);
+ m->m_flags &= ~M_PKTHDR;
+ m_tag_init(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 cafa0166682..6147aa58555 100644
--- a/sys/netiso/tp_cons.c
+++ b/sys/netiso/tp_cons.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tp_cons.c,v 1.2 1996/03/04 10:35:51 mickey Exp $ */
+/* $OpenBSD: tp_cons.c,v 1.3 2001/05/27 12:26:05 angelos Exp $ */
/* $NetBSD: tp_cons.c,v 1.8 1996/02/14 21:32:37 christos Exp $ */
/*-
@@ -300,6 +300,9 @@ tpcons_output(m0, va_alist)
MGETHDR(m, M_DONTWAIT, MT_DATA);
if (m == 0)
return ENOBUFS;
+ M_COPY_HDR(m, m0);
+ m_tag_init(m0);
+ m0->m_flags &= ~M_PKTHDR;
m->m_next = m0;
}
m->m_pkthdr.len = datalen;
diff --git a/sys/netiso/tp_inet.c b/sys/netiso/tp_inet.c
index d5104ffa6d4..c1a917568ff 100644
--- a/sys/netiso/tp_inet.c
+++ b/sys/netiso/tp_inet.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tp_inet.c,v 1.3 1996/04/21 22:29:45 deraadt Exp $ */
+/* $OpenBSD: tp_inet.c,v 1.4 2001/05/27 12:26:05 angelos Exp $ */
/* $NetBSD: tp_inet.c,v 1.11 1996/03/16 23:13:49 christos Exp $ */
/*-
@@ -454,6 +454,9 @@ tpip_output_dg(m0, va_alist)
error = ENOBUFS;
goto bad;
}
+ M_COPY_HDR(m, m0);
+ m_tag_init(m0);
+ m0->m_flags &= ~M_PKTHDR;
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 126189076ea..f665734b793 100644
--- a/sys/netiso/tuba_subr.c
+++ b/sys/netiso/tuba_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tuba_subr.c,v 1.6 2001/05/20 08:36:02 angelos Exp $ */
+/* $OpenBSD: tuba_subr.c,v 1.7 2001/05/27 12:26:06 angelos Exp $ */
/* $NetBSD: tuba_subr.c,v 1.7 1996/02/13 22:12:32 christos Exp $ */
/*
@@ -330,10 +330,10 @@ tuba_tcpinput(m, va_alist)
goto drop;
}
M_COPY_PKTHDR(m, m0);
+ m_tag_init(m0);
+ m0->m_flags &= ~M_PKTHDR;
m->m_next = m0;
m->m_data += max_linkhdr;
- m0->m_flags &= ~M_PKTHDR;
- TAILQ_INIT(&m0->m_pkthdr.tags);
if (len < sizeof(struct tcphdr)) {
m->m_len = 0;
if ((m = m_pullup(m, sizeof(struct tcpiphdr))) == 0) {