1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>struct sk_buff</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Linux Networking and Network Devices APIs"><link rel="up" href="ch01s02.html" title="Socket Buffer Functions"><link rel="prev" href="API-skb-mstamp-us-delta.html" title="skb_mstamp_us_delta"><link rel="next" href="API-skb-dst.html" title="skb_dst"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">struct sk_buff</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-skb-mstamp-us-delta.html">Prev</a>&#160;</td><th width="60%" align="center">Socket Buffer Functions</th><td width="20%" align="right">&#160;<a accesskey="n" href="API-skb-dst.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-struct-sk-buff"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct sk_buff &#8212; 
2     socket buffer
3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting">
4struct sk_buff {
5  union {unnamed_union};
6  __u16 inner_transport_header;
7  __u16 inner_network_header;
8  __u16 inner_mac_header;
9  __be16 protocol;
10  __u16 transport_header;
11  __u16 network_header;
12  __u16 mac_header;
13  sk_buff_data_t tail;
14  sk_buff_data_t end;
15  unsigned char * head;
16  unsigned char * data;
17  unsigned int truesize;
18  atomic_t users;
19};  </pre></div><div class="refsect1"><a name="idp1092377956"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">{unnamed_union}</span></dt><dd><p>
20   anonymous
21      </p></dd><dt><span class="term">inner_transport_header</span></dt><dd><p>
22   Inner transport layer header (encapsulation)
23      </p></dd><dt><span class="term">inner_network_header</span></dt><dd><p>
24   Network layer header (encapsulation)
25      </p></dd><dt><span class="term">inner_mac_header</span></dt><dd><p>
26   Link layer header (encapsulation)
27      </p></dd><dt><span class="term">protocol</span></dt><dd><p>
28   Packet protocol from driver
29      </p></dd><dt><span class="term">transport_header</span></dt><dd><p>
30   Transport layer header
31      </p></dd><dt><span class="term">network_header</span></dt><dd><p>
32   Network layer header
33      </p></dd><dt><span class="term">mac_header</span></dt><dd><p>
34   Link layer header
35      </p></dd><dt><span class="term">tail</span></dt><dd><p>
36   Tail pointer
37      </p></dd><dt><span class="term">end</span></dt><dd><p>
38   End pointer
39      </p></dd><dt><span class="term">head</span></dt><dd><p>
40   Head of buffer
41      </p></dd><dt><span class="term">data</span></dt><dd><p>
42   Data head pointer
43      </p></dd><dt><span class="term">truesize</span></dt><dd><p>
44   Buffer size
45      </p></dd><dt><span class="term">users</span></dt><dd><p>
46   User count - see {datagram,tcp}.c
47      </p></dd></dl></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-skb-mstamp-us-delta.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="ch01s02.html">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="API-skb-dst.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">skb_mstamp_us_delta</span>&#160;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">&#160;<span class="phrase">skb_dst</span></td></tr></table></div></body></html>
48