- Timestamp:
- Nov 24, 2008 10:42:27 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c
r14506 r14508 57 57 #endif /* LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 22) */ 58 58 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) */ 59 66 60 67 /******************************************************************************* … … 504 511 #endif 505 512 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)) 510 517 { 511 518 /* 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 */ 513 520 pBuf->next = pSegments; 514 521 }
Note:
See TracChangeset
for help on using the changeset viewer.