diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2001-06-25 02:54:45 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2001-06-25 02:54:45 +0000 |
commit | 679c5caf5ce0465d27fac721b770f63176201435 (patch) | |
tree | e7e77d4f613b876deeff3d43aab06791d2c4657f | |
parent | fae81c4c1ef136049d2f0c2dc25f66c89c8ff7f1 (diff) |
Don't double-clear M_PKTHDR/tags.
-rw-r--r-- | sys/netinet/ip_ether.c | 4 | ||||
-rw-r--r-- | sys/netinet/ip_output.c | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/sys/netinet/ip_ether.c b/sys/netinet/ip_ether.c index cfb868eeaff..d41a90c87bd 100644 --- a/sys/netinet/ip_ether.c +++ b/sys/netinet/ip_ether.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_ether.c,v 1.30 2001/06/23 16:15:56 fgsch Exp $ */ +/* $OpenBSD: ip_ether.c,v 1.31 2001/06/25 02:54:44 angelos Exp $ */ /* * The author of this code is Angelos D. Keromytis (kermit@adk.gr) @@ -349,8 +349,6 @@ 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 */ diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c index 686960487af..e347ec543c1 100644 --- a/sys/netinet/ip_output.c +++ b/sys/netinet/ip_output.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_output.c,v 1.122 2001/06/25 02:03:18 angelos Exp $ */ +/* $OpenBSD: ip_output.c,v 1.123 2001/06/25 02:54:44 angelos Exp $ */ /* $NetBSD: ip_output.c,v 1.28 1996/02/13 23:43:07 christos Exp $ */ /* @@ -874,8 +874,6 @@ ip_insertoptions(m, opt, phlen) if (n == 0) return (m); M_COPY_HDR(n, m); - m_tag_init(m); - m->m_flags &= ~M_PKTHDR; n->m_pkthdr.len = m->m_pkthdr.len + optlen; m->m_len -= sizeof(struct ip); m->m_data += sizeof(struct ip); |