VirtualBox

Changeset 40733 in vbox


Ignore:
Timestamp:
Apr 1, 2012 7:56:35 AM (13 years ago)
Author:
vboxsync
Message:

VBoxNetFlt: 3.4-rc1 support (VLAN_ETH_ALEN -> ETH_ALEN)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c

    r39479 r40733  
    821821            uint8_t *pMac = (uint8_t*)skb_mac_header(pBuf);
    822822            struct vlan_ethhdr *pVHdr = (struct vlan_ethhdr *)(pMac - VLAN_HLEN);
     823#  if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 4, 0)
     824            memmove(pVHdr, pMac, ETH_ALEN * 2);
     825#  else
    823826            memmove(pVHdr, pMac, VLAN_ETH_ALEN * 2);
     827#  endif
    824828            pVHdr->h_vlan_proto = RT_H2N_U16(ETH_P_8021Q);
    825829            pVHdr->h_vlan_TCI   = RT_H2N_U16(vlan_tx_tag_get(pBuf));
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette