VirtualBox

Ignore:
Timestamp:
May 6, 2015 1:05:59 AM (10 years ago)
Author:
vboxsync
Message:

VBoxNetFlt/linux: dev_net() appeared in 2.6.26 (redo r100072 w/out garbage).

File:
1 edited

Legend:

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

    r55680 r55681  
    6868#ifndef VBOXNETFLT_LINUX_NO_XMIT_QUEUE
    6969# define VBOX_FLT_XT_TO_INST(pXT)   RT_FROM_MEMBER(pXT, VBOXNETFLTINS, u.s.XmitTask)
     70#endif
     71
     72#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 26)
     73# define VBOX_DEV_NET(dev)                  dev_net(dev)
     74#else
     75# define VBOX_DEV_NET(dev)                  ((dev)->nd_net)
    7076#endif
    7177
     
    21602166    if (pThis->pSwitchPort->pfnNotifyHostAddress)
    21612167    {
    2162         struct net *net = dev_net(pThis->u.s.pDev);
     2168        struct net *net = VBOX_DEV_NET(pThis->u.s.pDev);
    21632169        struct net_device *dev;
    21642170
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