summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>2001-05-27 11:52:22 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>2001-05-27 11:52:22 +0000
commit6ef91356af7e4a963b3c24cf9c32c8f89ba2bef8 (patch)
treee52145682884e0edd6477f8dd5ac37297c7a85cd /sys
parent6f78de20ef4de8a56880dfec3fa6a1d772ab16a2 (diff)
Reset pkthdr on old mbuf head.
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/ip_ether.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet/ip_ether.c b/sys/netinet/ip_ether.c
index 5bb2cfad8ae..33ebb1422b4 100644
--- a/sys/netinet/ip_ether.c
+++ b/sys/netinet/ip_ether.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_ether.c,v 1.26 2001/04/06 04:42:08 csapuntz Exp $ */
+/* $OpenBSD: ip_ether.c,v 1.27 2001/05/27 11:52:21 angelos Exp $ */
/*
* The author of this code is Angelos D. Keromytis (kermit@adk.gr)
@@ -357,6 +357,8 @@ etherip_output(struct mbuf *m, struct tdb *tdb, struct mbuf **mp, int skip,
m0->m_next = m;
m0->m_len = hlen;
m0->m_pkthdr.len += hlen;
+ m_tag_init(m);
+ m->m_flags &= ~M_PKTHDR;
m = m0;
/* Statistics */