VirtualBox

Ignore:
Timestamp:
Feb 12, 2009 1:04:31 PM (16 years ago)
Author:
vboxsync
Message:

User-proposed fix for http://www.virtualbox.org/ticket/3215

File:
1 edited

Legend:

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

    r16509 r16706  
    406406}
    407407
    408 #define VBOXNETFLT_CB_TAG 0xA1C9D7C3
     408#define VBOXNETFLT_CB_TAG(skb) (0xA1C90000 | (skb->dev->ifindex & 0xFFFF))
    409409#define VBOXNETFLT_SKB_TAG(skb) (*(uint32_t*)&((skb)->cb[sizeof((skb)->cb)-sizeof(uint32_t)]))
    410410
     
    418418DECLINLINE(bool) vboxNetFltLinuxSkBufIsOur(struct sk_buff *pBuf)
    419419{
    420     return VBOXNETFLT_SKB_TAG(pBuf) == VBOXNETFLT_CB_TAG ;
     420    return VBOXNETFLT_SKB_TAG(pBuf) == VBOXNETFLT_CB_TAG(pBuf);
    421421}
    422422
     
    472472            VBOX_SKB_RESET_MAC_HDR(pPkt);
    473473        }
    474         VBOXNETFLT_SKB_TAG(pPkt) = VBOXNETFLT_CB_TAG;
     474        VBOXNETFLT_SKB_TAG(pPkt) = VBOXNETFLT_CB_TAG(pPkt);
    475475
    476476        return pPkt;
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