<!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/ethernet.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&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  <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&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&dn=gpl-2.0.txt GPL-v2 */ $(document).ready(function(){initNavTree('df/d44/prot_2ethernet_8h.html','../../');}); /* @license-end */ </script> <div id="doc-content"> <div class="header"> <div class="summary"> <a href="#nested-classes">Data Structures</a> | <a href="#define-members">Macros</a> | <a href="#enum-members">Enumerations</a> | <a href="#var-members">Variables</a> </div> <div class="headertitle"> <div class="title">ethernet.h File Reference</div> </div> </div><!--header--> <div class="contents"> <div class="textblock"><code>#include "<a class="el" href="../../d2/d2d/arch_8h_source.html">net/arch.h</a>"</code><br /> </div><div class="textblock"><div class="dynheader"> Include dependency graph for ethernet.h:</div> <div class="dyncontent"> <div class="center"><img src="../../d0/d8a/prot_2ethernet_8h__incl.png" border="0" usemap="#include_2net_2prot_2ethernet_8h" alt=""/></div> <map name="include_2net_2prot_2ethernet_8h" id="include_2net_2prot_2ethernet_8h"> <area shape="rect" title=" " alt="" coords="306,5,479,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="../../d8/da0/prot_2ethernet_8h__dep__incl.png" border="0" usemap="#include_2net_2prot_2ethernet_8hdep" alt=""/></div> <map name="include_2net_2prot_2ethernet_8hdep" id="include_2net_2prot_2ethernet_8hdep"> <area shape="rect" title=" " alt="" coords="111,5,285,32"/> <area shape="rect" href="../../dd/d71/prot_2etharp_8h.html" title=" " alt="" coords="26,80,189,107"/> <area shape="rect" href="../../d9/d81/f_2ethernet_8h.html" title=" " alt="" coords="213,80,367,107"/> <area shape="rect" href="../../df/d7e/f_2etharp_8h.html" title=" " alt="" coords="5,155,148,181"/> <area shape="rect" href="../../d2/d55/tcpip_8c.html" title=" " alt="" coords="173,155,277,181"/> <area shape="rect" href="../../df/d02/netif_8c.html" title=" " alt="" coords="301,155,409,181"/> <area shape="rect" href="../../d6/d49/net_2init_8c.html" title=" " alt="" coords="433,155,528,181"/> </map> </div> </div> <p><a href="../../df/d44/prot_2ethernet_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="nested-classes"></a> Data Structures</h2></td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/dde/structeth__addr.html">eth_addr</a></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/dcf/structeth__hdr.html">eth_hdr</a></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/dd4/structeth__vlan__hdr.html">eth_vlan_hdr</a></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a> Macros</h2></td></tr> <tr class="memitem:aa19e3e4c174d49c6062f463dfa68bbbc"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d44/prot_2ethernet_8h.html#aa19e3e4c174d49c6062f463dfa68bbbc">eth_addr_cmp</a>(addr1, addr2)   (<a class="el" href="../../da/d66/string_8h.html#a3ecfabf29de8f914413abc2da01f5ca5">memcmp</a>((addr1)->addr, (addr2)->addr, <a class="el" href="../../df/d44/prot_2ethernet_8h.html#ac9426049770b40fcd9556ffbd7e56907">ETH_HWADDR_LEN</a>) == 0)</td></tr> <tr class="separator:aa19e3e4c174d49c6062f463dfa68bbbc"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ac9426049770b40fcd9556ffbd7e56907"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d44/prot_2ethernet_8h.html#ac9426049770b40fcd9556ffbd7e56907">ETH_HWADDR_LEN</a>   6</td></tr> <tr class="separator:ac9426049770b40fcd9556ffbd7e56907"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a10cbd9cd91e7e0ebed3a1159e385c037"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d44/prot_2ethernet_8h.html#a10cbd9cd91e7e0ebed3a1159e385c037">ETHADDR16_COPY</a>(dst, src)   <a class="el" href="../../dc/dba/opt_8h.html#a8c6e3c1e4f74acb16376188dbf8909ec">SMEMCPY</a>(dst, src, <a class="el" href="../../df/d44/prot_2ethernet_8h.html#ac9426049770b40fcd9556ffbd7e56907">ETH_HWADDR_LEN</a>)</td></tr> <tr class="separator:a10cbd9cd91e7e0ebed3a1159e385c037"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a0622da8fb6eb72cd4cd7c3ea4f5a5b79"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d44/prot_2ethernet_8h.html#a0622da8fb6eb72cd4cd7c3ea4f5a5b79">ETHADDR32_COPY</a>(dst, src)   <a class="el" href="../../dc/dba/opt_8h.html#a8c6e3c1e4f74acb16376188dbf8909ec">SMEMCPY</a>(dst, src, <a class="el" href="../../df/d44/prot_2ethernet_8h.html#ac9426049770b40fcd9556ffbd7e56907">ETH_HWADDR_LEN</a>)</td></tr> <tr class="separator:a0622da8fb6eb72cd4cd7c3ea4f5a5b79"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:afaf6cbccf9477c3505660e3a17860e07"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d44/prot_2ethernet_8h.html#afaf6cbccf9477c3505660e3a17860e07">LL_IP4_MULTICAST_ADDR_0</a>   0x01</td></tr> <tr class="separator:afaf6cbccf9477c3505660e3a17860e07"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ac08b2a99f6ff9cbafaa1cb5a6405d225"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d44/prot_2ethernet_8h.html#ac08b2a99f6ff9cbafaa1cb5a6405d225">LL_IP4_MULTICAST_ADDR_1</a>   0x00</td></tr> <tr class="separator:ac08b2a99f6ff9cbafaa1cb5a6405d225"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a98285b6f76c2eb6b6c738da62176bce0"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d44/prot_2ethernet_8h.html#a98285b6f76c2eb6b6c738da62176bce0">LL_IP4_MULTICAST_ADDR_2</a>   0x5e</td></tr> <tr class="separator:a98285b6f76c2eb6b6c738da62176bce0"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a8ebe93c6ad2d743e6c952539257679b6"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d44/prot_2ethernet_8h.html#a8ebe93c6ad2d743e6c952539257679b6">LL_IP6_MULTICAST_ADDR_0</a>   0x33</td></tr> <tr class="separator:a8ebe93c6ad2d743e6c952539257679b6"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:acf77751aed309653aaa33032732dd243"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d44/prot_2ethernet_8h.html#acf77751aed309653aaa33032732dd243">LL_IP6_MULTICAST_ADDR_1</a>   0x33</td></tr> <tr class="separator:acf77751aed309653aaa33032732dd243"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a85d254d78726c038270fe87905845e75"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d44/prot_2ethernet_8h.html#a85d254d78726c038270fe87905845e75">SIZEOF_ETH_HDR</a>   (14 + <a class="el" href="../../dc/d98/group__lwip__opts__arp.html#gad7fa3b356ca7e603e848b069c4cc6276">ETH_PAD_SIZE</a>)</td></tr> <tr class="separator:a85d254d78726c038270fe87905845e75"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a2443b91084b01e4f22423d74d3ae19fe"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d44/prot_2ethernet_8h.html#a2443b91084b01e4f22423d74d3ae19fe">SIZEOF_VLAN_HDR</a>   4</td></tr> <tr class="separator:a2443b91084b01e4f22423d74d3ae19fe"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aa36e5e552e17cea1828f0a6792eb29d4"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d44/prot_2ethernet_8h.html#aa36e5e552e17cea1828f0a6792eb29d4">VLAN_ID</a>(vlan_hdr)   (<a class="el" href="../../d2/d6e/def_8c.html#ad637280639de4066392e6b5614fa3e56">lwip_htons</a>((vlan_hdr)->prio_vid) & 0xFFF)</td></tr> <tr class="separator:aa36e5e552e17cea1828f0a6792eb29d4"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a> Enumerations</h2></td></tr> <tr class="memitem:ga4f8559808037803168499a3803900339"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d4e/group__ethernet.html#ga4f8559808037803168499a3803900339">eth_type</a> { <br />   <a class="el" href="../../de/d4e/group__ethernet.html#gga4f8559808037803168499a3803900339ac95756b20fde70b868ef4185dd221c79">ETHTYPE_IP</a> = 0x0800U, <a class="el" href="../../de/d4e/group__ethernet.html#gga4f8559808037803168499a3803900339a41217db03576ea59c44b28b248c39be5">ETHTYPE_ARP</a> = 0x0806U, <a class="el" href="../../de/d4e/group__ethernet.html#gga4f8559808037803168499a3803900339a530a30feb9b87fd993da2bf83776cf9b">ETHTYPE_WOL</a> = 0x0842U, <a class="el" href="../../de/d4e/group__ethernet.html#gga4f8559808037803168499a3803900339a14292184cb41b279249319896d0e2b1f">ETHTYPE_RARP</a> = 0x8035U, <br />   <a class="el" href="../../de/d4e/group__ethernet.html#gga4f8559808037803168499a3803900339ad8f84826d52d92ac24a477d1f03e7903">ETHTYPE_VLAN</a> = 0x8100U, <a class="el" href="../../de/d4e/group__ethernet.html#gga4f8559808037803168499a3803900339aab26004eed559217be5dd466a79b1383">ETHTYPE_IPV6</a> = 0x86DDU, <a class="el" href="../../de/d4e/group__ethernet.html#gga4f8559808037803168499a3803900339a58c6f40d7cc3edb9455762938f3f6569">ETHTYPE_PPPOEDISC</a> = 0x8863U, <a class="el" href="../../de/d4e/group__ethernet.html#gga4f8559808037803168499a3803900339a8c0e8f68b90134eb4f1f17d3d2eb6f8c">ETHTYPE_PPPOE</a> = 0x8864U, <br />   <a class="el" href="../../de/d4e/group__ethernet.html#gga4f8559808037803168499a3803900339a2511e8a31961bd742363b11b274b9dd1">ETHTYPE_JUMBO</a> = 0x8870U, <a class="el" href="../../de/d4e/group__ethernet.html#gga4f8559808037803168499a3803900339a889eb8f716238d16ee3408f16a5cf19d">ETHTYPE_PROFINET</a> = 0x8892U, <a class="el" href="../../de/d4e/group__ethernet.html#gga4f8559808037803168499a3803900339a5085a5fd5f9c9506124e93ea43ad2d7c">ETHTYPE_ETHERCAT</a> = 0x88A4U, <a class="el" href="../../de/d4e/group__ethernet.html#gga4f8559808037803168499a3803900339a02eab0dd87f222a2d555ca38b1b8afcc">ETHTYPE_LLDP</a> = 0x88CCU, <br />   <a class="el" href="../../de/d4e/group__ethernet.html#gga4f8559808037803168499a3803900339ab93419f8edf5692e91629ab92fce8a14">ETHTYPE_SERCOS</a> = 0x88CDU, <a class="el" href="../../de/d4e/group__ethernet.html#gga4f8559808037803168499a3803900339ad36caec44d8db59ff433a8bd3e92ad3e">ETHTYPE_MRP</a> = 0x88E3U, <a class="el" href="../../de/d4e/group__ethernet.html#gga4f8559808037803168499a3803900339aa3e9e834eef932d073028e28eb8793dc">ETHTYPE_PTP</a> = 0x88F7U, <a class="el" href="../../de/d4e/group__ethernet.html#gga4f8559808037803168499a3803900339a39a18006412cbb57536535bd9d378394">ETHTYPE_QINQ</a> = 0x9100U <br /> }</td></tr> <tr class="separator:ga4f8559808037803168499a3803900339"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a> Variables</h2></td></tr> <tr class="memitem:aafd4aa713559fd4dfdeaa60f9c7b6c2d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../de/d8c/group__compiler__abstraction.html#ga73199061891adf1b912d20835c7d5e96">PACK_STRUCT_BEGIN</a> struct <a class="el" href="../../d2/dde/structeth__addr.html">eth_addr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d44/prot_2ethernet_8h.html#aafd4aa713559fd4dfdeaa60f9c7b6c2d">PACK_STRUCT_STRUCT</a></td></tr> <tr class="separator:aafd4aa713559fd4dfdeaa60f9c7b6c2d"><td class="memSeparator" colspan="2"> </td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"><p>Ethernet protocol definitions </p> <p class="definition">Definition in file <a class="el" href="../../df/d44/prot_2ethernet_8h_source.html">ethernet.h</a>.</p> </div><h2 class="groupheader">Macro Definition Documentation</h2> <a id="aa19e3e4c174d49c6062f463dfa68bbbc"></a> <h2 class="memtitle"><span class="permalink"><a href="#aa19e3e4c174d49c6062f463dfa68bbbc">◆ </a></span>eth_addr_cmp</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define eth_addr_cmp</td> <td>(</td> <td class="paramtype"> </td> <td class="paramname">addr1, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"> </td> <td class="paramname">addr2 </td> </tr> <tr> <td></td> <td>)</td> <td></td><td>   (<a class="el" href="../../da/d66/string_8h.html#a3ecfabf29de8f914413abc2da01f5ca5">memcmp</a>((addr1)->addr, (addr2)->addr, <a class="el" href="../../df/d44/prot_2ethernet_8h.html#ac9426049770b40fcd9556ffbd7e56907">ETH_HWADDR_LEN</a>) == 0)</td> </tr> </table> </div><div class="memdoc"> <p class="definition">Definition at line <a class="el" href="../../df/d44/prot_2ethernet_8h_source.html#l00164">164</a> of file <a class="el" href="../../df/d44/prot_2ethernet_8h_source.html">ethernet.h</a>.</p> </div> </div> <a id="ac9426049770b40fcd9556ffbd7e56907"></a> <h2 class="memtitle"><span class="permalink"><a href="#ac9426049770b40fcd9556ffbd7e56907">◆ </a></span>ETH_HWADDR_LEN</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define ETH_HWADDR_LEN   6</td> </tr> </table> </div><div class="memdoc"> <p class="definition">Definition at line <a class="el" href="../../df/d44/prot_2ethernet_8h_source.html#l00050">50</a> of file <a class="el" href="../../df/d44/prot_2ethernet_8h_source.html">ethernet.h</a>.</p> </div> </div> <a id="a10cbd9cd91e7e0ebed3a1159e385c037"></a> <h2 class="memtitle"><span class="permalink"><a href="#a10cbd9cd91e7e0ebed3a1159e385c037">◆ </a></span>ETHADDR16_COPY</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define ETHADDR16_COPY</td> <td>(</td> <td class="paramtype"> </td> <td class="paramname">dst, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"> </td> <td class="paramname">src </td> </tr> <tr> <td></td> <td>)</td> <td></td><td>   <a class="el" href="../../dc/dba/opt_8h.html#a8c6e3c1e4f74acb16376188dbf8909ec">SMEMCPY</a>(dst, src, <a class="el" href="../../df/d44/prot_2ethernet_8h.html#ac9426049770b40fcd9556ffbd7e56907">ETH_HWADDR_LEN</a>)</td> </tr> </table> </div><div class="memdoc"> <p>MEMCPY-like macro to copy to/from struct <a class="el" href="../../d2/dde/structeth__addr.html">eth_addr</a>'s that are no local variables and known to be 16-bit aligned within the protocol header. </p> <p class="definition">Definition at line <a class="el" href="../../df/d44/prot_2ethernet_8h_source.html#l00161">161</a> of file <a class="el" href="../../df/d44/prot_2ethernet_8h_source.html">ethernet.h</a>.</p> </div> </div> <a id="a0622da8fb6eb72cd4cd7c3ea4f5a5b79"></a> <h2 class="memtitle"><span class="permalink"><a href="#a0622da8fb6eb72cd4cd7c3ea4f5a5b79">◆ </a></span>ETHADDR32_COPY</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define ETHADDR32_COPY</td> <td>(</td> <td class="paramtype"> </td> <td class="paramname">dst, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"> </td> <td class="paramname">src </td> </tr> <tr> <td></td> <td>)</td> <td></td><td>   <a class="el" href="../../dc/dba/opt_8h.html#a8c6e3c1e4f74acb16376188dbf8909ec">SMEMCPY</a>(dst, src, <a class="el" href="../../df/d44/prot_2ethernet_8h.html#ac9426049770b40fcd9556ffbd7e56907">ETH_HWADDR_LEN</a>)</td> </tr> </table> </div><div class="memdoc"> <p>MEMCPY-like macro to copy to/from struct <a class="el" href="../../d2/dde/structeth__addr.html">eth_addr</a>'s that are local variables or known to be 32-bit aligned within the protocol header. </p> <p class="definition">Definition at line <a class="el" href="../../df/d44/prot_2ethernet_8h_source.html#l00155">155</a> of file <a class="el" href="../../df/d44/prot_2ethernet_8h_source.html">ethernet.h</a>.</p> </div> </div> <a id="afaf6cbccf9477c3505660e3a17860e07"></a> <h2 class="memtitle"><span class="permalink"><a href="#afaf6cbccf9477c3505660e3a17860e07">◆ </a></span>LL_IP4_MULTICAST_ADDR_0</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define LL_IP4_MULTICAST_ADDR_0   0x01</td> </tr> </table> </div><div class="memdoc"> <p>The 24-bit IANA IPv4-multicast OUI is 01-00-5e: </p> <p class="definition">Definition at line <a class="el" href="../../df/d44/prot_2ethernet_8h_source.html#l00144">144</a> of file <a class="el" href="../../df/d44/prot_2ethernet_8h_source.html">ethernet.h</a>.</p> </div> </div> <a id="ac08b2a99f6ff9cbafaa1cb5a6405d225"></a> <h2 class="memtitle"><span class="permalink"><a href="#ac08b2a99f6ff9cbafaa1cb5a6405d225">◆ </a></span>LL_IP4_MULTICAST_ADDR_1</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define LL_IP4_MULTICAST_ADDR_1   0x00</td> </tr> </table> </div><div class="memdoc"> <p class="definition">Definition at line <a class="el" href="../../df/d44/prot_2ethernet_8h_source.html#l00145">145</a> of file <a class="el" href="../../df/d44/prot_2ethernet_8h_source.html">ethernet.h</a>.</p> </div> </div> <a id="a98285b6f76c2eb6b6c738da62176bce0"></a> <h2 class="memtitle"><span class="permalink"><a href="#a98285b6f76c2eb6b6c738da62176bce0">◆ </a></span>LL_IP4_MULTICAST_ADDR_2</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define LL_IP4_MULTICAST_ADDR_2   0x5e</td> </tr> </table> </div><div class="memdoc"> <p class="definition">Definition at line <a class="el" href="../../df/d44/prot_2ethernet_8h_source.html#l00146">146</a> of file <a class="el" href="../../df/d44/prot_2ethernet_8h_source.html">ethernet.h</a>.</p> </div> </div> <a id="a8ebe93c6ad2d743e6c952539257679b6"></a> <h2 class="memtitle"><span class="permalink"><a href="#a8ebe93c6ad2d743e6c952539257679b6">◆ </a></span>LL_IP6_MULTICAST_ADDR_0</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define LL_IP6_MULTICAST_ADDR_0   0x33</td> </tr> </table> </div><div class="memdoc"> <p>IPv6 multicast uses this prefix </p> <p class="definition">Definition at line <a class="el" href="../../df/d44/prot_2ethernet_8h_source.html#l00149">149</a> of file <a class="el" href="../../df/d44/prot_2ethernet_8h_source.html">ethernet.h</a>.</p> </div> </div> <a id="acf77751aed309653aaa33032732dd243"></a> <h2 class="memtitle"><span class="permalink"><a href="#acf77751aed309653aaa33032732dd243">◆ </a></span>LL_IP6_MULTICAST_ADDR_1</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define LL_IP6_MULTICAST_ADDR_1   0x33</td> </tr> </table> </div><div class="memdoc"> <p class="definition">Definition at line <a class="el" href="../../df/d44/prot_2ethernet_8h_source.html#l00150">150</a> of file <a class="el" href="../../df/d44/prot_2ethernet_8h_source.html">ethernet.h</a>.</p> </div> </div> <a id="a85d254d78726c038270fe87905845e75"></a> <h2 class="memtitle"><span class="permalink"><a href="#a85d254d78726c038270fe87905845e75">◆ </a></span>SIZEOF_ETH_HDR</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define SIZEOF_ETH_HDR   (14 + <a class="el" href="../../dc/d98/group__lwip__opts__arp.html#gad7fa3b356ca7e603e848b069c4cc6276">ETH_PAD_SIZE</a>)</td> </tr> </table> </div><div class="memdoc"> <p class="definition">Definition at line <a class="el" href="../../df/d44/prot_2ethernet_8h_source.html#l00084">84</a> of file <a class="el" href="../../df/d44/prot_2ethernet_8h_source.html">ethernet.h</a>.</p> </div> </div> <a id="a2443b91084b01e4f22423d74d3ae19fe"></a> <h2 class="memtitle"><span class="permalink"><a href="#a2443b91084b01e4f22423d74d3ae19fe">◆ </a></span>SIZEOF_VLAN_HDR</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define SIZEOF_VLAN_HDR   4</td> </tr> </table> </div><div class="memdoc"> <p class="definition">Definition at line <a class="el" href="../../df/d44/prot_2ethernet_8h_source.html#l00102">102</a> of file <a class="el" href="../../df/d44/prot_2ethernet_8h_source.html">ethernet.h</a>.</p> </div> </div> <a id="aa36e5e552e17cea1828f0a6792eb29d4"></a> <h2 class="memtitle"><span class="permalink"><a href="#aa36e5e552e17cea1828f0a6792eb29d4">◆ </a></span>VLAN_ID</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define VLAN_ID</td> <td>(</td> <td class="paramtype"> </td> <td class="paramname">vlan_hdr</td><td>)</td> <td>   (<a class="el" href="../../d2/d6e/def_8c.html#ad637280639de4066392e6b5614fa3e56">lwip_htons</a>((vlan_hdr)->prio_vid) & 0xFFF)</td> </tr> </table> </div><div class="memdoc"> <p class="definition">Definition at line <a class="el" href="../../df/d44/prot_2ethernet_8h_source.html#l00103">103</a> of file <a class="el" href="../../df/d44/prot_2ethernet_8h_source.html">ethernet.h</a>.</p> </div> </div> <h2 class="groupheader">Variable Documentation</h2> <a id="aafd4aa713559fd4dfdeaa60f9c7b6c2d"></a> <h2 class="memtitle"><span class="permalink"><a href="#aafd4aa713559fd4dfdeaa60f9c7b6c2d">◆ </a></span>PACK_STRUCT_STRUCT</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="../../de/d8c/group__compiler__abstraction.html#ga73199061891adf1b912d20835c7d5e96">PACK_STRUCT_BEGIN</a> struct <a class="el" href="../../dc/dd4/structeth__vlan__hdr.html">eth_vlan_hdr</a> PACK_STRUCT_STRUCT</td> </tr> </table> </div><div class="memdoc"> </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="../../df/d44/prot_2ethernet_8h.html">ethernet.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>