diff options
Diffstat (limited to 'include/linux/skbuff.h')
-rw-r--r-- | include/linux/skbuff.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 07c9fdd0c126..756e3d057e84 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h | |||
@@ -548,6 +548,16 @@ struct sk_buff { | |||
548 | ip_summed:2, | 548 | ip_summed:2, |
549 | nohdr:1, | 549 | nohdr:1, |
550 | nfctinfo:3; | 550 | nfctinfo:3; |
551 | |||
552 | /* if you move pkt_type around you also must adapt those constants */ | ||
553 | #ifdef __BIG_ENDIAN_BITFIELD | ||
554 | #define PKT_TYPE_MAX (7 << 5) | ||
555 | #else | ||
556 | #define PKT_TYPE_MAX 7 | ||
557 | #endif | ||
558 | #define PKT_TYPE_OFFSET() offsetof(struct sk_buff, __pkt_type_offset) | ||
559 | |||
560 | __u8 __pkt_type_offset[0]; | ||
551 | __u8 pkt_type:3, | 561 | __u8 pkt_type:3, |
552 | fclone:2, | 562 | fclone:2, |
553 | ipvs_property:1, | 563 | ipvs_property:1, |