📄 structethernet__frame.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>ethernet_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> <a class="qindex" href="modules.html">Modules</a> <a class="qindex" href="annotated.html">Data Structures</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Data Fields</a> <a class="qindex" href="globals.html">Globals</a> <a class="qindex" href="pages.html">Related Pages</a> <a class="qindex" href="examples.html">Examples</a> </center><hr><h1>ethernet_frame Struct Reference</h1><hr><a name="_details"></a><h2>Detailed Description</h2>This structure holds information about the Ethernet packets. In addition to standard Ethernet header (destination HW address, source HW address, frame size and protocol), buff_index is added. This variable is used by higher level protocols (IP, ARP or other) to initialize reading of the Ethernet packet by invoking NETWORK_RECEIVE_INITIALIZE macro to initialize reading of the data carried in the Ethernet packet ( not the Ethernet header itself!). <p><p>Definition at line <a class="el" href="ethernet_8h-source.html#l00142">142</a> of file <a class="el" href="ethernet_8h-source.html">ethernet.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 </td><td valign=bottom><a class="el" href="structethernet__frame.html#m0">destination</a> [ETH_ADDRESS_LEN]</td></tr><tr><td nowrap align=right valign=top>UINT8 </td><td valign=bottom><a class="el" href="structethernet__frame.html#m1">source</a> [ETH_ADDRESS_LEN]</td></tr><tr><td nowrap align=right valign=top>UINT16 </td><td valign=bottom><a class="el" href="structethernet__frame.html#m2">frame_size</a></td></tr><tr><td nowrap align=right valign=top>UINT16 </td><td valign=bottom><a class="el" href="structethernet__frame.html#m3">protocol</a></td></tr><tr><td nowrap align=right valign=top>UINT16 </td><td valign=bottom><a class="el" href="structethernet__frame.html#m4">buf_index</a></td></tr></table><hr><h2>Field Documentation</h2><a name="m0" doxytag="ethernet_frame::destination"></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 ethernet_frame::destination[ETH_ADDRESS_LEN] </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>destination hardware address as read from the received ethernet packet <p>Definition at line <a class="el" href="ethernet_8h-source.html#l00144">144</a> of file <a class="el" href="ethernet_8h-source.html">ethernet.h</a>.<p>Referenced by <a class="el" href="ethernet_8c-source.html#l00482">NE2000ReceiveFrame()</a>, <a class="el" href="ethernet_8c-source.html#l00608">NE2000WriteEthernetHeader()</a>, and <a class="el" href="ip_8c-source.html#l00115">process_ip_in()</a>. </td> </tr></table><a name="m1" doxytag="ethernet_frame::source"></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 ethernet_frame::source[ETH_ADDRESS_LEN] </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>source hardware address as read from the received ethernet packet <p>Definition at line <a class="el" href="ethernet_8h-source.html#l00148">148</a> of file <a class="el" href="ethernet_8h-source.html">ethernet.h</a>.<p>Referenced by <a class="el" href="ethernet_8c-source.html#l00482">NE2000ReceiveFrame()</a>, <a class="el" href="ethernet_8c-source.html#l00608">NE2000WriteEthernetHeader()</a>, and <a class="el" href="ip_8c-source.html#l00115">process_ip_in()</a>. </td> </tr></table><a name="m2" doxytag="ethernet_frame::frame_size"></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 ethernet_frame::frame_size </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>size of the received Ethernet packet <p>Definition at line <a class="el" href="ethernet_8h-source.html#l00152">152</a> of file <a class="el" href="ethernet_8h-source.html">ethernet.h</a>.<p>Referenced by <a class="el" href="ethernet_8c-source.html#l00482">NE2000ReceiveFrame()</a>, <a class="el" href="arp_8c-source.html#l00116">process_arp()</a>, and <a class="el" href="ip_8c-source.html#l00115">process_ip_in()</a>. </td> </tr></table><a name="m3" doxytag="ethernet_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"> UINT16 ethernet_frame::protocol </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>protocol field of the Ethernet header. For now we work with: <ul><li> PROTOCOL_IP - 0x0800 <li> PROTOCOL_ARP - 0x0806 </ul><p>Definition at line <a class="el" href="ethernet_8h-source.html#l00155">155</a> of file <a class="el" href="ethernet_8h-source.html">ethernet.h</a>.<p>Referenced by <a class="el" href="ethernet_8c-source.html#l00482">NE2000ReceiveFrame()</a>, <a class="el" href="ethernet_8c-source.html#l00608">NE2000WriteEthernetHeader()</a>, <a class="el" href="arp_8c-source.html#l00116">process_arp()</a>, and <a class="el" href="ip_8c-source.html#l00115">process_ip_in()</a>. </td> </tr></table><a name="m4" doxytag="ethernet_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 ethernet_frame::buf_index </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Address in the Ethernet controllers buffer where data can be read from <p>Definition at line <a class="el" href="ethernet_8h-source.html#l00161">161</a> of file <a class="el" href="ethernet_8h-source.html">ethernet.h</a>.<p>Referenced by <a class="el" href="ethernet_8c-source.html#l00482">NE2000ReceiveFrame()</a>, <a class="el" href="arp_8c-source.html#l00116">process_arp()</a>, and <a class="el" href="ip_8c-source.html#l00115">process_ip_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="ethernet_8h-source.html">ethernet.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 + -