📄 group__dhcp.html
字号:
<td class="md" valign="top">( </td> <td class="md" nowrap valign="top">unsigned int </td> <td class="mdname" nowrap> <em>len</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>struct <a class="el" href="structnetDhcpHeader.html">netDhcpHeader</a> * </td> <td class="mdname" nowrap> <em>packet</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Processes incoming DHCP packets from UDP port 68. This function is to be called by the stack when a DHCP packet arrives over the network. The DHCP packet will be parsed, handled, and a response will be generated and sent if needed. When the DHCP process completes, the IP addressing will be automatically updated. <p>Definition at line <a class="el" href="dhcp_8c-source.html#l00042">42</a> of file <a class="el" href="dhcp_8c-source.html">dhcp.c</a>. </td> </tr></table><a class="anchor" name="ga1" doxytag="dhcp.h::dhcpInit"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void dhcpInit </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Initialize DHCP system. Prepares DHCP for use and initializes lease time to zero. <p>Definition at line <a class="el" href="dhcp_8c-source.html#l00030">30</a> of file <a class="el" href="dhcp_8c-source.html">dhcp.c</a>. </td> </tr></table><a class="anchor" name="ga8" doxytag="dhcp.h::dhcpPrintHeader"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void dhcpPrintHeader </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">struct <a class="el" href="structnetDhcpHeader.html">netDhcpHeader</a> * </td> <td class="mdname1" valign="top" nowrap> <em>packet</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Print diagnotic information about BOOTP/DHCP packet. </td> </tr></table><a class="anchor" name="ga4" doxytag="dhcp.h::dhcpRelease"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void dhcpRelease </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Release DHCP lease and assigned network parameters. This function releases the DHCP assigned address and allows the DHCP server to reallocate it. <p>Definition at line <a class="el" href="dhcp_8c-source.html#l00158">158</a> of file <a class="el" href="dhcp_8c-source.html">dhcp.c</a>. </td> </tr></table><a class="anchor" name="ga3" doxytag="dhcp.h::dhcpRequest"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void dhcpRequest </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Request DHCP assigned network parameters. This function begins the DHCP process. The remainder of operations are handled in <a class="el" href="group__dhcp.html#ga2">dhcpIn()</a>. <p>Definition at line <a class="el" href="dhcp_8c-source.html#l00123">123</a> of file <a class="el" href="dhcp_8c-source.html">dhcp.c</a>. </td> </tr></table><a class="anchor" name="ga7" doxytag="dhcp.h::dhcpSetOption"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">uint8_t* dhcpSetOption </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">uint8_t * </td> <td class="mdname" nowrap> <em>options</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>uint8_t </td> <td class="mdname" nowrap> <em>optcode</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>uint8_t </td> <td class="mdname" nowrap> <em>optlen</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>void * </td> <td class="mdname" nowrap> <em>optvalptr</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Set a DHCP option in the option list. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>options</em> </td><td>is a pointer to the options field of a DHCP packet. </td></tr> <tr><td valign="top"></td><td valign="top"><em>optcode</em> </td><td>is the option number to write. </td></tr> <tr><td valign="top"></td><td valign="top"><em>optlen</em> </td><td>is the data length of the option value. </td></tr> <tr><td valign="top"></td><td valign="top"><em>optvalptr</em> </td><td>is a pointer to the option data to be read. </td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>pointer to write location of the next option. </dd></dl><p>Definition at line <a class="el" href="dhcp_8c-source.html#l00253">253</a> of file <a class="el" href="dhcp_8c-source.html">dhcp.c</a>. </td> </tr></table><a class="anchor" name="ga5" doxytag="dhcp.h::dhcpTimer"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void dhcpTimer </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Periodic DHCP maintenance. This function is to be called once per second and will expire the DHCP lease. <p>Definition at line <a class="el" href="dhcp_8c-source.html#l00203">203</a> of file <a class="el" href="dhcp_8c-source.html">dhcp.c</a>. </td> </tr></table><hr size="1"><address style="align: right;"><small>Generated on Sun Oct 29 03:41:09 2006 for Procyon AVRlib by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.2 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -