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

📄 structnetif.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>netif 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>netif Struct Reference</h1><hr><a name="_details"></a><h2>Detailed Description</h2>This structure holds information about the network interface. This means that all of the network-related information are stored in this kind of structure. <dl compact><dt><b>Examples: </b></dt><dd><p><a class="el" href="main__demo_8c-example.html#_a0">main_demo.c</a>.</dl><p><p>Definition at line <a class="el" href="system_8h-source.html#l00100">100</a> of file <a class="el" href="system_8h-source.html">system.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>LWORD&nbsp;</td><td valign=bottom><a class="el" href="structnetif.html#m0">localip</a></td></tr><tr><td>&nbsp;</td><td><font size=-1><em>IP address of a device.</em> <a href="#m0"></a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top>BYTE&nbsp;</td><td valign=bottom><a class="el" href="structnetif.html#m1">localHW</a> [6]</td></tr><tr><td>&nbsp;</td><td><font size=-1><em>Ethernet address given to a device.</em> <a href="#m1"></a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top>LWORD&nbsp;</td><td valign=bottom><a class="el" href="structnetif.html#m2">defgw</a></td></tr><tr><td>&nbsp;</td><td><font size=-1><em>Default network gateway.</em> <a href="#m2"></a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top>LWORD&nbsp;</td><td valign=bottom><a class="el" href="structnetif.html#m3">netmask</a></td></tr><tr><td>&nbsp;</td><td><font size=-1><em>Network submask.</em> <a href="#m3"></a><em></em></font><br><br></td></tr></table><hr><h2>Field Documentation</h2><a name="m0" doxytag="netif::localip"></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"> LWORD netif::localip      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>IP address of a happy device using OpenTCP :-). This must hold proper-value IP address in order for the networking stuff to work.<p>Possible scenarios for filling this field are: <ul><li> By assigning static IP address to a device always after reset <li> By allowing user to choose IP address by some tool (e.g. through serial communication, storing that information to some external flash,...) <li> By using BOOTP or DHCP clients for obtaining dynamically assigned address <li> By obtaining the IP address from the first ICMP packet the device receives</ul>First three approaches can also be used for obtaining gateway and subnet-mask information. <dl compact><dt><b>Examples: </b></dt><dd><a class="el" href="main__demo_8c-example.html#a1">main_demo.c</a>.</dl><p>Definition at line <a class="el" href="system_8h-source.html#l00119">119</a> of file <a class="el" href="system_8h-source.html">system.h</a>.<p>Referenced by <a class="el" href="arp_8c-source.html#l00960">is_subnet()</a>.    </td>  </tr></table><a name="m1" doxytag="netif::localHW"></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"> BYTE netif::localHW[6]      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>This array holds an Ethernet address assigned to a device. Note that these must be unique so if you're shipping your product to outside world you must purchase sufficient address range. <dl compact><dt><b>Examples: </b></dt><dd><a class="el" href="main__demo_8c-example.html#a4">main_demo.c</a>.</dl><p>Definition at line <a class="el" href="system_8h-source.html#l00128">128</a> of file <a class="el" href="system_8h-source.html">system.h</a>.    </td>  </tr></table><a name="m2" doxytag="netif::defgw"></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"> LWORD netif::defgw      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>IP address of a default network gateway. This is needed if the device is to communicate with the outside network (Internet) and not only intranet. <dl compact><dt><b>Examples: </b></dt><dd><a class="el" href="main__demo_8c-example.html#a2">main_demo.c</a>.</dl><p>Definition at line <a class="el" href="system_8h-source.html#l00136">136</a> of file <a class="el" href="system_8h-source.html">system.h</a>.    </td>  </tr></table><a name="m3" doxytag="netif::netmask"></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"> LWORD netif::netmask      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Network submask. Also needed if the the device is to communicate with the outside network. Used when determining whether the  host we're sending some data to is on the local network (send  data directly) or not (send through gateway). <dl compact><dt><b>Examples: </b></dt><dd><a class="el" href="main__demo_8c-example.html#a3">main_demo.c</a>.</dl><p>Definition at line <a class="el" href="system_8h-source.html#l00145">145</a> of file <a class="el" href="system_8h-source.html">system.h</a>.<p>Referenced by <a class="el" href="arp_8c-source.html#l00960">is_subnet()</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="system_8h-source.html">system.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 + -