1STRUCT SK_BUFF(9) Linux Networking STRUCT SK_BUFF(9)
2
3
4
6 struct_sk_buff - socket buffer
7
9 struct sk_buff {
10 #ifdef __GENKSYMS__
11 struct sk_buff * next;
12 struct sk_buff * prev;
13 struct sock * sk;
14 #else
15 union {unnamed_union};
16 __u16 vlan_tci;
17 #ifndef __GENKSYMS__
18 #endif
19 sk_buff_data_t transport_header;
20 sk_buff_data_t network_header;
21 sk_buff_data_t mac_header;
22 sk_buff_data_t tail;
23 sk_buff_data_t end;
24 unsigned char * head;
25 unsigned char * data;
26 unsigned int truesize;
27 atomic_t users;
28 };
29
31 next
32 Next buffer in list
33
34 prev
35 Previous buffer in list
36
37 sk
38 Socket we are owned by
39
40 {unnamed_union}
41 anonymous
42
43 vlan_tci
44 vlan tag control information
45
46 transport_header
47 Transport layer header
48
49 network_header
50 Network layer header
51
52 mac_header
53 Link layer header
54
55 tail
56 Tail pointer
57
58 end
59 End pointer
60
61 head
62 Head of buffer
63
64 data
65 Data head pointer
66
67 truesize
68 Buffer size
69
70 users
71 User count - see {datagram,tcp}.c
72
74Kernel Hackers Manual 2.6. June 2019 STRUCT SK_BUFF(9)