VirtualBox

Changeset 28238 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 13, 2010 9:48:31 AM (15 years ago)
Author:
vboxsync
Message:

VBoxNetFlt-linux.c: 2.6.18 build fix

File:
1 edited

Legend:

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

    r28221 r28238  
    894894     * skb_gso_segment does the following. Do we need to do it as well?
    895895     */
     896#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 23)
    896897    skb_reset_mac_header(pSkb);
    897     pSkb->mac_len = pSkb->network_header - pSkb->mac_header; /** @todo fix this compile erorr too! */
     898    pSkb->mac_len = pSkb->network_header - pSkb->mac_header;
     899#else
     900    pSkb->mac.raw = pSkb->data;
     901    pSkb->mac_len = pSkb->nh.raw - pSkb->data;
     902#endif
    898903
    899904    /*
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