⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 structip__frame.html

📁 Freescale mcu OpenTCP-1.0.4.doc.html.zip 文档
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>ip_frame struct Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.2.18 --><center><a class="qindex" href="main.html">Main Page</a> &nbsp; <a class="qindex" href="modules.html">Modules</a> &nbsp; <a class="qindex" href="annotated.html">Data Structures</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Data Fields</a> &nbsp; <a class="qindex" href="globals.html">Globals</a> &nbsp; <a class="qindex" href="pages.html">Related Pages</a> &nbsp; <a class="qindex" href="examples.html">Examples</a> &nbsp; </center><hr><h1>ip_frame Struct Reference</h1><hr><a name="_details"></a><h2>Detailed Description</h2>This structure is used for holding information about various fields of the IPv4 header. In addition to standard IP header, buf_index variable has been added to store the information about the buffer address in the Ethernet controller from where upper layer protocols ( such as TCP, UDP or some other) can start reading their data. This is initialized by invoking NETWORK_RECEIVED_INITIALIZE macro with  appropriate buf_index value.<p>For detailed explanation of the IPv4 header fields refer to RFC791. <p><p>Definition at line <a class="el" href="ip_8h-source.html#l00113">113</a> of file <a class="el" href="ip_8h-source.html">ip.h</a>.<table border=0 cellpadding=0 cellspacing=0><tr><td></td></tr><tr><td colspan=2><br><h2>Data Fields</h2></td></tr><tr><td nowrap align=right valign=top>UINT8&nbsp;</td><td valign=bottom><a class="el" href="structip__frame.html#m0">vihl</a></td></tr><tr><td nowrap align=right valign=top>UINT8&nbsp;</td><td valign=bottom><a class="el" href="structip__frame.html#m1">tos</a></td></tr><tr><td nowrap align=right valign=top>UINT16&nbsp;</td><td valign=bottom><a class="el" href="structip__frame.html#m2">tlen</a></td></tr><tr><td nowrap align=right valign=top>UINT16&nbsp;</td><td valign=bottom><a class="el" href="structip__frame.html#m3">id</a></td></tr><tr><td nowrap align=right valign=top>UINT16&nbsp;</td><td valign=bottom><a class="el" href="structip__frame.html#m4">frags</a></td></tr><tr><td nowrap align=right valign=top>UINT8&nbsp;</td><td valign=bottom><a class="el" href="structip__frame.html#m5">ttl</a></td></tr><tr><td nowrap align=right valign=top>UINT8&nbsp;</td><td valign=bottom><a class="el" href="structip__frame.html#m6">protocol</a></td></tr><tr><td nowrap align=right valign=top>UINT16&nbsp;</td><td valign=bottom><a class="el" href="structip__frame.html#m7">checksum</a></td></tr><tr><td nowrap align=right valign=top>UINT32&nbsp;</td><td valign=bottom><a class="el" href="structip__frame.html#m8">sip</a></td></tr><tr><td nowrap align=right valign=top>UINT32&nbsp;</td><td valign=bottom><a class="el" href="structip__frame.html#m9">dip</a></td></tr><tr><td nowrap align=right valign=top>UINT8&nbsp;</td><td valign=bottom><a class="el" href="structip__frame.html#m10">opt</a> [MAX_IP_OPTLEN+1]</td></tr><tr><td nowrap align=right valign=top>UINT16&nbsp;</td><td valign=bottom><a class="el" href="structip__frame.html#m11">buf_index</a></td></tr></table><hr><h2>Field Documentation</h2><a name="m0" doxytag="ip_frame::vihl"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> UINT8 ip_frame::vihl      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Version &amp; Header Length field <p>Definition at line <a class="el" href="ip_8h-source.html#l00115">115</a> of file <a class="el" href="ip_8h-source.html">ip.h</a>.<p>Referenced by <a class="el" href="ip_8c-source.html#l00474">ip_check_cs()</a>, <a class="el" href="ip_8c-source.html#l00417">ip_construct_cs()</a>, <a class="el" href="ip_8c-source.html#l00115">process_ip_in()</a>, and <a class="el" href="ip_8c-source.html#l00300">process_ip_out()</a>.    </td>  </tr></table><a name="m1" doxytag="ip_frame::tos"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> UINT8 ip_frame::tos      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Type Of Service <p>Definition at line <a class="el" href="ip_8h-source.html#l00116">116</a> of file <a class="el" href="ip_8h-source.html">ip.h</a>.<p>Referenced by <a class="el" href="ip_8c-source.html#l00474">ip_check_cs()</a>, <a class="el" href="ip_8c-source.html#l00417">ip_construct_cs()</a>, <a class="el" href="ip_8c-source.html#l00115">process_ip_in()</a>, and <a class="el" href="ip_8c-source.html#l00300">process_ip_out()</a>.    </td>  </tr></table><a name="m2" doxytag="ip_frame::tlen"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> UINT16 ip_frame::tlen      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Total Length <p>Definition at line <a class="el" href="ip_8h-source.html#l00117">117</a> of file <a class="el" href="ip_8h-source.html">ip.h</a>.<p>Referenced by <a class="el" href="ip_8c-source.html#l00474">ip_check_cs()</a>, <a class="el" href="ip_8c-source.html#l00417">ip_construct_cs()</a>, <a class="el" href="ip_8c-source.html#l00115">process_ip_in()</a>, and <a class="el" href="ip_8c-source.html#l00300">process_ip_out()</a>.    </td>  </tr></table><a name="m3" doxytag="ip_frame::id"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> UINT16 ip_frame::id      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>IP Identification number <p>Definition at line <a class="el" href="ip_8h-source.html#l00118">118</a> of file <a class="el" href="ip_8h-source.html">ip.h</a>.<p>Referenced by <a class="el" href="ip_8c-source.html#l00474">ip_check_cs()</a>, <a class="el" href="ip_8c-source.html#l00417">ip_construct_cs()</a>, <a class="el" href="ip_8c-source.html#l00115">process_ip_in()</a>, and <a class="el" href="ip_8c-source.html#l00300">process_ip_out()</a>.    </td>  </tr></table><a name="m4" doxytag="ip_frame::frags"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> UINT16 ip_frame::frags      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Flags &amp; Fragment offsett <p>Definition at line <a class="el" href="ip_8h-source.html#l00119">119</a> of file <a class="el" href="ip_8h-source.html">ip.h</a>.<p>Referenced by <a class="el" href="ip_8c-source.html#l00474">ip_check_cs()</a>, <a class="el" href="ip_8c-source.html#l00417">ip_construct_cs()</a>, <a class="el" href="ip_8c-source.html#l00115">process_ip_in()</a>, and <a class="el" href="ip_8c-source.html#l00300">process_ip_out()</a>.    </td>  </tr></table><a name="m5" doxytag="ip_frame::ttl"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> UINT8 ip_frame::ttl      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Time to live <p>Definition at line <a class="el" href="ip_8h-source.html#l00120">120</a> of file <a class="el" href="ip_8h-source.html">ip.h</a>.<p>Referenced by <a class="el" href="ip_8c-source.html#l00474">ip_check_cs()</a>, <a class="el" href="ip_8c-source.html#l00417">ip_construct_cs()</a>, <a class="el" href="ip_8c-source.html#l00115">process_ip_in()</a>, and <a class="el" href="ip_8c-source.html#l00300">process_ip_out()</a>.    </td>  </tr></table><a name="m6" doxytag="ip_frame::protocol"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> UINT8 ip_frame::protocol      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Protocol over IP <p>Definition at line <a class="el" href="ip_8h-source.html#l00121">121</a> of file <a class="el" href="ip_8h-source.html">ip.h</a>.<p>Referenced by <a class="el" href="ip_8c-source.html#l00474">ip_check_cs()</a>, <a class="el" href="ip_8c-source.html#l00417">ip_construct_cs()</a>, <a class="el" href="icmp_8c-source.html#l00097">process_icmp_in()</a>, <a class="el" href="ip_8c-source.html#l00115">process_ip_in()</a>, <a class="el" href="ip_8c-source.html#l00300">process_ip_out()</a>, <a class="el" href="tcp_8c-source.html#l01250">process_tcp_in()</a>, <a class="el" href="udp_8c-source.html#l00550">process_udp_in()</a>, and <a class="el" href="tcp_8c-source.html#l02567">tcp_check_cs()</a>.    </td>  </tr></table><a name="m7" doxytag="ip_frame::checksum"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> UINT16 ip_frame::checksum      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Header Checksum <p>Definition at line <a class="el" href="ip_8h-source.html#l00122">122</a> of file <a class="el" href="ip_8h-source.html">ip.h</a>.<p>Referenced by <a class="el" href="ip_8c-source.html#l00474">ip_check_cs()</a>, <a class="el" href="ip_8c-source.html#l00115">process_ip_in()</a>, and <a class="el" href="ip_8c-source.html#l00300">process_ip_out()</a>.    </td>  </tr></table><a name="m8" doxytag="ip_frame::sip"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> UINT32 ip_frame::sip      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Source IP address <p>Definition at line <a class="el" href="ip_8h-source.html#l00123">123</a> of file <a class="el" href="ip_8h-source.html">ip.h</a>.<p>Referenced by <a class="el" href="ip_8c-source.html#l00474">ip_check_cs()</a>, <a class="el" href="ip_8c-source.html#l00417">ip_construct_cs()</a>, <a class="el" href="icmp_8c-source.html#l00097">process_icmp_in()</a>, <a class="el" href="ip_8c-source.html#l00115">process_ip_in()</a>, <a class="el" href="ip_8c-source.html#l00300">process_ip_out()</a>, <a class="el" href="tcp_8c-source.html#l01250">process_tcp_in()</a>, <a class="el" href="udp_8c-source.html#l00550">process_udp_in()</a>, <a class="el" href="tcp_8c-source.html#l02567">tcp_check_cs()</a>, and <a class="el" href="tcp_8c-source.html#l02369">tcp_mapsocket()</a>.    </td>  </tr></table><a name="m9" doxytag="ip_frame::dip"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> UINT32 ip_frame::dip      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Destination IP address <p>Definition at line <a class="el" href="ip_8h-source.html#l00124">124</a> of file <a class="el" href="ip_8h-source.html">ip.h</a>.<p>Referenced by <a class="el" href="ip_8c-source.html#l00474">ip_check_cs()</a>, <a class="el" href="ip_8c-source.html#l00417">ip_construct_cs()</a>, <a class="el" href="icmp_8c-source.html#l00097">process_icmp_in()</a>, <a class="el" href="ip_8c-source.html#l00115">process_ip_in()</a>, <a class="el" href="ip_8c-source.html#l00300">process_ip_out()</a>, <a class="el" href="udp_8c-source.html#l00550">process_udp_in()</a>, and <a class="el" href="tcp_8c-source.html#l02567">tcp_check_cs()</a>.    </td>  </tr></table><a name="m10" doxytag="ip_frame::opt"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> UINT8 ip_frame::opt[MAX_IP_OPTLEN + 1]      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Option field <p>Definition at line <a class="el" href="ip_8h-source.html#l00125">125</a> of file <a class="el" href="ip_8h-source.html">ip.h</a>.<p>Referenced by <a class="el" href="ip_8c-source.html#l00474">ip_check_cs()</a>, <a class="el" href="ip_8c-source.html#l00417">ip_construct_cs()</a>, and <a class="el" href="ip_8c-source.html#l00115">process_ip_in()</a>.    </td>  </tr></table><a name="m11" doxytag="ip_frame::buf_index"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> UINT16 ip_frame::buf_index      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Next offset from the start of network buffer <p>Definition at line <a class="el" href="ip_8h-source.html#l00126">126</a> of file <a class="el" href="ip_8h-source.html">ip.h</a>.<p>Referenced by <a class="el" href="icmp_8c-source.html#l00097">process_icmp_in()</a>, <a class="el" href="ip_8c-source.html#l00115">process_ip_in()</a>, <a class="el" href="tcp_8c-source.html#l01250">process_tcp_in()</a>, and <a class="el" href="udp_8c-source.html#l00550">process_udp_in()</a>.    </td>  </tr></table><hr>The documentation for this struct was generated from the following file:<ul><li>/opentcp/include/inet/<a class="el" href="ip_8h-source.html">ip.h</a></ul><hr><address style="align: right;"><small>Generated on Sun Aug 3 20:33:01 2003 for OpenTCP by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.18 </small></address></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -