Linux???????sk_buff?й?????????
???????????? ???????[ 2012/12/21 10:27:59 ] ????????
????????????°汾????з???????仯??????????????????????汾????union???????????????mac_header????巽????£?
union{
struct ethhdr *ethernet;
unsigned char *raw;
}mac;
?????????????????????????
#ifdef NET_SKBUFF_DATA_USES_OFFSET
typedef unsigned int sk_buff_data_t;
#else
typedef unsigned char *sk_buff_data_t;
#endif
???????????????o??漸??????????????????head??data??tail??end
????head?????????????data???????????????tail???????????????end?????????????????
????char cb[48] __aligned(8);?е?48????????????Σ???????Э?鶴????????洢?????????????
????2??sk_buff_head????
struct sk_buff_head {
/* These two members must be first. */
struct sk_buff *next;
struct sk_buff *prev;
__u32 qlen;
spinlock_t lock;
};
?????????????????????????????????sk_buff?????????????????????sk_buff??????qlen??????????????sk_buff???????lock??????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11