Newer
Older
UbixOS / doc / html / d4 / d19 / prot_2ip_8h.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/ip.h File Reference</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('d4/d19/prot_2ip_8h.html','../../');});
/* @license-end */
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#define-members">Macros</a>  </div>
  <div class="headertitle">
<div class="title">ip.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="../../d2/d2d/arch_8h_source.html">net/arch.h</a>&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for ip.h:</div>
<div class="dyncontent">
<div class="center"><img src="../../d7/de6/prot_2ip_8h__incl.png" border="0" usemap="#include_2net_2prot_2ip_8h" alt=""/></div>
<map name="include_2net_2prot_2ip_8h" id="include_2net_2prot_2ip_8h">
<area shape="rect" title=" " alt="" coords="325,5,461,32"/>
<area shape="rect" href="../../d2/d2d/arch_8h.html" title=" " alt="" coords="353,80,433,107"/>
<area shape="rect" href="../../d0/d27/include_2sys_2types_8h.html" title=" " alt="" coords="282,304,373,331"/>
<area shape="rect" href="../../dc/df0/cc_8h.html" title=" " alt="" coords="170,155,269,181"/>
<area shape="rect" href="../../da/d28/kprintf_8h.html" title=" " alt="" coords="310,155,395,181"/>
<area shape="rect" href="../../d3/d24/kpanic_8h.html" title=" " alt="" coords="471,155,584,181"/>
<area shape="rect" href="../../d0/d6f/__types_8h.html" title=" " alt="" coords="279,528,376,555"/>
<area shape="rect" href="../../d9/dab/select_8h.html" title=" " alt="" coords="281,379,374,405"/>
<area shape="rect" href="../../d6/d92/cdefs_8h.html" title=" " alt="" coords="453,453,543,480"/>
<area shape="rect" href="../../d6/d30/__timespec_8h.html" title=" " alt="" coords="5,453,124,480"/>
<area shape="rect" href="../../df/dc5/__timeval_8h.html" title=" " alt="" coords="148,453,253,480"/>
<area shape="rect" href="../../d6/da4/__sigset_8h.html" title=" " alt="" coords="277,453,377,480"/>
<area shape="rect" href="../../de/df7/time_8h.html" title=" " alt="" coords="151,229,251,256"/>
<area shape="rect" href="../../dc/dac/io_8h.html" title=" " alt="" coords="167,304,235,331"/>
<area shape="rect" href="../../d1/d2d/stdarg_8h.html" title=" " alt="" coords="326,229,395,256"/>
</map>
</div>
</div><div class="textblock"><div class="dynheader">
This graph shows which files directly or indirectly include this file:</div>
<div class="dyncontent">
<div class="center"><img src="../../d2/d48/prot_2ip_8h__dep__incl.png" border="0" usemap="#include_2net_2prot_2ip_8hdep" alt=""/></div>
<map name="include_2net_2prot_2ip_8hdep" id="include_2net_2prot_2ip_8hdep">
<area shape="rect" title=" " alt="" coords="349,5,485,32"/>
<area shape="rect" href="../../da/d2f/ip_8h.html" title=" " alt="" coords="362,80,473,107"/>
<area shape="rect" href="../../da/dc6/ip4__frag_8h.html" title=" " alt="" coords="69,155,214,181"/>
<area shape="rect" href="../../d2/d55/tcpip_8c.html" title=" " alt="" coords="239,155,343,181"/>
<area shape="rect" href="../../db/d87/core_2init_8c.html" title=" " alt="" coords="367,155,468,181"/>
<area shape="rect" href="../../d9/deb/ip6__frag_8c.html" title=" " alt="" coords="492,155,647,181"/>
<area shape="rect" href="../../df/d02/netif_8c.html" title=" " alt="" coords="671,155,779,181"/>
<area shape="rect" href="../../d1/d70/memp_8c.html" title=" " alt="" coords="5,229,125,256"/>
<area shape="rect" href="../../d2/d2b/timeouts_8c.html" title=" " alt="" coords="150,229,285,256"/>
</map>
</div>
</div>
<p><a href="../../d4/d19/prot_2ip_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:afc29766fb0707c63b64568c5fa44a374"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/d19/prot_2ip_8h.html#afc29766fb0707c63b64568c5fa44a374">IP_HDR_GET_VERSION</a>(ptr)&#160;&#160;&#160;((*(<a class="el" href="../../de/d8c/group__compiler__abstraction.html#ga4caecabca98b43919dd11be1c0d4cd8e">u8_t</a>*)(ptr)) &gt;&gt; 4)</td></tr>
<tr class="separator:afc29766fb0707c63b64568c5fa44a374"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aacaea7b8c4c8a5229c02b653766b4793"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/d19/prot_2ip_8h.html#aacaea7b8c4c8a5229c02b653766b4793">IP_PROTO_ICMP</a>&#160;&#160;&#160;1</td></tr>
<tr class="separator:aacaea7b8c4c8a5229c02b653766b4793"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4f8609139fce15ace0c6d117021e29a4"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/d19/prot_2ip_8h.html#a4f8609139fce15ace0c6d117021e29a4">IP_PROTO_IGMP</a>&#160;&#160;&#160;2</td></tr>
<tr class="separator:a4f8609139fce15ace0c6d117021e29a4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a634284ee3a136d6ad61bc5d917ebb82f"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/d19/prot_2ip_8h.html#a634284ee3a136d6ad61bc5d917ebb82f">IP_PROTO_TCP</a>&#160;&#160;&#160;6</td></tr>
<tr class="separator:a634284ee3a136d6ad61bc5d917ebb82f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a76212e7ef71a99646040d2e454388bed"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/d19/prot_2ip_8h.html#a76212e7ef71a99646040d2e454388bed">IP_PROTO_UDP</a>&#160;&#160;&#160;17</td></tr>
<tr class="separator:a76212e7ef71a99646040d2e454388bed"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3ef2b8a1cb4f7acee3142337438dfd0d"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/d19/prot_2ip_8h.html#a3ef2b8a1cb4f7acee3142337438dfd0d">IP_PROTO_UDPLITE</a>&#160;&#160;&#160;136</td></tr>
<tr class="separator:a3ef2b8a1cb4f7acee3142337438dfd0d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>IP protocol definitions </p>

