summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>2001-06-25 02:53:30 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>2001-06-25 02:53:30 +0000
commitbc3f106132b95612a65721491d5bb7b968d1c077 (patch)
treeb710ffc4447f3bf6223a41041ef3d0bd1ff0a700 /sys/net
parente58da0e0537d8970f31a5e29b888aede3f51bdbe (diff)
No need to double-clear the mbuf flags and tags.
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_vlan.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c
index efe5d2c35aa..0d75bdce57b 100644
--- a/sys/net/if_vlan.c
+++ b/sys/net/if_vlan.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_vlan.c,v 1.21 2001/06/24 22:52:07 jason Exp $ */
+/* $OpenBSD: if_vlan.c,v 1.22 2001/06/25 02:53:29 angelos Exp $ */
/*
* Copyright 1998 Massachusetts Institute of Technology
*
@@ -247,11 +247,9 @@ vlan_start(struct ifnet *ifp)
continue;
}
- if (m0->m_flags & M_PKTHDR) {
+ if (m0->m_flags & M_PKTHDR)
M_COPY_PKTHDR(m0, m);
- m->m_flags &= ~M_PKTHDR;
- m_tag_init(m);
- }
+
m0->m_flags &= ~M_PROTO1;
m0->m_next = m;
m0->m_len = sizeof(struct ether_vlan_header);