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 ktime_t tstamp;
14 #else
15 union {unnamed_union};
16 #endif
17 __u16 inner_transport_header;
18 __u16 inner_network_header;
19 __u16 inner_mac_header;
20 __u16 transport_header;
21 __u16 network_header;
22 __u16 mac_header;
23 sk_buff_data_t tail;
24 sk_buff_data_t end;
25 unsigned int truesize;
26 atomic_t users;
27 };
28
30 next
31 Next buffer in list
32
33 prev
34 Previous buffer in list
35
36 tstamp
37 Time we arrived/left
38
39 {unnamed_union}
40 anonymous
41
42 inner_transport_header
43 Inner transport layer header (encapsulation)
44
45 inner_network_header
46 Network layer header (encapsulation)
47
48 inner_mac_header
49 Link layer header (encapsulation)
50
51 transport_header
52 Transport layer header
53
54 network_header
55 Network layer header
56
57 mac_header
58 Link layer header
59
60 tail
61 Tail pointer
62
63 end
64 End pointer
65
66 truesize
67 Buffer size
68
69 users
70 User count - see {datagram,tcp}.c
71
73Kernel Hackers Manual 3.10 June 2019 STRUCT SK_BUFF(9)