<p class="definition">Definition in file <a class="el" href="../../d4/d19/prot_2ip_8h_source.html">ip.h</a>.</p>
</div><h2 class="groupheader">Macro Definition Documentation</h2>
<a id="afc29766fb0707c63b64568c5fa44a374"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afc29766fb0707c63b64568c5fa44a374">&#9670;&nbsp;</a></span>IP_HDR_GET_VERSION</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define IP_HDR_GET_VERSION</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">ptr</td><td>)</td>
          <td>&#160;&#160;&#160;((*(<a class="el" href="../../de/d8c/group__compiler__abstraction.html#ga4caecabca98b43919dd11be1c0d4cd8e">u8_t</a>*)(ptr)) &gt;&gt; 4)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>This operates on a void* by loading the first byte </p>

<p class="definition">Definition at line <a class="el" href="../../d4/d19/prot_2ip_8h_source.html#l00049">49</a> of file <a class="el" href="../../d4/d19/prot_2ip_8h_source.html">ip.h</a>.</p>

</div>
</div>
<a id="aacaea7b8c4c8a5229c02b653766b4793"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aacaea7b8c4c8a5229c02b653766b4793">&#9670;&nbsp;</a></span>IP_PROTO_ICMP</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define IP_PROTO_ICMP&#160;&#160;&#160;1</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="../../d4/d19/prot_2ip_8h_source.html#l00042">42</a> of file <a class="el" href="../../d4/d19/prot_2ip_8h_source.html">ip.h</a>.</p>

</div>
</div>
<a id="a4f8609139fce15ace0c6d117021e29a4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4f8609139fce15ace0c6d117021e29a4">&#9670;&nbsp;</a></span>IP_PROTO_IGMP</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define IP_PROTO_IGMP&#160;&#160;&#160;2</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="../../d4/d19/prot_2ip_8h_source.html#l00043">43</a> of file <a class="el" href="../../d4/d19/prot_2ip_8h_source.html">ip.h</a>.</p>

</div>
</div>
<a id="a634284ee3a136d6ad61bc5d917ebb82f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a634284ee3a136d6ad61bc5d917ebb82f">&#9670;&nbsp;</a></span>IP_PROTO_TCP</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define IP_PROTO_TCP&#160;&#160;&#160;6</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="../../d4/d19/prot_2ip_8h_source.html#l00046">46</a> of file <a class="el" href="../../d4/d19/prot_2ip_8h_source.html">ip.h</a>.</p>

</div>
</div>
<a id="a76212e7ef71a99646040d2e454388bed"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a76212e7ef71a99646040d2e454388bed">&#9670;&nbsp;</a></span>IP_PROTO_UDP</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define IP_PROTO_UDP&#160;&#160;&#160;17</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="../../d4/d19/prot_2ip_8h_source.html#l00044">44</a> of file <a class="el" href="../../d4/d19/prot_2ip_8h_source.html">ip.h</a>.</p>

</div>
</div>
<a id="a3ef2b8a1cb4f7acee3142337438dfd0d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3ef2b8a1cb4f7acee3142337438dfd0d">&#9670;&nbsp;</a></span>IP_PROTO_UDPLITE</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define IP_PROTO_UDPLITE&#160;&#160;&#160;136</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="../../d4/d19/prot_2ip_8h_source.html#l00045">45</a> of file <a class="el" href="../../d4/d19/prot_2ip_8h_source.html">ip.h</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- 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="../../d4/d19/prot_2ip_8h.html">ip.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>