Changeset 16706 in vbox for trunk/src/VBox/HostDrivers/VBoxNetFlt/linux
- Timestamp:
- Feb 12, 2009 1:04:31 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c
r16509 r16706 406 406 } 407 407 408 #define VBOXNETFLT_CB_TAG 0xA1C9D7C3408 #define VBOXNETFLT_CB_TAG(skb) (0xA1C90000 | (skb->dev->ifindex & 0xFFFF)) 409 409 #define VBOXNETFLT_SKB_TAG(skb) (*(uint32_t*)&((skb)->cb[sizeof((skb)->cb)-sizeof(uint32_t)])) 410 410 … … 418 418 DECLINLINE(bool) vboxNetFltLinuxSkBufIsOur(struct sk_buff *pBuf) 419 419 { 420 return VBOXNETFLT_SKB_TAG(pBuf) == VBOXNETFLT_CB_TAG 420 return VBOXNETFLT_SKB_TAG(pBuf) == VBOXNETFLT_CB_TAG(pBuf); 421 421 } 422 422 … … 472 472 VBOX_SKB_RESET_MAC_HDR(pPkt); 473 473 } 474 VBOXNETFLT_SKB_TAG(pPkt) = VBOXNETFLT_CB_TAG ;474 VBOXNETFLT_SKB_TAG(pPkt) = VBOXNETFLT_CB_TAG(pPkt); 475 475 476 476 return pPkt;
Note:
See TracChangeset
for help on using the changeset viewer.