Newer
Older
UbixOS / doc / html / core_2init_8c_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 V2: C:/Dev/git/UbixOS/sys/net/core/init.c 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="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></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 V2
   &#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">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<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('',true,false,'search.php','Search');
  $(document).ready(function() { init_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('core_2init_8c_source.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">init.c</div>  </div>
</div><!--header-->
<div class="contents">
<a href="core_2init_8c.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;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (c) 2001-2004 Swedish Institute of Computer Science.</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> * All rights reserved.</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * Redistribution and use in source and binary forms, with or without modification,</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * are permitted provided that the following conditions are met:</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> * 1. Redistributions of source code must retain the above copyright notice,</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> *    this list of conditions and the following disclaimer.</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * 2. Redistributions in binary form must reproduce the above copyright notice,</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> *    this list of conditions and the following disclaimer in the documentation</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> *    and/or other materials provided with the distribution.</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</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="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> *    derived from this software without specific prior written permission.</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</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="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</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="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment"> * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</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="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment"> * OF SUCH DAMAGE.</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment"> * This file is part of the lwIP TCP/IP stack.</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment"> * Author: Adam Dunkels &lt;adam@sics.se&gt;</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160; </div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="opt_8h.html">net/opt.h</a>&quot;</span></div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160; </div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="sem_8h.html">ubixos/sem.h</a>&gt;</span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160; </div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="net_2init_8h.html">net/init.h</a>&quot;</span></div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="stats_8h.html">net/stats.h</a>&quot;</span></div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="sys_8h.html">net/sys.h</a>&quot;</span></div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="mem_8h.html">net/mem.h</a>&quot;</span></div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="memp_8h.html">net/memp.h</a>&quot;</span></div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="pbuf_8h.html">net/pbuf.h</a>&quot;</span></div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="netif_8h.html">net/netif.h</a>&quot;</span></div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="sockets_8h.html">net/sockets.h</a>&quot;</span></div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="ip_8h.html">net/ip.h</a>&quot;</span></div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="raw_8h.html">net/raw.h</a>&quot;</span></div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="udp_8h.html">net/udp.h</a>&quot;</span></div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="tcp__priv_8h.html">net/priv/tcp_priv.h</a>&quot;</span></div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="igmp_8h.html">net/igmp.h</a>&quot;</span></div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="dns_8h.html">net/dns.h</a>&quot;</span></div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="timeouts_8h.html">net/timeouts.h</a>&quot;</span></div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="etharp_8h.html">net/etharp.h</a>&quot;</span></div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="ip6_8h.html">net/ip6.h</a>&quot;</span></div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="nd6_8h.html">net/nd6.h</a>&quot;</span></div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="mld6_8h.html">net/mld6.h</a>&quot;</span></div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="api_8h.html">net/api.h</a>&quot;</span></div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160; </div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="ppp__opts_8h.html">netif/ppp/ppp_opts.h</a>&quot;</span></div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="ppp__impl_8h.html">netif/ppp/ppp_impl.h</a>&quot;</span></div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160; </div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;<span class="preprocessor">#ifndef LWIP_SKIP_PACKING_CHECK</span></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">   62</span>&#160;<span class="preprocessor">#ifdef PACK_STRUCT_USE_INCLUDES</span></div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;<span class="preprocessor">#  include &quot;arch/bpstruct.h&quot;</span></div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;<a class="code" href="cc_8h.html#a73199061891adf1b912d20835c7d5e96">PACK_STRUCT_BEGIN</a></div>
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="structpacked__struct__test.html">   66</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structpacked__struct__test.html">packed_struct_test</a></div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;{</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;  <a class="code" href="structpacked__struct__test.html#a3e24dcbac86147707ffe8afb7b2b1198">PACK_STRUCT_FLD_8</a>(<a class="code" href="group__compiler__abstraction.html#ga4caecabca98b43919dd11be1c0d4cd8e">u8_t</a>  dummy1);</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;  <a class="code" href="structpacked__struct__test.html#a50b12c50fb386ded21c3306c3b2248c8">PACK_STRUCT_FIELD</a>(<a class="code" href="group__compiler__abstraction.html#ga4c14294869aceba3ef9d4c0c302d0f33">u32_t</a> dummy2);</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;} <a class="code" href="core_2init_8c.html#a2457c50d3c04347155d7101316bbbc24">PACK_STRUCT_STRUCT</a>;</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;<a class="code" href="cc_8h.html#a465fef70f294e21cbf4ea51fc342f20e">PACK_STRUCT_END</a></div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;<span class="preprocessor">#ifdef PACK_STRUCT_USE_INCLUDES</span></div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;<span class="preprocessor">#  include &quot;arch/epstruct.h&quot;</span></div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="core_2init_8c.html#afa3b6d3e87614ea5ab1aa9e7ac00cda4">   75</a></span>&#160;<span class="preprocessor">#define PACKED_STRUCT_TEST_EXPECTED_SIZE 5</span></div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160; </div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160; </div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;<span class="comment">/* Compile-time sanity checks for configuration errors.</span></div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;<span class="comment"> * These can be done independently of LWIP_DEBUG, without penalty.</span></div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;<span class="preprocessor">#ifndef BYTE_ORDER</span></div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;<span class="preprocessor">  #error &quot;BYTE_ORDER is not defined, you have to define it in your cc.h&quot;</span></div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;<span class="preprocessor">#if (!IP_SOF_BROADCAST &amp;&amp; IP_SOF_BROADCAST_RECV)</span></div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;<span class="preprocessor">  #error &quot;If you want to use broadcast filter per pcb on recv operations, you have to define IP_SOF_BROADCAST=1 in your lwipopts.h&quot;</span></div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;<span class="preprocessor">#if (!LWIP_UDP &amp;&amp; LWIP_UDPLITE)</span></div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;<span class="preprocessor">  #error &quot;If you want to use UDP Lite, you have to define LWIP_UDP=1 in your lwipopts.h&quot;</span></div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;<span class="preprocessor">#if (!LWIP_UDP &amp;&amp; LWIP_DHCP)</span></div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;<span class="preprocessor">  #error &quot;If you want to use DHCP, you have to define LWIP_UDP=1 in your lwipopts.h&quot;</span></div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;<span class="preprocessor">#if (!LWIP_UDP &amp;&amp; LWIP_MULTICAST_TX_OPTIONS)</span></div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;<span class="preprocessor">  #error &quot;If you want to use IGMP/LWIP_MULTICAST_TX_OPTIONS, you have to define LWIP_UDP=1 in your lwipopts.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;<span class="preprocessor">#if (!LWIP_UDP &amp;&amp; LWIP_DNS)</span></div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;<span class="preprocessor">  #error &quot;If you want to use DNS, you have to define LWIP_UDP=1 in your lwipopts.h&quot;</span></div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;<span class="preprocessor">#if !MEMP_MEM_MALLOC </span><span class="comment">/* MEMP_NUM_* checks are disabled when not using the pool allocator */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;<span class="preprocessor">#if (LWIP_ARP &amp;&amp; ARP_QUEUEING &amp;&amp; (MEMP_NUM_ARP_QUEUE&lt;=0))</span></div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;<span class="preprocessor">  #error &quot;If you want to use ARP Queueing, you have to define MEMP_NUM_ARP_QUEUE&gt;=1 in your lwipopts.h&quot;</span></div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;<span class="preprocessor">#if (LWIP_RAW &amp;&amp; (MEMP_NUM_RAW_PCB&lt;=0))</span></div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;<span class="preprocessor">  #error &quot;If you want to use RAW, you have to define MEMP_NUM_RAW_PCB&gt;=1 in your lwipopts.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;<span class="preprocessor">#if (LWIP_UDP &amp;&amp; (MEMP_NUM_UDP_PCB&lt;=0))</span></div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;<span class="preprocessor">  #error &quot;If you want to use UDP, you have to define MEMP_NUM_UDP_PCB&gt;=1 in your lwipopts.h&quot;</span></div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;<span class="preprocessor">#if (LWIP_TCP &amp;&amp; (MEMP_NUM_TCP_PCB&lt;=0))</span></div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;<span class="preprocessor">  #error &quot;If you want to use TCP, you have to define MEMP_NUM_TCP_PCB&gt;=1 in your lwipopts.h&quot;</span></div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;<span class="preprocessor">#if (LWIP_IGMP &amp;&amp; (MEMP_NUM_IGMP_GROUP&lt;=1))</span></div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;<span class="preprocessor">  #error &quot;If you want to use IGMP, you have to define MEMP_NUM_IGMP_GROUP&gt;1 in your lwipopts.h&quot;</span></div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;<span class="preprocessor">#if (LWIP_IGMP &amp;&amp; !LWIP_MULTICAST_TX_OPTIONS)</span></div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;<span class="preprocessor">  #error &quot;If you want to use IGMP, you have to define LWIP_MULTICAST_TX_OPTIONS==1 in your lwipopts.h&quot;</span></div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;<span class="preprocessor">#if (LWIP_IGMP &amp;&amp; !LWIP_IPV4)</span></div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;<span class="preprocessor">  #error &quot;IGMP needs LWIP_IPV4 enabled in your lwipopts.h&quot;</span></div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;<span class="preprocessor">#if (LWIP_MULTICAST_TX_OPTIONS &amp;&amp; !LWIP_IPV4)</span></div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;<span class="preprocessor">  #error &quot;LWIP_MULTICAST_TX_OPTIONS needs LWIP_IPV4 enabled in your lwipopts.h&quot;</span></div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;<span class="preprocessor">#if ((LWIP_NETCONN || LWIP_SOCKET) &amp;&amp; (MEMP_NUM_TCPIP_MSG_API&lt;=0))</span></div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;<span class="preprocessor">  #error &quot;If you want to use Sequential API, you have to define MEMP_NUM_TCPIP_MSG_API&gt;=1 in your lwipopts.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;<span class="comment">/* There must be sufficient timeouts, taking into account requirements of the subsystems. */</span></div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;<span class="preprocessor">#if LWIP_TIMERS &amp;&amp; (MEMP_NUM_SYS_TIMEOUT &lt; (LWIP_TCP + IP_REASSEMBLY + LWIP_ARP + (2*LWIP_DHCP) + LWIP_AUTOIP + LWIP_IGMP + LWIP_DNS + PPP_SUPPORT + (LWIP_IPV6 ? (1 + LWIP_IPV6_REASS + LWIP_IPV6_MLD) : 0)))</span></div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;<span class="preprocessor">  #error &quot;MEMP_NUM_SYS_TIMEOUT is too low to accomodate all required timeouts&quot;</span></div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;<span class="preprocessor">#if (IP_REASSEMBLY &amp;&amp; (MEMP_NUM_REASSDATA &gt; IP_REASS_MAX_PBUFS))</span></div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;<span class="preprocessor">  #error &quot;MEMP_NUM_REASSDATA &gt; IP_REASS_MAX_PBUFS doesn&#39;t make sense since each struct ip_reassdata must hold 2 pbufs at least!&quot;</span></div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* !MEMP_MEM_MALLOC */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;<span class="preprocessor">#if LWIP_WND_SCALE</span></div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;<span class="preprocessor">#if (LWIP_TCP &amp;&amp; (TCP_WND &gt; 0xffffffff))</span></div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;<span class="preprocessor">  #error &quot;If you want to use TCP, TCP_WND must fit in an u32_t, so, you have to reduce it in your lwipopts.h&quot;</span></div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;<span class="preprocessor">#if (LWIP_TCP &amp;&amp; (TCP_RCV_SCALE &gt; 14))</span></div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;<span class="preprocessor">  #error &quot;The maximum valid window scale value is 14!&quot;</span></div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;<span class="preprocessor">#if (LWIP_TCP &amp;&amp; (TCP_WND &gt; (0xFFFFU &lt;&lt; TCP_RCV_SCALE)))</span></div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;<span class="preprocessor">  #error &quot;TCP_WND is bigger than the configured LWIP_WND_SCALE allows!&quot;</span></div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;<span class="preprocessor">#if (LWIP_TCP &amp;&amp; ((TCP_WND &gt;&gt; TCP_RCV_SCALE) == 0))</span></div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;<span class="preprocessor">  #error &quot;TCP_WND is too small for the configured LWIP_WND_SCALE (results in zero window)!&quot;</span></div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;<span class="preprocessor">#else </span><span class="comment">/* LWIP_WND_SCALE */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;<span class="preprocessor">#if (LWIP_TCP &amp;&amp; (TCP_WND &gt; 0xffff))</span></div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;<span class="preprocessor">  #error &quot;If you want to use TCP, TCP_WND must fit in an u16_t, so, you have to reduce it in your lwipopts.h (or enable window scaling)&quot;</span></div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* LWIP_WND_SCALE */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;<span class="preprocessor">#if (LWIP_TCP &amp;&amp; (TCP_SND_QUEUELEN &gt; 0xffff))</span></div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;<span class="preprocessor">  #error &quot;If you want to use TCP, TCP_SND_QUEUELEN must fit in an u16_t, so, you have to reduce it in your lwipopts.h&quot;</span></div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;<span class="preprocessor">#if (LWIP_TCP &amp;&amp; (TCP_SND_QUEUELEN &lt; 2))</span></div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;<span class="preprocessor">  #error &quot;TCP_SND_QUEUELEN must be at least 2 for no-copy TCP writes to work&quot;</span></div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;<span class="preprocessor">#if (LWIP_TCP &amp;&amp; ((TCP_MAXRTX &gt; 12) || (TCP_SYNMAXRTX &gt; 12)))</span></div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;<span class="preprocessor">  #error &quot;If you want to use TCP, TCP_MAXRTX and TCP_SYNMAXRTX must less or equal to 12 (due to tcp_backoff table), so, you have to reduce them in your lwipopts.h&quot;</span></div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;<span class="preprocessor">#if (LWIP_TCP &amp;&amp; TCP_LISTEN_BACKLOG &amp;&amp; ((TCP_DEFAULT_LISTEN_BACKLOG &lt; 0) || (TCP_DEFAULT_LISTEN_BACKLOG &gt; 0xff)))</span></div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;<span class="preprocessor">  #error &quot;If you want to use TCP backlog, TCP_DEFAULT_LISTEN_BACKLOG must fit into an u8_t&quot;</span></div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;<span class="preprocessor">#if (LWIP_NETIF_API &amp;&amp; (NO_SYS==1))</span></div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;<span class="preprocessor">  #error &quot;If you want to use NETIF API, you have to define NO_SYS=0 in your lwipopts.h&quot;</span></div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;<span class="preprocessor">#if ((LWIP_SOCKET || LWIP_NETCONN) &amp;&amp; (NO_SYS==1))</span></div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;<span class="preprocessor">  #error &quot;If you want to use Sequential API, you have to define NO_SYS=0 in your lwipopts.h&quot;</span></div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;<span class="preprocessor">#if (LWIP_PPP_API &amp;&amp; (NO_SYS==1))</span></div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;<span class="preprocessor">  #error &quot;If you want to use PPP API, you have to define NO_SYS=0 in your lwipopts.h&quot;</span></div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;<span class="preprocessor">#if (LWIP_PPP_API &amp;&amp; (PPP_SUPPORT==0))</span></div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;<span class="preprocessor">  #error &quot;If you want to use PPP API, you have to enable PPP_SUPPORT in your lwipopts.h&quot;</span></div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;<span class="preprocessor">#if (((!LWIP_DHCP) || (!LWIP_AUTOIP)) &amp;&amp; LWIP_DHCP_AUTOIP_COOP)</span></div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;<span class="preprocessor">  #error &quot;If you want to use DHCP/AUTOIP cooperation mode, you have to define LWIP_DHCP=1 and LWIP_AUTOIP=1 in your lwipopts.h&quot;</span></div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;<span class="preprocessor">#if (((!LWIP_DHCP) || (!LWIP_ARP)) &amp;&amp; DHCP_DOES_ARP_CHECK)</span></div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;<span class="preprocessor">  #error &quot;If you want to use DHCP ARP checking, you have to define LWIP_DHCP=1 and LWIP_ARP=1 in your lwipopts.h&quot;</span></div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;<span class="preprocessor">#if (!LWIP_ARP &amp;&amp; LWIP_AUTOIP)</span></div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;<span class="preprocessor">  #error &quot;If you want to use AUTOIP, you have to define LWIP_ARP=1 in your lwipopts.h&quot;</span></div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;<span class="preprocessor">#if (LWIP_TCP &amp;&amp; ((LWIP_EVENT_API &amp;&amp; LWIP_CALLBACK_API) || (!LWIP_EVENT_API &amp;&amp; !LWIP_CALLBACK_API)))</span></div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;<span class="preprocessor">  #error &quot;One and exactly one of LWIP_EVENT_API and LWIP_CALLBACK_API has to be enabled in your lwipopts.h&quot;</span></div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;<span class="preprocessor">#if (MEM_LIBC_MALLOC &amp;&amp; MEM_USE_POOLS)</span></div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;<span class="preprocessor">  #error &quot;MEM_LIBC_MALLOC and MEM_USE_POOLS may not both be simultaneously enabled in your lwipopts.h&quot;</span></div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;<span class="preprocessor">#if (MEM_USE_POOLS &amp;&amp; !MEMP_USE_CUSTOM_POOLS)</span></div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;<span class="preprocessor">  #error &quot;MEM_USE_POOLS requires custom pools (MEMP_USE_CUSTOM_POOLS) to be enabled in your lwipopts.h&quot;</span></div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;<span class="preprocessor">#if (PBUF_POOL_BUFSIZE &lt;= MEM_ALIGNMENT)</span></div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;<span class="preprocessor">  #error &quot;PBUF_POOL_BUFSIZE must be greater than MEM_ALIGNMENT or the offset may take the full first pbuf&quot;</span></div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;<span class="preprocessor">#if (DNS_LOCAL_HOSTLIST &amp;&amp; !DNS_LOCAL_HOSTLIST_IS_DYNAMIC &amp;&amp; !(defined(DNS_LOCAL_HOSTLIST_INIT)))</span></div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;<span class="preprocessor">  #error &quot;you have to define define DNS_LOCAL_HOSTLIST_INIT {{&#39;host1&#39;, 0x123}, {&#39;host2&#39;, 0x234}} to initialize DNS_LOCAL_HOSTLIST&quot;</span></div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;<span class="preprocessor">#if PPP_SUPPORT &amp;&amp; !PPPOS_SUPPORT &amp;&amp; !PPPOE_SUPPORT &amp;&amp; !PPPOL2TP_SUPPORT</span></div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;<span class="preprocessor">  #error &quot;PPP_SUPPORT needs at least one of PPPOS_SUPPORT, PPPOE_SUPPORT or PPPOL2TP_SUPPORT turned on&quot;</span></div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;<span class="preprocessor">#if PPP_SUPPORT &amp;&amp; !PPP_IPV4_SUPPORT &amp;&amp; !PPP_IPV6_SUPPORT</span></div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;<span class="preprocessor">  #error &quot;PPP_SUPPORT needs PPP_IPV4_SUPPORT and/or PPP_IPV6_SUPPORT turned on&quot;</span></div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;<span class="preprocessor">#if PPP_SUPPORT &amp;&amp; PPP_IPV4_SUPPORT &amp;&amp; !LWIP_IPV4</span></div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;<span class="preprocessor">  #error &quot;PPP_IPV4_SUPPORT needs LWIP_IPV4 turned on&quot;</span></div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;<span class="preprocessor">#if PPP_SUPPORT &amp;&amp; PPP_IPV6_SUPPORT &amp;&amp; !LWIP_IPV6</span></div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;<span class="preprocessor">  #error &quot;PPP_IPV6_SUPPORT needs LWIP_IPV6 turned on&quot;</span></div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;<span class="preprocessor">#if !LWIP_ETHERNET &amp;&amp; (LWIP_ARP || PPPOE_SUPPORT)</span></div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;<span class="preprocessor">  #error &quot;LWIP_ETHERNET needs to be turned on for LWIP_ARP or PPPOE_SUPPORT&quot;</span></div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;<span class="preprocessor">#if LWIP_TCPIP_CORE_LOCKING_INPUT &amp;&amp; !LWIP_TCPIP_CORE_LOCKING</span></div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;<span class="preprocessor">  #error &quot;When using LWIP_TCPIP_CORE_LOCKING_INPUT, LWIP_TCPIP_CORE_LOCKING must be enabled, too&quot;</span></div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;<span class="preprocessor">#if LWIP_TCP &amp;&amp; LWIP_NETIF_TX_SINGLE_PBUF &amp;&amp; !TCP_OVERSIZE</span></div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;<span class="preprocessor">  #error &quot;LWIP_NETIF_TX_SINGLE_PBUF needs TCP_OVERSIZE enabled to create single-pbuf TCP packets&quot;</span></div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;<span class="preprocessor">#if LWIP_NETCONN &amp;&amp; LWIP_TCP</span></div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;<span class="preprocessor">#if NETCONN_COPY != TCP_WRITE_FLAG_COPY</span></div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;<span class="preprocessor">  #error &quot;NETCONN_COPY != TCP_WRITE_FLAG_COPY&quot;</span></div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;<span class="preprocessor">#if NETCONN_MORE != TCP_WRITE_FLAG_MORE</span></div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;<span class="preprocessor">  #error &quot;NETCONN_MORE != TCP_WRITE_FLAG_MORE&quot;</span></div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* LWIP_NETCONN &amp;&amp; LWIP_TCP */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;<span class="preprocessor">#if LWIP_SOCKET</span></div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;<span class="comment">/* Check that the SO_* socket options and SOF_* lwIP-internal flags match */</span></div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;<span class="preprocessor">#if SO_REUSEADDR != SOF_REUSEADDR</span></div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;<span class="preprocessor">  #error &quot;WARNING: SO_REUSEADDR != SOF_REUSEADDR&quot;</span></div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;<span class="preprocessor">#if SO_KEEPALIVE != SOF_KEEPALIVE</span></div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;<span class="preprocessor">  #error &quot;WARNING: SO_KEEPALIVE != SOF_KEEPALIVE&quot;</span></div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;<span class="preprocessor">#if SO_BROADCAST != SOF_BROADCAST</span></div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;<span class="preprocessor">  #error &quot;WARNING: SO_BROADCAST != SOF_BROADCAST&quot;</span></div>
<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* LWIP_SOCKET */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160; </div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160; </div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;<span class="comment">/* Compile-time checks for deprecated options.</span></div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;<span class="preprocessor">#ifdef MEMP_NUM_TCPIP_MSG</span></div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;<span class="preprocessor">  #error &quot;MEMP_NUM_TCPIP_MSG option is deprecated. Remove it from your lwipopts.h.&quot;</span></div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;<span class="preprocessor">#ifdef TCP_REXMIT_DEBUG</span></div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;<span class="preprocessor">  #error &quot;TCP_REXMIT_DEBUG option is deprecated. Remove it from your lwipopts.h.&quot;</span></div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;<span class="preprocessor">#ifdef RAW_STATS</span></div>
<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;<span class="preprocessor">  #error &quot;RAW_STATS option is deprecated. Remove it from your lwipopts.h.&quot;</span></div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;<span class="preprocessor">#ifdef ETHARP_QUEUE_FIRST</span></div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;<span class="preprocessor">  #error &quot;ETHARP_QUEUE_FIRST option is deprecated. Remove it from your lwipopts.h.&quot;</span></div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;<span class="preprocessor">#ifdef ETHARP_ALWAYS_INSERT</span></div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;<span class="preprocessor">  #error &quot;ETHARP_ALWAYS_INSERT option is deprecated. Remove it from your lwipopts.h.&quot;</span></div>
<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;<span class="preprocessor">#if !NO_SYS &amp;&amp; LWIP_TCPIP_CORE_LOCKING &amp;&amp; LWIP_COMPAT_MUTEX &amp;&amp; !defined(LWIP_COMPAT_MUTEX_ALLOWED)</span></div>
<div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;<span class="preprocessor">  #error &quot;LWIP_COMPAT_MUTEX cannot prevent priority inversion. It is recommended to implement priority-aware mutexes. (Define LWIP_COMPAT_MUTEX_ALLOWED to disable this error.)&quot;</span></div>
<div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160; </div>
<div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;<span class="preprocessor">#ifndef LWIP_DISABLE_TCP_SANITY_CHECKS</span></div>
<div class="line"><a name="l00267"></a><span class="lineno"><a class="line" href="core_2init_8c.html#a2fd90dfd6cee216d4a316078cc0ec2b9">  267</a></span>&#160;<span class="preprocessor">#define LWIP_DISABLE_TCP_SANITY_CHECKS  0</span></div>
<div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;<span class="preprocessor">#ifndef LWIP_DISABLE_MEMP_SANITY_CHECKS</span></div>
<div class="line"><a name="l00270"></a><span class="lineno"><a class="line" href="core_2init_8c.html#ad76cb551defb63d2352d696afcb8ade6">  270</a></span>&#160;<span class="preprocessor">#define LWIP_DISABLE_MEMP_SANITY_CHECKS 0</span></div>
<div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160; </div>
<div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;<span class="comment">/* MEMP sanity checks */</span></div>
<div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;<span class="preprocessor">#if MEMP_MEM_MALLOC</span></div>
<div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;<span class="preprocessor">#if !LWIP_DISABLE_MEMP_SANITY_CHECKS</span></div>
<div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;<span class="preprocessor">#if LWIP_NETCONN || LWIP_SOCKET</span></div>
<div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;<span class="preprocessor">#if !MEMP_NUM_NETCONN &amp;&amp; LWIP_SOCKET</span></div>
<div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;<span class="preprocessor">#error &quot;lwip_sanity_check: WARNING: MEMP_NUM_NETCONN cannot be 0 when using sockets!&quot;</span></div>
<div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;<span class="preprocessor">#else </span><span class="comment">/* MEMP_MEM_MALLOC */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;<span class="preprocessor">#if MEMP_NUM_NETCONN &gt; (MEMP_NUM_TCP_PCB+MEMP_NUM_TCP_PCB_LISTEN+MEMP_NUM_UDP_PCB+MEMP_NUM_RAW_PCB)</span></div>
<div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;<span class="preprocessor">#error &quot;lwip_sanity_check: WARNING: MEMP_NUM_NETCONN should be less than the sum of MEMP_NUM_{TCP,RAW,UDP}_PCB+MEMP_NUM_TCP_PCB_LISTEN. If you know what you are doing, define LWIP_DISABLE_MEMP_SANITY_CHECKS to 1 to disable this error.&quot;</span></div>
<div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* LWIP_NETCONN || LWIP_SOCKET */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* !LWIP_DISABLE_MEMP_SANITY_CHECKS */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;<span class="preprocessor">#if MEM_USE_POOLS</span></div>
<div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;<span class="preprocessor">#error &quot;MEMP_MEM_MALLOC and MEM_USE_POOLS cannot be enabled at the same time&quot;</span></div>
<div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;<span class="preprocessor">#ifdef LWIP_HOOK_MEMP_AVAILABLE</span></div>
<div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;<span class="preprocessor">#error &quot;LWIP_HOOK_MEMP_AVAILABLE doesn&#39;t make sense with MEMP_MEM_MALLOC&quot;</span></div>
<div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* MEMP_MEM_MALLOC */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160; </div>
<div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;<span class="comment">/* TCP sanity checks */</span></div>
<div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;<span class="preprocessor">#if !LWIP_DISABLE_TCP_SANITY_CHECKS</span></div>
<div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;<span class="preprocessor">#if LWIP_TCP</span></div>
<div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;<span class="preprocessor">#if !MEMP_MEM_MALLOC &amp;&amp; (MEMP_NUM_TCP_SEG &lt; TCP_SND_QUEUELEN)</span></div>
<div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;<span class="preprocessor">  #error &quot;lwip_sanity_check: WARNING: MEMP_NUM_TCP_SEG should be at least as big as TCP_SND_QUEUELEN. If you know what you are doing, define LWIP_DISABLE_TCP_SANITY_CHECKS to 1 to disable this error.&quot;</span></div>
<div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;<span class="preprocessor">#if TCP_SND_BUF &lt; (2 * TCP_MSS)</span></div>
<div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;<span class="preprocessor">  #error &quot;lwip_sanity_check: WARNING: TCP_SND_BUF must be at least as much as (2 * TCP_MSS) for things to work smoothly. If you know what you are doing, define LWIP_DISABLE_TCP_SANITY_CHECKS to 1 to disable this error.&quot;</span></div>
<div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;<span class="preprocessor">#if TCP_SND_QUEUELEN &lt; (2 * (TCP_SND_BUF / TCP_MSS))</span></div>
<div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;<span class="preprocessor">  #error &quot;lwip_sanity_check: WARNING: TCP_SND_QUEUELEN must be at least as much as (2 * TCP_SND_BUF/TCP_MSS) for things to work. If you know what you are doing, define LWIP_DISABLE_TCP_SANITY_CHECKS to 1 to disable this error.&quot;</span></div>
<div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;<span class="preprocessor">#if TCP_SNDLOWAT &gt;= TCP_SND_BUF</span></div>
<div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;<span class="preprocessor">  #error &quot;lwip_sanity_check: WARNING: TCP_SNDLOWAT must be less than TCP_SND_BUF. If you know what you are doing, define LWIP_DISABLE_TCP_SANITY_CHECKS to 1 to disable this error.&quot;</span></div>
<div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;<span class="preprocessor">#if TCP_SNDLOWAT &gt;= (0xFFFF - (4 * TCP_MSS))</span></div>
<div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;<span class="preprocessor">  #error &quot;lwip_sanity_check: WARNING: TCP_SNDLOWAT must at least be 4*MSS below u16_t overflow!&quot;</span></div>
<div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;<span class="preprocessor">#if TCP_SNDQUEUELOWAT &gt;= TCP_SND_QUEUELEN</span></div>
<div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;<span class="preprocessor">  #error &quot;lwip_sanity_check: WARNING: TCP_SNDQUEUELOWAT must be less than TCP_SND_QUEUELEN. If you know what you are doing, define LWIP_DISABLE_TCP_SANITY_CHECKS to 1 to disable this error.&quot;</span></div>
<div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;<span class="preprocessor">#if !MEMP_MEM_MALLOC &amp;&amp; PBUF_POOL_SIZE &amp;&amp; (PBUF_POOL_BUFSIZE &lt;= (PBUF_LINK_ENCAPSULATION_HLEN + PBUF_LINK_HLEN + PBUF_IP_HLEN + PBUF_TRANSPORT_HLEN))</span></div>
<div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;<span class="preprocessor">  #error &quot;lwip_sanity_check: WARNING: PBUF_POOL_BUFSIZE does not provide enough space for protocol headers. If you know what you are doing, define LWIP_DISABLE_TCP_SANITY_CHECKS to 1 to disable this error.&quot;</span></div>
<div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;<span class="preprocessor">#if !MEMP_MEM_MALLOC &amp;&amp; PBUF_POOL_SIZE &amp;&amp; (TCP_WND &gt; (PBUF_POOL_SIZE * (PBUF_POOL_BUFSIZE - (PBUF_LINK_ENCAPSULATION_HLEN + PBUF_LINK_HLEN + PBUF_IP_HLEN + PBUF_TRANSPORT_HLEN))))</span></div>
<div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;<span class="preprocessor">  #error &quot;lwip_sanity_check: WARNING: TCP_WND is larger than space provided by PBUF_POOL_SIZE * (PBUF_POOL_BUFSIZE - protocol headers). If you know what you are doing, define LWIP_DISABLE_TCP_SANITY_CHECKS to 1 to disable this error.&quot;</span></div>
<div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;<span class="preprocessor">#if TCP_WND &lt; TCP_MSS</span></div>
<div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;<span class="preprocessor">  #error &quot;lwip_sanity_check: WARNING: TCP_WND is smaller than MSS. If you know what you are doing, define LWIP_DISABLE_TCP_SANITY_CHECKS to 1 to disable this error.&quot;</span></div>
<div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* LWIP_TCP */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* !LWIP_DISABLE_TCP_SANITY_CHECKS */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160; </div>
<div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;<span class="keywordtype">void</span></div>
<div class="line"><a name="l00333"></a><span class="lineno"><a class="line" href="core_2init_8c.html#a0c1a18439524d2f4a5e51d25c0ca2ce9">  333</a></span>&#160;<a class="code" href="core_2init_8c.html#a0c1a18439524d2f4a5e51d25c0ca2ce9">lwip_init</a>(<span class="keywordtype">void</span>)</div>
<div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;{</div>
<div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;<span class="preprocessor">#ifndef LWIP_SKIP_CONST_CHECK</span></div>
<div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;  <span class="keywordtype">int</span> a = 0;</div>
<div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;  <a class="code" href="group__compiler__abstraction.html#ga70624a5deb8b9199406372a7f3603ecf">LWIP_UNUSED_ARG</a>(a);</div>
<div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;  <a class="code" href="debug_8h.html#a94ad086267808462beae2b38f91996ed">LWIP_ASSERT</a>(<span class="stringliteral">&quot;LWIP_CONST_CAST not implemented correctly. Check your lwIP port.&quot;</span>, <a class="code" href="group__compiler__abstraction.html#gaa0dd3f76dd9a837feaac61fedc0dbe72">LWIP_CONST_CAST</a>(<span class="keywordtype">void</span>*, &amp;a) == &amp;a);</div>
<div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;<span class="preprocessor">#ifndef LWIP_SKIP_PACKING_CHECK</span></div>
<div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;  <a class="code" href="debug_8h.html#a94ad086267808462beae2b38f91996ed">LWIP_ASSERT</a>(<span class="stringliteral">&quot;Struct packing not implemented correctly. Check your lwIP port.&quot;</span>, <span class="keyword">sizeof</span>(<span class="keyword">struct</span> <a class="code" href="structpacked__struct__test.html">packed_struct_test</a>) == <a class="code" href="core_2init_8c.html#afa3b6d3e87614ea5ab1aa9e7ac00cda4">PACKED_STRUCT_TEST_EXPECTED_SIZE</a>);</div>
<div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160; </div>
<div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;  <span class="comment">/* Modules initialization */</span></div>
<div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;  <a class="code" href="stats_8h.html#a832291112716a16838a0cc49595211b2">stats_init</a>();</div>
<div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;<span class="preprocessor">#if !NO_SYS</span></div>
<div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;  <a class="code" href="sys_8h.html#af411a8bc6b7ed4b0af9114e10c959448">sys_init</a>();</div>
<div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* !NO_SYS */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;  <a class="code" href="mem_8h.html#a44a136e3b70c36abb6f8dc060c778113">mem_init</a>();</div>
<div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;  <a class="code" href="memp_8h.html#a9693e5b1ac2c6b9c0e7870522d45efa2">memp_init</a>();</div>
<div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;  <a class="code" href="pbuf_8h.html#a0c9b6a35471ebe1628ffe74bbc67f0b4">pbuf_init</a>();</div>
<div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;  <a class="code" href="netif_8h.html#a0f4a53e47c840904f824a2a1c0d4ebf4">netif_init</a>();</div>
<div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;<span class="preprocessor">#if LWIP_IPV4</span></div>
<div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;  ip_init();</div>
<div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;<span class="preprocessor">#if LWIP_ARP</span></div>
<div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;  etharp_init();</div>
<div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* LWIP_ARP */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* LWIP_IPV4 */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;<span class="preprocessor">#if LWIP_RAW</span></div>
<div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;  raw_init();</div>
<div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* LWIP_RAW */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;<span class="preprocessor">#if LWIP_UDP</span></div>
<div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;  udp_init();</div>
<div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* LWIP_UDP */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;<span class="preprocessor">#if LWIP_TCP</span></div>
<div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;  tcp_init();</div>
<div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* LWIP_TCP */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;<span class="preprocessor">#if LWIP_IGMP</span></div>
<div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160;  igmp_init();</div>
<div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* LWIP_IGMP */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160;<span class="preprocessor">#if LWIP_DNS</span></div>
<div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160;  dns_init();</div>
<div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* LWIP_DNS */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;<span class="preprocessor">#if PPP_SUPPORT</span></div>
<div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;  ppp_init();</div>
<div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160; </div>
<div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160;<span class="preprocessor">#if LWIP_TIMERS</span></div>
<div class="line"><a name="l00379"></a><span class="lineno">  379</span>&#160;  sys_timeouts_init();</div>
<div class="line"><a name="l00380"></a><span class="lineno">  380</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* LWIP_TIMERS */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00381"></a><span class="lineno">  381</span>&#160;}</div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<div class="ttc" id="asys_8h_html"><div class="ttname"><a href="sys_8h.html">sys.h</a></div></div>
<div class="ttc" id="astructpacked__struct__test_html_a50b12c50fb386ded21c3306c3b2248c8"><div class="ttname"><a href="structpacked__struct__test.html#a50b12c50fb386ded21c3306c3b2248c8">packed_struct_test::PACK_STRUCT_FIELD</a></div><div class="ttdeci">PACK_STRUCT_FIELD(u32_t dummy2)</div></div>
<div class="ttc" id="aopt_8h_html"><div class="ttname"><a href="opt_8h.html">opt.h</a></div></div>
<div class="ttc" id="asys_8h_html_af411a8bc6b7ed4b0af9114e10c959448"><div class="ttname"><a href="sys_8h.html#af411a8bc6b7ed4b0af9114e10c959448">sys_init</a></div><div class="ttdeci">void sys_init(void)</div><div class="ttdef"><b>Definition:</b> <a href="sys__arch_8c_source.html#l00032">sys_arch.c:32</a></div></div>
<div class="ttc" id="and6_8h_html"><div class="ttname"><a href="nd6_8h.html">nd6.h</a></div></div>
<div class="ttc" id="adebug_8h_html_a94ad086267808462beae2b38f91996ed"><div class="ttname"><a href="debug_8h.html#a94ad086267808462beae2b38f91996ed">LWIP_ASSERT</a></div><div class="ttdeci">#define LWIP_ASSERT(message, assertion)</div><div class="ttdef"><b>Definition:</b> <a href="debug_8h_source.html#l00116">debug.h:116</a></div></div>
<div class="ttc" id="apbuf_8h_html"><div class="ttname"><a href="pbuf_8h.html">pbuf.h</a></div></div>
<div class="ttc" id="asem_8h_html"><div class="ttname"><a href="sem_8h.html">sem.h</a></div></div>
<div class="ttc" id="aigmp_8h_html"><div class="ttname"><a href="igmp_8h.html">igmp.h</a></div></div>
<div class="ttc" id="acore_2init_8c_html_a2457c50d3c04347155d7101316bbbc24"><div class="ttname"><a href="core_2init_8c.html#a2457c50d3c04347155d7101316bbbc24">PACK_STRUCT_STRUCT</a></div><div class="ttdeci">PACK_STRUCT_BEGIN struct packed_struct_test PACK_STRUCT_STRUCT</div></div>
<div class="ttc" id="amem_8h_html_a44a136e3b70c36abb6f8dc060c778113"><div class="ttname"><a href="mem_8h.html#a44a136e3b70c36abb6f8dc060c778113">mem_init</a></div><div class="ttdeci">void mem_init(void)</div><div class="ttdef"><b>Definition:</b> <a href="mem_8c_source.html#l00382">mem.c:382</a></div></div>
<div class="ttc" id="agroup__compiler__abstraction_html_ga4c14294869aceba3ef9d4c0c302d0f33"><div class="ttname"><a href="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="arch_8h_source.html#l00126">arch.h:126</a></div></div>
<div class="ttc" id="araw_8h_html"><div class="ttname"><a href="raw_8h.html">raw.h</a></div></div>
<div class="ttc" id="acore_2init_8c_html_afa3b6d3e87614ea5ab1aa9e7ac00cda4"><div class="ttname"><a href="core_2init_8c.html#afa3b6d3e87614ea5ab1aa9e7ac00cda4">PACKED_STRUCT_TEST_EXPECTED_SIZE</a></div><div class="ttdeci">#define PACKED_STRUCT_TEST_EXPECTED_SIZE</div><div class="ttdef"><b>Definition:</b> <a href="core_2init_8c_source.html#l00075">init.c:75</a></div></div>
<div class="ttc" id="anetif_8h_html_a0f4a53e47c840904f824a2a1c0d4ebf4"><div class="ttname"><a href="netif_8h.html#a0f4a53e47c840904f824a2a1c0d4ebf4">netif_init</a></div><div class="ttdeci">void netif_init(void)</div><div class="ttdef"><b>Definition:</b> <a href="netif_8c_source.html#l00163">netif.c:163</a></div></div>
<div class="ttc" id="amemp_8h_html_a9693e5b1ac2c6b9c0e7870522d45efa2"><div class="ttname"><a href="memp_8h.html#a9693e5b1ac2c6b9c0e7870522d45efa2">memp_init</a></div><div class="ttdeci">void memp_init(void)</div><div class="ttdef"><b>Definition:</b> <a href="memp_8c_source.html#l00271">memp.c:271</a></div></div>
<div class="ttc" id="astats_8h_html"><div class="ttname"><a href="stats_8h.html">stats.h</a></div></div>
<div class="ttc" id="anetif_8h_html"><div class="ttname"><a href="netif_8h.html">netif.h</a></div></div>
<div class="ttc" id="amld6_8h_html"><div class="ttname"><a href="mld6_8h.html">mld6.h</a></div></div>
<div class="ttc" id="agroup__compiler__abstraction_html_ga4caecabca98b43919dd11be1c0d4cd8e"><div class="ttname"><a href="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="arch_8h_source.html#l00122">arch.h:122</a></div></div>
<div class="ttc" id="atcp__priv_8h_html"><div class="ttname"><a href="tcp__priv_8h.html">tcp_priv.h</a></div></div>
<div class="ttc" id="acc_8h_html_a73199061891adf1b912d20835c7d5e96"><div class="ttname"><a href="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="cc_8h_source.html#l00008">cc.h:8</a></div></div>
<div class="ttc" id="anet_2init_8h_html"><div class="ttname"><a href="net_2init_8h.html">init.h</a></div></div>
<div class="ttc" id="appp__impl_8h_html"><div class="ttname"><a href="ppp__impl_8h.html">ppp_impl.h</a></div></div>
<div class="ttc" id="astructpacked__struct__test_html"><div class="ttname"><a href="structpacked__struct__test.html">packed_struct_test</a></div><div class="ttdef"><b>Definition:</b> <a href="core_2init_8c_source.html#l00066">init.c:66</a></div></div>
<div class="ttc" id="agroup__compiler__abstraction_html_ga70624a5deb8b9199406372a7f3603ecf"><div class="ttname"><a href="group__compiler__abstraction.html#ga70624a5deb8b9199406372a7f3603ecf">LWIP_UNUSED_ARG</a></div><div class="ttdeci">#define LWIP_UNUSED_ARG(x)</div><div class="ttdef"><b>Definition:</b> <a href="arch_8h_source.html#l00315">arch.h:315</a></div></div>
<div class="ttc" id="aip_8h_html"><div class="ttname"><a href="ip_8h.html">ip.h</a></div></div>
<div class="ttc" id="acore_2init_8c_html_a0c1a18439524d2f4a5e51d25c0ca2ce9"><div class="ttname"><a href="core_2init_8c.html#a0c1a18439524d2f4a5e51d25c0ca2ce9">lwip_init</a></div><div class="ttdeci">void lwip_init(void)</div><div class="ttdef"><b>Definition:</b> <a href="core_2init_8c_source.html#l00333">init.c:333</a></div></div>
<div class="ttc" id="astats_8h_html_a832291112716a16838a0cc49595211b2"><div class="ttname"><a href="stats_8h.html#a832291112716a16838a0cc49595211b2">stats_init</a></div><div class="ttdeci">#define stats_init()</div><div class="ttdef"><b>Definition:</b> <a href="stats_8h_source.html#l00318">stats.h:318</a></div></div>
<div class="ttc" id="apbuf_8h_html_a0c9b6a35471ebe1628ffe74bbc67f0b4"><div class="ttname"><a href="pbuf_8h.html#a0c9b6a35471ebe1628ffe74bbc67f0b4">pbuf_init</a></div><div class="ttdeci">#define pbuf_init()</div><div class="ttdef"><b>Definition:</b> <a href="pbuf_8h_source.html#l00221">pbuf.h:221</a></div></div>
<div class="ttc" id="aetharp_8h_html"><div class="ttname"><a href="etharp_8h.html">etharp.h</a></div></div>
<div class="ttc" id="audp_8h_html"><div class="ttname"><a href="udp_8h.html">udp.h</a></div></div>
<div class="ttc" id="appp__opts_8h_html"><div class="ttname"><a href="ppp__opts_8h.html">ppp_opts.h</a></div></div>
<div class="ttc" id="asockets_8h_html"><div class="ttname"><a href="sockets_8h.html">sockets.h</a></div></div>
<div class="ttc" id="amemp_8h_html"><div class="ttname"><a href="memp_8h.html">memp.h</a></div></div>
<div class="ttc" id="astructpacked__struct__test_html_a3e24dcbac86147707ffe8afb7b2b1198"><div class="ttname"><a href="structpacked__struct__test.html#a3e24dcbac86147707ffe8afb7b2b1198">packed_struct_test::PACK_STRUCT_FLD_8</a></div><div class="ttdeci">PACK_STRUCT_FLD_8(u8_t dummy1)</div></div>
<div class="ttc" id="amem_8h_html"><div class="ttname"><a href="mem_8h.html">mem.h</a></div></div>
<div class="ttc" id="atimeouts_8h_html"><div class="ttname"><a href="timeouts_8h.html">timeouts.h</a></div></div>
<div class="ttc" id="adns_8h_html"><div class="ttname"><a href="dns_8h.html">dns.h</a></div></div>
<div class="ttc" id="aip6_8h_html"><div class="ttname"><a href="ip6_8h.html">ip6.h</a></div></div>
<div class="ttc" id="agroup__compiler__abstraction_html_gaa0dd3f76dd9a837feaac61fedc0dbe72"><div class="ttname"><a href="group__compiler__abstraction.html#gaa0dd3f76dd9a837feaac61fedc0dbe72">LWIP_CONST_CAST</a></div><div class="ttdeci">#define LWIP_CONST_CAST(target_type, val)</div><div class="ttdef"><b>Definition:</b> <a href="arch_8h_source.html#l00187">arch.h:187</a></div></div>
<div class="ttc" id="acc_8h_html_a465fef70f294e21cbf4ea51fc342f20e"><div class="ttname"><a href="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="cc_8h_source.html#l00009">cc.h:9</a></div></div>
<div class="ttc" id="aapi_8h_html"><div class="ttname"><a href="api_8h.html">api.h</a></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_e6bb53534ac0e427887cf7a94c0c004e.html">C:</a></li><li class="navelem"><a class="el" href="dir_d99d5d4662bf24521eef49da6a8cd34d.html">Dev</a></li><li class="navelem"><a class="el" href="dir_474a4b306371cf7e7f6fa12cb0b77df6.html">git</a></li><li class="navelem"><a class="el" href="dir_849109bbd106d461b128d63e5babcedf.html">UbixOS</a></li><li class="navelem"><a class="el" href="dir_6ec99f6d7d5182ba8913209ab70c9f18.html">sys</a></li><li class="navelem"><a class="el" href="dir_6ed706464e1919433e32bb89560817da.html">net</a></li><li class="navelem"><a class="el" href="dir_cd4906596c0f2eb6dae79633ab001247.html">core</a></li><li class="navelem"><a class="el" href="core_2init_8c.html">init.c</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>