VirtualBox

Ignore:
Timestamp:
Nov 11, 2015 5:28:31 AM (9 years ago)
Author:
vboxsync
Message:

VBoxNetFlt/linux: vboxNetFltLinuxPacketHandler - there's no need to
duplicate the statement that only differs in ETH_ALEN vs VLAN_ETH_ALEN
The former is always defined, so just g/c the moribund version.

File:
1 edited

Legend:

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

    r58638 r58656  
    930930            uint8_t *pMac = (uint8_t*)skb_mac_header(pBuf);
    931931            struct vlan_ethhdr *pVHdr = (struct vlan_ethhdr *)(pMac - VLAN_HLEN);
    932 #  if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 4, 0)
    933932            memmove(pVHdr, pMac, ETH_ALEN * 2);
    934 #  else
    935             memmove(pVHdr, pMac, VLAN_ETH_ALEN * 2);
    936 #  endif
    937933            pVHdr->h_vlan_proto = RT_H2N_U16(ETH_P_8021Q);
    938934            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