From 6ef91356af7e4a963b3c24cf9c32c8f89ba2bef8 Mon Sep 17 00:00:00 2001 From: "Angelos D. Keromytis" Date: Sun, 27 May 2001 11:52:22 +0000 Subject: Reset pkthdr on old mbuf head. --- sys/netinet/ip_ether.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys') 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 */ -- cgit v1.2.3