VirtualBox

Changeset 20341 in vbox


Ignore:
Timestamp:
Jun 5, 2009 3:03:34 PM (16 years ago)
Author:
vboxsync
Message:

#3783: Compilation fix.

File:
1 edited

Legend:

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

    r20284 r20341  
    667667             */
    668668            unsigned char *tmp = pBuf->h.raw;
    669             if (pBuf->h == pBuf->nh && pBuf->protocol == htons(ETH_P_IP))
    670                 pBuf->h.raw = pBuf->nh.raw + ((pBuf->nh.raw[0] & 0xF) * 4);
     669            if (pBuf->h.raw == pBuf->nh.raw && pBuf->protocol == htons(ETH_P_IP))
     670                pBuf->h.raw = pBuf->nh.raw + pBuf->nh.iph->ihl * 4;
    671671#endif /* LINUX_VERSION_CODE == KERNEL_VERSION(2, 6, 18) */
    672672            if (VBOX_SKB_CHECKSUM_HELP(pBuf))
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