Changeset 58656 in vbox for trunk/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c
- Timestamp:
- Nov 11, 2015 5:28:31 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c
r58638 r58656 930 930 uint8_t *pMac = (uint8_t*)skb_mac_header(pBuf); 931 931 struct vlan_ethhdr *pVHdr = (struct vlan_ethhdr *)(pMac - VLAN_HLEN); 932 # if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 4, 0)933 932 memmove(pVHdr, pMac, ETH_ALEN * 2); 934 # else935 memmove(pVHdr, pMac, VLAN_ETH_ALEN * 2);936 # endif937 933 pVHdr->h_vlan_proto = RT_H2N_U16(ETH_P_8021Q); 938 934 pVHdr->h_vlan_TCI = RT_H2N_U16(vlan_tx_tag_get(pBuf));
Note:
See TracChangeset
for help on using the changeset viewer.