Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F154332312
D50846.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
442 B
Referenced Files
None
Subscribers
None
D50846.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
@@ -987,7 +987,8 @@
struct sockaddr_dl *sdl;
ifp->if_addrlen = ETHER_ADDR_LEN;
- ifp->if_hdrlen = ETHER_HDR_LEN;
+ ifp->if_hdrlen = (ifp->if_capabilities & IFCAP_VLAN_MTU) != 0 ?
+ ETHER_HDR_LEN + ETHER_VLAN_ENCAP_LEN : ETHER_HDR_LEN;
ifp->if_mtu = ETHERMTU;
if_attach(ifp);
ifp->if_output = ether_output;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 28, 9:56 PM (7 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32276073
Default Alt Text
D50846.diff (442 B)
Attached To
Mode
D50846: ethernet: Set maximum Ethernet header length based on the capability IFCAP_VLAN_MTU
Attached
Detach File
Event Timeline
Log In to Comment