VirtualBox

Changeset 37993 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 18, 2011 9:42:33 AM (13 years ago)
Author:
vboxsync
Message:

netflt: Attempt to fix host-only networking crash for pre-2.6.29 kernels

File:
1 edited

Legend:

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

    r36950 r37993  
    960960        return;
    961961    pOverride->pOrgOps              = pDev->OVR_OPS;
    962     pOverride->Ops                  = *pDev->OVR_OPS;
    963962# if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 29)
     963    /**
     964     * There is no need to save ethtool_ops structure since we only modify
     965     * the pointer itself and the structure is optional (#5712).
     966     */
    964967    pOverride->pfnStartXmit         = pDev->hard_start_xmit;
    965968# else /* LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 29) */
     969    pOverride->Ops                  = *pDev->OVR_OPS;
    966970    pOverride->Ops.ndo_start_xmit   = vboxNetFltLinuxStartXmitFilter;
    967971# endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 29) */
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