VirtualBox

Ignore:
Timestamp:
Jan 24, 2022 6:44:21 PM (3 years ago)
Author:
vboxsync
Message:

Linux host: VBoxNetAdp: use RTLNX_VER_MIN when defining VBOX_DEV_ADDR_SET macro for different kernel versions, bugref:10190.

Put the most recent version of macro on top of the list.

File:
1 edited

Legend:

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

    r93418 r93421  
    6868
    6969/** Set netdev MAC address. */
    70 #if RTLNX_VER_MAX(5,17,0)
     70#if RTLNX_VER_MIN(5,17,0)
     71# define VBOX_DEV_ADDR_SET(dev, addr, len) dev_addr_mod(dev, 0, addr, len)
     72#else /* < 5.17.0 */
    7173# define VBOX_DEV_ADDR_SET(dev, addr, len) memcpy(dev->dev_addr, addr, len)
    72 #else /* >= 5.17.0 */
    73 # define VBOX_DEV_ADDR_SET(dev, addr, len) dev_addr_mod(dev, 0, addr, len)
    7474#endif
    7575
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