VirtualBox

Changeset 14508 in vbox for trunk/src


Ignore:
Timestamp:
Nov 24, 2008 10:42:27 AM (16 years ago)
Author:
vboxsync
Message:

Linux hostif: pre-2.6.18 kernel fix

File:
1 edited

Legend:

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

    r14506 r14508  
    5757#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 22) */
    5858
     59#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 18)
     60# define VBOX_SKB_IS_GSO(skb) skb_is_gso(skb)
     61# define VBOX_SKB_GSO_SEGMENT(skb) skb_gso_segment(skb, 0)
     62#else /* LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 18) */
     63# define VBOX_SKB_IS_GSO(skb) false
     64# define VBOX_SKB_GSO_SEGMENT(skb) NULL
     65#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 18) */
    5966
    6067/*******************************************************************************
     
    504511#endif
    505512
    506     Log2(("vboxNetFltLinuxForwardToIntNet: cb=%u gso_size=%u gso_segs=%u gso_type=%u\n",
    507           pBuf->len, skb_shinfo(pBuf)->gso_size, skb_shinfo(pBuf)->gso_segs, skb_shinfo(pBuf)->gso_type));
    508 
    509     if (skb_is_gso(pBuf))
     513    //Log2(("vboxNetFltLinuxForwardToIntNet: cb=%u gso_size=%u gso_segs=%u gso_type=%u\n",
     514    //      pBuf->len, skb_shinfo(pBuf)->gso_size, skb_shinfo(pBuf)->gso_segs, skb_shinfo(pBuf)->gso_type));
     515
     516    if (VBOX_SKB_IS_GSO(pBuf))
    510517    {
    511518        /* Need to segment the packet */
    512         struct sk_buff *pSegments = skb_gso_segment(pBuf, 0); /* No features, very dumb device */
     519        struct sk_buff *pSegments = VBOX_SKB_GSO_SEGMENT(pBuf); /* No features, very dumb device */
    513520        pBuf->next = pSegments;
    514521    }
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