Newer
Older
UbixOS / doc / html / de / d63 / prot_2ip6_8h_source.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>UbixOS: include/net/prot/ip6.h Source File</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">UbixOS
   &#160;<span id="projectnumber">2.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.16 -->
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('../../',false,false,'search.php','Search');
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('de/d63/prot_2ip6_8h_source.html','../../');});
/* @license-end */
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">ip6.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="../../de/d63/prot_2ip6_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160; </div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * Copyright (c) 2001-2004 Swedish Institute of Computer Science.</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> * All rights reserved.</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * Redistribution and use in source and binary forms, with or without modification,</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * are permitted provided that the following conditions are met:</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> * 1. Redistributions of source code must retain the above copyright notice,</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> *    this list of conditions and the following disclaimer.</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * 2. Redistributions in binary form must reproduce the above copyright notice,</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> *    this list of conditions and the following disclaimer in the documentation</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> *    and/or other materials provided with the distribution.</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> * 3. The name of the author may not be used to endorse or promote products</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> *    derived from this software without specific prior written permission.</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS&#39;&#39; AND ANY EXPRESS OR IMPLIED</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment"> * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"> * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment"> * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment"> * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment"> * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment"> * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING</span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment"> * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="comment"> * OF SUCH DAMAGE.</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="comment"> * This file is part of the lwIP TCP/IP stack.</span></div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="comment"> * Author: Adam Dunkels &lt;adam@sics.se&gt;</span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="preprocessor">#ifndef LWIP_HDR_PROT_IP6_H</span></div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor">#define LWIP_HDR_PROT_IP6_H</span></div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160; </div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="preprocessor">#include &quot;lwip/arch.h&quot;</span></div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="preprocessor">#include &quot;lwip/ip6_addr.h&quot;</span></div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160; </div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;   </div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="preprocessor">#ifdef PACK_STRUCT_USE_INCLUDES</span></div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="preprocessor">#  include &quot;arch/bpstruct.h&quot;</span></div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<a class="code" href="../../dc/df0/cc_8h.html#a73199061891adf1b912d20835c7d5e96">PACK_STRUCT_BEGIN</a></div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="../../dc/dd5/structip6__addr__packed.html">   53</a></span>&#160;<span class="keyword">struct </span><a class="code" href="../../dc/dd5/structip6__addr__packed.html">ip6_addr_packed</a> {</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;  <a class="code" href="../../dc/dd5/structip6__addr__packed.html#a9d7cd2a55e5e416dec8a98f4cd495a55">PACK_STRUCT_FIELD</a>(<a class="code" href="../../de/d8c/group__compiler__abstraction.html#ga4c14294869aceba3ef9d4c0c302d0f33">u32_t</a> addr[4]);</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;} <a class="code" href="../../de/d63/prot_2ip6_8h.html#a12d53f506842c4aa511edf9e28746539">PACK_STRUCT_STRUCT</a>;</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;<a class="code" href="../../dc/df0/cc_8h.html#a465fef70f294e21cbf4ea51fc342f20e">PACK_STRUCT_END</a></div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;<span class="preprocessor">#ifdef PACK_STRUCT_USE_INCLUDES</span></div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;<span class="preprocessor">#  include &quot;arch/epstruct.h&quot;</span></div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="../../de/d63/prot_2ip6_8h.html#a560932a657f17ec5a0a3a78a1ce7e60a">   60</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="../../dc/dd5/structip6__addr__packed.html">ip6_addr_packed</a> <a class="code" href="../../de/d63/prot_2ip6_8h.html#a560932a657f17ec5a0a3a78a1ce7e60a">ip6_addr_p_t</a>;</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160; </div>
<div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="../../de/d63/prot_2ip6_8h.html#afb4c1dc527be76d8f27591dfb726c023">   62</a></span>&#160;<span class="preprocessor">#define IP6_HLEN 40</span></div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160; </div>
<div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="../../de/d63/prot_2ip6_8h.html#a27db49d05c2230c085c04e766267ed38">   64</a></span>&#160;<span class="preprocessor">#define IP6_NEXTH_HOPBYHOP  0</span></div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="../../de/d63/prot_2ip6_8h.html#a748b24c4f1ae5bbeecaa34e066cb3f8c">   65</a></span>&#160;<span class="preprocessor">#define IP6_NEXTH_TCP       6</span></div>
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="../../de/d63/prot_2ip6_8h.html#a0159bb5b3af8ea1e203d543c0f3c17c2">   66</a></span>&#160;<span class="preprocessor">#define IP6_NEXTH_UDP       17</span></div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="../../de/d63/prot_2ip6_8h.html#a203e1cfca6330ec95bcdbe2418587f65">   67</a></span>&#160;<span class="preprocessor">#define IP6_NEXTH_ENCAPS    41</span></div>
<div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="../../de/d63/prot_2ip6_8h.html#a4d9e6542b73b17c81b56808e1ffd5b27">   68</a></span>&#160;<span class="preprocessor">#define IP6_NEXTH_ROUTING   43</span></div>
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="../../de/d63/prot_2ip6_8h.html#a1a72bdc1494ea84cbf16424e9aedcd79">   69</a></span>&#160;<span class="preprocessor">#define IP6_NEXTH_FRAGMENT  44</span></div>
<div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="../../de/d63/prot_2ip6_8h.html#ab277ee09b6e7200fc1cfe28482b886a6">   70</a></span>&#160;<span class="preprocessor">#define IP6_NEXTH_ICMP6     58</span></div>
<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="../../de/d63/prot_2ip6_8h.html#a654fbd4bb77707859b16f6935f2ba4c7">   71</a></span>&#160;<span class="preprocessor">#define IP6_NEXTH_NONE      59</span></div>
<div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="../../de/d63/prot_2ip6_8h.html#af01cb063f723d79e1c34a8e95a93a2c0">   72</a></span>&#160;<span class="preprocessor">#define IP6_NEXTH_DESTOPTS  60</span></div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="../../de/d63/prot_2ip6_8h.html#a6e4afde135c71a3b194b68add3d9138c">   73</a></span>&#160;<span class="preprocessor">#define IP6_NEXTH_UDPLITE   136</span></div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160; </div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;<span class="preprocessor">#ifdef PACK_STRUCT_USE_INCLUDES</span></div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;<span class="preprocessor">#  include &quot;arch/bpstruct.h&quot;</span></div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;<a class="code" href="../../dc/df0/cc_8h.html#a73199061891adf1b912d20835c7d5e96">PACK_STRUCT_BEGIN</a></div>
<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="../../d2/d9c/structip6__hdr.html">   80</a></span>&#160;<span class="keyword">struct </span><a class="code" href="../../d2/d9c/structip6__hdr.html">ip6_hdr</a> {</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;  <a class="code" href="../../d2/d9c/structip6__hdr.html#ac6e6140bc60cc977c547fe1edf51bc66">PACK_STRUCT_FIELD</a>(<a class="code" href="../../de/d8c/group__compiler__abstraction.html#ga4c14294869aceba3ef9d4c0c302d0f33">u32_t</a> _v_tc_fl);</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;  <a class="code" href="../../d2/d9c/structip6__hdr.html#ac6e6140bc60cc977c547fe1edf51bc66">PACK_STRUCT_FIELD</a>(<a class="code" href="../../de/d8c/group__compiler__abstraction.html#ga77570ac4fcab86864fa1916e55676da2">u16_t</a> _plen);</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;  <a class="code" href="../../d2/d9c/structip6__hdr.html#a7e8821e0eb16fe1f048228c119a69942">PACK_STRUCT_FLD_8</a>(<a class="code" href="../../de/d8c/group__compiler__abstraction.html#ga4caecabca98b43919dd11be1c0d4cd8e">u8_t</a> _nexth);</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;  <a class="code" href="../../d2/d9c/structip6__hdr.html#a7e8821e0eb16fe1f048228c119a69942">PACK_STRUCT_FLD_8</a>(<a class="code" href="../../de/d8c/group__compiler__abstraction.html#ga4caecabca98b43919dd11be1c0d4cd8e">u8_t</a> _hoplim);</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;  <a class="code" href="../../d2/d9c/structip6__hdr.html#a5a575c55ef0ba5454a4b2930cfc10733">PACK_STRUCT_FLD_S</a>(<a class="code" href="../../de/d63/prot_2ip6_8h.html#a560932a657f17ec5a0a3a78a1ce7e60a">ip6_addr_p_t</a> src);</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;  <a class="code" href="../../d2/d9c/structip6__hdr.html#a5a575c55ef0ba5454a4b2930cfc10733">PACK_STRUCT_FLD_S</a>(<a class="code" href="../../de/d63/prot_2ip6_8h.html#a560932a657f17ec5a0a3a78a1ce7e60a">ip6_addr_p_t</a> dest);</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;} <a class="code" href="../../de/d63/prot_2ip6_8h.html#a12d53f506842c4aa511edf9e28746539">PACK_STRUCT_STRUCT</a>;</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;<a class="code" href="../../dc/df0/cc_8h.html#a465fef70f294e21cbf4ea51fc342f20e">PACK_STRUCT_END</a></div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;<span class="preprocessor">#ifdef PACK_STRUCT_USE_INCLUDES</span></div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;<span class="preprocessor">#  include &quot;arch/epstruct.h&quot;</span></div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160; </div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;<span class="comment">/* Hop-by-hop router alert option. */</span></div>
<div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="../../de/d63/prot_2ip6_8h.html#a3c07dfc39f03801b78ea2b5e882feaa5">   99</a></span>&#160;<span class="preprocessor">#define IP6_HBH_HLEN    8</span></div>
<div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="../../de/d63/prot_2ip6_8h.html#a792e3f1465395652f1df6dd41cfa089a">  100</a></span>&#160;<span class="preprocessor">#define IP6_PAD1_OPTION         0</span></div>
<div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="../../de/d63/prot_2ip6_8h.html#a42b8fada1fa942926239b86f91c11e03">  101</a></span>&#160;<span class="preprocessor">#define IP6_PADN_ALERT_OPTION   1</span></div>
<div class="line"><a name="l00102"></a><span class="lineno"><a class="line" href="../../de/d63/prot_2ip6_8h.html#a02ac672111b898fe0ab527329b05ce57">  102</a></span>&#160;<span class="preprocessor">#define IP6_ROUTER_ALERT_OPTION 5</span></div>
<div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="../../de/d63/prot_2ip6_8h.html#afb8daf0c5217efe957cd809074ca5f0b">  103</a></span>&#160;<span class="preprocessor">#define IP6_ROUTER_ALERT_VALUE_MLD 0</span></div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;<span class="preprocessor">#ifdef PACK_STRUCT_USE_INCLUDES</span></div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;<span class="preprocessor">#  include &quot;arch/bpstruct.h&quot;</span></div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;<a class="code" href="../../dc/df0/cc_8h.html#a73199061891adf1b912d20835c7d5e96">PACK_STRUCT_BEGIN</a></div>
<div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="../../d0/d86/structip6__hbh__hdr.html">  108</a></span>&#160;<span class="keyword">struct </span><a class="code" href="../../d0/d86/structip6__hbh__hdr.html">ip6_hbh_hdr</a> {</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;  <span class="comment">/* next header */</span></div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;  <a class="code" href="../../d0/d86/structip6__hbh__hdr.html#a555a70b055779d096f51d359860ca93f">PACK_STRUCT_FLD_8</a>(<a class="code" href="../../de/d8c/group__compiler__abstraction.html#ga4caecabca98b43919dd11be1c0d4cd8e">u8_t</a> _nexth);</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;  <span class="comment">/* header length */</span></div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;  <a class="code" href="../../d0/d86/structip6__hbh__hdr.html#a555a70b055779d096f51d359860ca93f">PACK_STRUCT_FLD_8</a>(<a class="code" href="../../de/d8c/group__compiler__abstraction.html#ga4caecabca98b43919dd11be1c0d4cd8e">u8_t</a> _hlen);</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;  <span class="comment">/* router alert option type */</span></div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;  <a class="code" href="../../d0/d86/structip6__hbh__hdr.html#a555a70b055779d096f51d359860ca93f">PACK_STRUCT_FLD_8</a>(<a class="code" href="../../de/d8c/group__compiler__abstraction.html#ga4caecabca98b43919dd11be1c0d4cd8e">u8_t</a> _ra_opt_type);</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;  <span class="comment">/* router alert option data len */</span></div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;  <a class="code" href="../../d0/d86/structip6__hbh__hdr.html#a555a70b055779d096f51d359860ca93f">PACK_STRUCT_FLD_8</a>(<a class="code" href="../../de/d8c/group__compiler__abstraction.html#ga4caecabca98b43919dd11be1c0d4cd8e">u8_t</a> _ra_opt_dlen);</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;  <span class="comment">/* router alert option data */</span></div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;  <a class="code" href="../../d0/d86/structip6__hbh__hdr.html#a5dff82e0d8756b04febd936e23b989da">PACK_STRUCT_FIELD</a>(<a class="code" href="../../de/d8c/group__compiler__abstraction.html#ga77570ac4fcab86864fa1916e55676da2">u16_t</a> _ra_opt_data);</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;  <span class="comment">/* PadN option type */</span></div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;  <a class="code" href="../../d0/d86/structip6__hbh__hdr.html#a555a70b055779d096f51d359860ca93f">PACK_STRUCT_FLD_8</a>(<a class="code" href="../../de/d8c/group__compiler__abstraction.html#ga4caecabca98b43919dd11be1c0d4cd8e">u8_t</a> _padn_opt_type);</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;  <span class="comment">/* PadN option data len */</span></div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;  <a class="code" href="../../d0/d86/structip6__hbh__hdr.html#a555a70b055779d096f51d359860ca93f">PACK_STRUCT_FLD_8</a>(<a class="code" href="../../de/d8c/group__compiler__abstraction.html#ga4caecabca98b43919dd11be1c0d4cd8e">u8_t</a> _padn_opt_dlen);</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;} <a class="code" href="../../de/d63/prot_2ip6_8h.html#a12d53f506842c4aa511edf9e28746539">PACK_STRUCT_STRUCT</a>;</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;<a class="code" href="../../dc/df0/cc_8h.html#a465fef70f294e21cbf4ea51fc342f20e">PACK_STRUCT_END</a></div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;<span class="preprocessor">#ifdef PACK_STRUCT_USE_INCLUDES</span></div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;<span class="preprocessor">#  include &quot;arch/epstruct.h&quot;</span></div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160; </div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;<span class="comment">/* Fragment header. */</span></div>
<div class="line"><a name="l00130"></a><span class="lineno"><a class="line" href="../../de/d63/prot_2ip6_8h.html#aacda00cc76d9e7f9f3197de3b27089ea">  130</a></span>&#160;<span class="preprocessor">#define IP6_FRAG_HLEN    8</span></div>
<div class="line"><a name="l00131"></a><span class="lineno"><a class="line" href="../../de/d63/prot_2ip6_8h.html#a4ada75ee94d08af1a0d2656e6d14d7d9">  131</a></span>&#160;<span class="preprocessor">#define IP6_FRAG_OFFSET_MASK    0xfff8</span></div>
<div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="../../de/d63/prot_2ip6_8h.html#a4e60dc945c0061d3d4dc4a84132a506b">  132</a></span>&#160;<span class="preprocessor">#define IP6_FRAG_MORE_FLAG      0x0001</span></div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;<span class="preprocessor">#ifdef PACK_STRUCT_USE_INCLUDES</span></div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;<span class="preprocessor">#  include &quot;arch/bpstruct.h&quot;</span></div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;<a class="code" href="../../dc/df0/cc_8h.html#a73199061891adf1b912d20835c7d5e96">PACK_STRUCT_BEGIN</a></div>
<div class="line"><a name="l00137"></a><span class="lineno"><a class="line" href="../../db/d44/structip6__frag__hdr.html">  137</a></span>&#160;<span class="keyword">struct </span><a class="code" href="../../db/d44/structip6__frag__hdr.html">ip6_frag_hdr</a> {</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;  <span class="comment">/* next header */</span></div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;  <a class="code" href="../../db/d44/structip6__frag__hdr.html#a8604fbb38f61d571cdc373f3ecc79512">PACK_STRUCT_FLD_8</a>(<a class="code" href="../../de/d8c/group__compiler__abstraction.html#ga4caecabca98b43919dd11be1c0d4cd8e">u8_t</a> _nexth);</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;  <span class="comment">/* reserved */</span></div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;  <a class="code" href="../../db/d44/structip6__frag__hdr.html#a8604fbb38f61d571cdc373f3ecc79512">PACK_STRUCT_FLD_8</a>(<a class="code" href="../../de/d8c/group__compiler__abstraction.html#ga4caecabca98b43919dd11be1c0d4cd8e">u8_t</a> reserved);</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;  <span class="comment">/* fragment offset */</span></div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;  <a class="code" href="../../db/d44/structip6__frag__hdr.html#a623f3b24b23b28e1509c810e7a1d4711">PACK_STRUCT_FIELD</a>(<a class="code" href="../../de/d8c/group__compiler__abstraction.html#ga77570ac4fcab86864fa1916e55676da2">u16_t</a> _fragment_offset);</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;  <span class="comment">/* fragmented packet identification */</span></div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;  <a class="code" href="../../db/d44/structip6__frag__hdr.html#a623f3b24b23b28e1509c810e7a1d4711">PACK_STRUCT_FIELD</a>(<a class="code" href="../../de/d8c/group__compiler__abstraction.html#ga4c14294869aceba3ef9d4c0c302d0f33">u32_t</a> _identification);</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;} <a class="code" href="../../de/d63/prot_2ip6_8h.html#a12d53f506842c4aa511edf9e28746539">PACK_STRUCT_STRUCT</a>;</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;<a class="code" href="../../dc/df0/cc_8h.html#a465fef70f294e21cbf4ea51fc342f20e">PACK_STRUCT_END</a></div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;<span class="preprocessor">#ifdef PACK_STRUCT_USE_INCLUDES</span></div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;<span class="preprocessor">#  include &quot;arch/epstruct.h&quot;</span></div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160; </div>
<div class="line"><a name="l00152"></a><span class="lineno"><a class="line" href="../../de/d63/prot_2ip6_8h.html#a90f24cf50dee93e0729a1fc1d05374e3">  152</a></span>&#160;<span class="preprocessor">#define IP6H_V(hdr)  ((lwip_ntohl((hdr)-&gt;_v_tc_fl) &gt;&gt; 28) &amp; 0x0f)</span></div>
<div class="line"><a name="l00153"></a><span class="lineno"><a class="line" href="../../de/d63/prot_2ip6_8h.html#a09221519353bd18683c39a37905af968">  153</a></span>&#160;<span class="preprocessor">#define IP6H_TC(hdr) ((lwip_ntohl((hdr)-&gt;_v_tc_fl) &gt;&gt; 20) &amp; 0xff)</span></div>
<div class="line"><a name="l00154"></a><span class="lineno"><a class="line" href="../../de/d63/prot_2ip6_8h.html#aca05b52650fd3d7d7806b7aaf3fe4aaf">  154</a></span>&#160;<span class="preprocessor">#define IP6H_FL(hdr) (lwip_ntohl((hdr)-&gt;_v_tc_fl) &amp; 0x000fffff)</span></div>
<div class="line"><a name="l00155"></a><span class="lineno"><a class="line" href="../../de/d63/prot_2ip6_8h.html#ac672706ee00b07f263dad7dcf116d351">  155</a></span>&#160;<span class="preprocessor">#define IP6H_PLEN(hdr) (lwip_ntohs((hdr)-&gt;_plen))</span></div>
<div class="line"><a name="l00156"></a><span class="lineno"><a class="line" href="../../de/d63/prot_2ip6_8h.html#a11009a147aa680a6a486ded85382aff1">  156</a></span>&#160;<span class="preprocessor">#define IP6H_NEXTH(hdr) ((hdr)-&gt;_nexth)</span></div>
<div class="line"><a name="l00157"></a><span class="lineno"><a class="line" href="../../de/d63/prot_2ip6_8h.html#adc6c59e0bfc927c6770d7b01323a87d5">  157</a></span>&#160;<span class="preprocessor">#define IP6H_NEXTH_P(hdr) ((u8_t *)(hdr) + 6)</span></div>
<div class="line"><a name="l00158"></a><span class="lineno"><a class="line" href="../../de/d63/prot_2ip6_8h.html#a4f8209d53443b50770e57426d027de28">  158</a></span>&#160;<span class="preprocessor">#define IP6H_HOPLIM(hdr) ((hdr)-&gt;_hoplim)</span></div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160; </div>
<div class="line"><a name="l00160"></a><span class="lineno"><a class="line" href="../../de/d63/prot_2ip6_8h.html#a932e7c887bb04691075a8c36c61736e4">  160</a></span>&#160;<span class="preprocessor">#define IP6H_VTCFL_SET(hdr, v, tc, fl) (hdr)-&gt;_v_tc_fl = (lwip_htonl((((u32_t)(v)) &lt;&lt; 28) | (((u32_t)(tc)) &lt;&lt; 20) | (fl)))</span></div>
<div class="line"><a name="l00161"></a><span class="lineno"><a class="line" href="../../de/d63/prot_2ip6_8h.html#a2d727ccfecc56fb1e35ea4f7249f399b">  161</a></span>&#160;<span class="preprocessor">#define IP6H_PLEN_SET(hdr, plen) (hdr)-&gt;_plen = lwip_htons(plen)</span></div>
<div class="line"><a name="l00162"></a><span class="lineno"><a class="line" href="../../de/d63/prot_2ip6_8h.html#a85d62e6278b0bed9e3b88df777be612c">  162</a></span>&#160;<span class="preprocessor">#define IP6H_NEXTH_SET(hdr, nexth) (hdr)-&gt;_nexth = (nexth)</span></div>
<div class="line"><a name="l00163"></a><span class="lineno"><a class="line" href="../../de/d63/prot_2ip6_8h.html#aaa72852834526961a3fb2cbc07fe602d">  163</a></span>&#160;<span class="preprocessor">#define IP6H_HOPLIM_SET(hdr, hl) (hdr)-&gt;_hoplim = (u8_t)(hl)</span></div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160; </div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;}</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160; </div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* LWIP_HDR_PROT_IP6_H */</span><span class="preprocessor"></span></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<div class="ttc" id="astructip6__hdr_html_a7e8821e0eb16fe1f048228c119a69942"><div class="ttname"><a href="../../d2/d9c/structip6__hdr.html#a7e8821e0eb16fe1f048228c119a69942">ip6_hdr::PACK_STRUCT_FLD_8</a></div><div class="ttdeci">PACK_STRUCT_FLD_8(u8_t _nexth)</div></div>
<div class="ttc" id="astructip6__frag__hdr_html_a8604fbb38f61d571cdc373f3ecc79512"><div class="ttname"><a href="../../db/d44/structip6__frag__hdr.html#a8604fbb38f61d571cdc373f3ecc79512">ip6_frag_hdr::PACK_STRUCT_FLD_8</a></div><div class="ttdeci">PACK_STRUCT_FLD_8(u8_t _nexth)</div></div>
<div class="ttc" id="agroup__compiler__abstraction_html_ga77570ac4fcab86864fa1916e55676da2"><div class="ttname"><a href="../../de/d8c/group__compiler__abstraction.html#ga77570ac4fcab86864fa1916e55676da2">u16_t</a></div><div class="ttdeci">uint16_t u16_t</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d2d/arch_8h_source.html#l00124">arch.h:124</a></div></div>
<div class="ttc" id="aprot_2ip6_8h_html_a12d53f506842c4aa511edf9e28746539"><div class="ttname"><a href="../../de/d63/prot_2ip6_8h.html#a12d53f506842c4aa511edf9e28746539">PACK_STRUCT_STRUCT</a></div><div class="ttdeci">PACK_STRUCT_BEGIN struct ip6_addr_packed PACK_STRUCT_STRUCT</div></div>
<div class="ttc" id="agroup__compiler__abstraction_html_ga4c14294869aceba3ef9d4c0c302d0f33"><div class="ttname"><a href="../../de/d8c/group__compiler__abstraction.html#ga4c14294869aceba3ef9d4c0c302d0f33">u32_t</a></div><div class="ttdeci">uint32_t u32_t</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d2d/arch_8h_source.html#l00126">arch.h:126</a></div></div>
<div class="ttc" id="astructip6__addr__packed_html"><div class="ttname"><a href="../../dc/dd5/structip6__addr__packed.html">ip6_addr_packed</a></div><div class="ttdef"><b>Definition:</b> <a href="../../de/d63/prot_2ip6_8h_source.html#l00053">ip6.h:53</a></div></div>
<div class="ttc" id="astructip6__hbh__hdr_html_a555a70b055779d096f51d359860ca93f"><div class="ttname"><a href="../../d0/d86/structip6__hbh__hdr.html#a555a70b055779d096f51d359860ca93f">ip6_hbh_hdr::PACK_STRUCT_FLD_8</a></div><div class="ttdeci">PACK_STRUCT_FLD_8(u8_t _nexth)</div></div>
<div class="ttc" id="astructip6__hbh__hdr_html_a5dff82e0d8756b04febd936e23b989da"><div class="ttname"><a href="../../d0/d86/structip6__hbh__hdr.html#a5dff82e0d8756b04febd936e23b989da">ip6_hbh_hdr::PACK_STRUCT_FIELD</a></div><div class="ttdeci">PACK_STRUCT_FIELD(u16_t _ra_opt_data)</div></div>
<div class="ttc" id="agroup__compiler__abstraction_html_ga4caecabca98b43919dd11be1c0d4cd8e"><div class="ttname"><a href="../../de/d8c/group__compiler__abstraction.html#ga4caecabca98b43919dd11be1c0d4cd8e">u8_t</a></div><div class="ttdeci">uint8_t u8_t</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d2d/arch_8h_source.html#l00122">arch.h:122</a></div></div>
<div class="ttc" id="aprot_2ip6_8h_html_a560932a657f17ec5a0a3a78a1ce7e60a"><div class="ttname"><a href="../../de/d63/prot_2ip6_8h.html#a560932a657f17ec5a0a3a78a1ce7e60a">ip6_addr_p_t</a></div><div class="ttdeci">typedefPACK_STRUCT_END struct ip6_addr_packed ip6_addr_p_t</div><div class="ttdef"><b>Definition:</b> <a href="../../de/d63/prot_2ip6_8h_source.html#l00060">ip6.h:60</a></div></div>
<div class="ttc" id="acc_8h_html_a73199061891adf1b912d20835c7d5e96"><div class="ttname"><a href="../../dc/df0/cc_8h.html#a73199061891adf1b912d20835c7d5e96">PACK_STRUCT_BEGIN</a></div><div class="ttdeci">#define PACK_STRUCT_BEGIN</div><div class="ttdef"><b>Definition:</b> <a href="../../dc/df0/cc_8h_source.html#l00008">cc.h:8</a></div></div>
<div class="ttc" id="astructip6__hdr_html_ac6e6140bc60cc977c547fe1edf51bc66"><div class="ttname"><a href="../../d2/d9c/structip6__hdr.html#ac6e6140bc60cc977c547fe1edf51bc66">ip6_hdr::PACK_STRUCT_FIELD</a></div><div class="ttdeci">PACK_STRUCT_FIELD(u32_t _v_tc_fl)</div></div>
<div class="ttc" id="astructip6__hdr_html_a5a575c55ef0ba5454a4b2930cfc10733"><div class="ttname"><a href="../../d2/d9c/structip6__hdr.html#a5a575c55ef0ba5454a4b2930cfc10733">ip6_hdr::PACK_STRUCT_FLD_S</a></div><div class="ttdeci">PACK_STRUCT_FLD_S(ip6_addr_p_t src)</div></div>
<div class="ttc" id="astructip6__addr__packed_html_a9d7cd2a55e5e416dec8a98f4cd495a55"><div class="ttname"><a href="../../dc/dd5/structip6__addr__packed.html#a9d7cd2a55e5e416dec8a98f4cd495a55">ip6_addr_packed::PACK_STRUCT_FIELD</a></div><div class="ttdeci">PACK_STRUCT_FIELD(u32_t addr[4])</div></div>
<div class="ttc" id="astructip6__hbh__hdr_html"><div class="ttname"><a href="../../d0/d86/structip6__hbh__hdr.html">ip6_hbh_hdr</a></div><div class="ttdef"><b>Definition:</b> <a href="../../de/d63/prot_2ip6_8h_source.html#l00108">ip6.h:108</a></div></div>
<div class="ttc" id="astructip6__frag__hdr_html"><div class="ttname"><a href="../../db/d44/structip6__frag__hdr.html">ip6_frag_hdr</a></div><div class="ttdef"><b>Definition:</b> <a href="../../de/d63/prot_2ip6_8h_source.html#l00137">ip6.h:137</a></div></div>
<div class="ttc" id="astructip6__hdr_html"><div class="ttname"><a href="../../d2/d9c/structip6__hdr.html">ip6_hdr</a></div><div class="ttdef"><b>Definition:</b> <a href="../../de/d63/prot_2ip6_8h_source.html#l00080">ip6.h:80</a></div></div>
<div class="ttc" id="acc_8h_html_a465fef70f294e21cbf4ea51fc342f20e"><div class="ttname"><a href="../../dc/df0/cc_8h.html#a465fef70f294e21cbf4ea51fc342f20e">PACK_STRUCT_END</a></div><div class="ttdeci">#define PACK_STRUCT_END</div><div class="ttdef"><b>Definition:</b> <a href="../../dc/df0/cc_8h_source.html#l00009">cc.h:9</a></div></div>
<div class="ttc" id="astructip6__frag__hdr_html_a623f3b24b23b28e1509c810e7a1d4711"><div class="ttname"><a href="../../db/d44/structip6__frag__hdr.html#a623f3b24b23b28e1509c810e7a1d4711">ip6_frag_hdr::PACK_STRUCT_FIELD</a></div><div class="ttdeci">PACK_STRUCT_FIELD(u16_t _fragment_offset)</div></div>
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="../../dir_2fa1ed3146d6c2b96c5cfe4341985326.html">net</a></li><li class="navelem"><a class="el" href="../../dir_b318166e2547991a5f7b92274f9a499b.html">prot</a></li><li class="navelem"><a class="el" href="../../de/d63/prot_2ip6_8h.html">ip6.h</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.16 </li>
  </ul>
</div>
</body>
</html>