Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F96274294
D39499.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
655 B
Referenced Files
None
Subscribers
None
D39499.diff
View Options
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c
--- a/sys/net/if_ethersubr.c
+++ b/sys/net/if_ethersubr.c
@@ -446,9 +446,11 @@
struct ether_header *eh;
eh = mtod(*mp, struct ether_header *);
- if (ntohs(eh->ether_type) == ETHERTYPE_VLAN ||
- ntohs(eh->ether_type) == ETHERTYPE_QINQ)
+ if (eh->ether_type == htons(ETHERTYPE_VLAN) ||
+ eh->ether_type == htons(ETHERTYPE_QINQ)) {
+ (*mp)->m_flags &= ~M_VLANTAG;
return (true);
+ }
qtag.vid = 0;
qtag.pcp = pcp;
@@ -1463,6 +1465,7 @@
if_printf(ife, "unable to prepend 802.1Q header");
return (false);
}
+ (*mp)->m_flags &= ~M_VLANTAG;
}
return (true);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Sep 25, 7:40 AM (14 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
12744440
Default Alt Text
D39499.diff (655 B)
Attached To
Mode
D39499: net: Remove vlan metadata on pcp / vlan encap
Attached
Detach File
Event Timeline
Log In to Comment