📄 bootp_8h.html
字号:
<tr> <td class="md" nowrap valign="top"> #define BOOTP_OPTION_SUBNETMASK 1 </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Subnet mask option BOOTP client is waiting for in the reply from the BOOTP server <p>Definition at line <a class="el" href="bootp_8h-source.html#l00093">93</a> of file <a class="el" href="bootp_8h-source.html">bootp.h</a>.<p>Referenced by <a class="el" href="bootp_8c-source.html#l00335">bootpc_eventlistener()</a>. </td> </tr></table><a name="a9" doxytag="bootp.h::BOOTP_OPTION_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"> #define BOOTP_OPTION_DEFGW 3 </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Default gateway option BOOTP client is waiting for in the reply from the BOOTP server <p>Definition at line <a class="el" href="bootp_8h-source.html#l00097">97</a> of file <a class="el" href="bootp_8h-source.html">bootp.h</a>.<p>Referenced by <a class="el" href="bootp_8c-source.html#l00335">bootpc_eventlistener()</a>. </td> </tr></table><hr><h2>Function Documentation</h2><a name="a14" doxytag="bootp.h::bootpc_enable"></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"> INT8 bootpc_enable </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><dl compact><dt><b>Author: </b></dt><dd> <ul><li> Jari Lahti (<a href="mailto:jari.lahti@violasystems.com">jari.lahti@violasystems.com</a>) </ul></dl><dl compact><dt><b>Date: </b></dt><dd>09.10.2002</dl>Invoke this function to enable BOOTP client operation. <p>Definition at line <a class="el" href="bootp_8c-source.html#l00165">165</a> of file <a class="el" href="bootp_8c-source.html">bootp.c</a>.<p>References <a class="el" href="bootp_8c.html#a6">bootp</a>, <a class="el" href="bootp_8c-source.html#l00077">bootp_app_init</a>, and <a class="el" href="bootp_8h-source.html#l00076">BOOTPC_STATE_ENABLED</a>. </td> </tr></table><a name="a15" doxytag="bootp.h::bootpc_stop"></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"> void bootpc_stop </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><dl compact><dt><b>Author: </b></dt><dd> <ul><li> Jari Lahti (<a href="mailto:jari.lahti@violasystems.com">jari.lahti@violasystems.com</a>) </ul></dl><dl compact><dt><b>Date: </b></dt><dd>09.10.2002</dl>Invoke this function to disable BOOTP client operation once it is not needed any more or just to temporarily suspend it's operation. <p>Definition at line <a class="el" href="bootp_8c-source.html#l00150">150</a> of file <a class="el" href="bootp_8c-source.html">bootp.c</a>.<p>References <a class="el" href="bootp_8c.html#a6">bootp</a>, <a class="el" href="bootp_8c-source.html#l00077">bootp_app_init</a>, and <a class="el" href="bootp_8h-source.html#l00075">BOOTPC_STATE_DISABLED</a>. </td> </tr></table><a name="a16" doxytag="bootp.h::bootpc_run"></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"> void bootpc_run </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><dl compact><dt><b>Author: </b></dt><dd> <ul><li> Jari Lahti (<a href="mailto:jari.lahti@violasystems.com">jari.lahti@violasystems.com</a>) </ul></dl><dl compact><dt><b>Date: </b></dt><dd>07.10.2002</dl>Main thread of the BOOTP client that should be invoked periodically. <p>Definition at line <a class="el" href="bootp_8c-source.html#l00183">183</a> of file <a class="el" href="bootp_8c-source.html">bootp.c</a>.<p>References <a class="el" href="bootp_8c.html#a6">bootp</a>, <a class="el" href="bootp_8c-source.html#l00077">bootp_app_init</a>, <a class="el" href="bootp_8h-source.html#l00069">BOOTP_RETRY_TOUT</a>, <a class="el" href="bootp_8h-source.html#l00073">BOOTP_SERVERPORT</a>, <a class="el" href="bootp_8h-source.html#l00076">BOOTPC_STATE_ENABLED</a>, <a class="el" href="bootp_8h-source.html#l00087">BOOTPC_STATE_REPLY_GET</a>, <a class="el" href="bootp_8h-source.html#l00079">BOOTPC_STATE_REQUEST_NEEDED</a>, <a class="el" href="bootp_8h-source.html#l00082">BOOTPC_STATE_WAITING_REPLY</a>, <a class="el" href="timers_8c-source.html#l00233">check_timer()</a>, <a class="el" href="timers_8c-source.html#l00194">init_timer()</a>, <a class="el" href="system_8h-source.html#l00091">NETWORK_TX_BUFFER_SIZE</a>, <a class="el" href="timers_8h-source.html#l00086">TIMERTIC</a>, <a class="el" href="tcp__ip_8h-source.html#l00471">UDP_APP_OFFSET</a>, and <a class="el" href="udp_8c-source.html#l00395">udp_send()</a>. </td> </tr></table><a name="a17" doxytag="bootp.h::bootpc_eventlistener"></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"> INT32 bootpc_eventlistener </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">INT8 </td> <td class="mdname" nowrap> <em>cbhandle</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>UINT8 </td> <td class="mdname" nowrap> <em>event</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>UINT32 </td> <td class="mdname" nowrap> <em>remip</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>UINT16 </td> <td class="mdname" nowrap> <em>remport</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>UINT16 </td> <td class="mdname" nowrap> <em>bufindex</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>UINT16 </td> <td class="mdname" nowrap> <em>dlen</em></td> </tr> <tr> <td></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><dl compact><dt><b>Author: </b></dt><dd> <ul><li> Jari Lahti (<a href="mailto:jari.lahti@violasystems.com">jari.lahti@violasystems.com</a>) </ul></dl><dl compact><dt><b>Date: </b></dt><dd>07.10.2002 </dl><dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>cbhandle</em> </td><td>handle of the socket this packet is intended for. </td></tr><tr><td valign=top><em>event</em> </td><td>event that is notified. For UDP, only UDP_EVENT_DATA. </td></tr><tr><td valign=top><em>ipaddr</em> </td><td>IP address of remote host who sent the UDP datagram </td></tr><tr><td valign=top><em>port</em> </td><td>port number of remote host who sent the UDP datagram </td></tr><tr><td valign=top><em>buffindex</em> </td><td>buffer index in RTL8019AS </td></tr></table></dl><dl compact><dt><b>Returns: </b></dt><dd> <ul><li> - 1 - error in processing <li> >0 - BOOTP reply successfully processed </ul></dl><dl compact><dt><b>Note: </b></dt><dd> <ul><li> Event listeners are NOT to be invoked directly. They are callback functions invoked by the TCP/IP stack to notify events.</ul></dl>Analyze received UDP packet and see if it contains what we need. If yes, get new network settings. <p>Definition at line <a class="el" href="bootp_8c-source.html#l00335">335</a> of file <a class="el" href="bootp_8c-source.html">bootp.c</a>.<p>References <a class="el" href="bootp_8c.html#a6">bootp</a>, <a class="el" href="bootp_8c-source.html#l00077">bootp_app_init</a>, <a class="el" href="bootp_8h-source.html#l00097">BOOTP_OPTION_DEFGW</a>, <a class="el" href="bootp_8h-source.html#l00093">BOOTP_OPTION_SUBNETMASK</a>, <a class="el" href="bootp_8h-source.html#l00087">BOOTPC_STATE_REPLY_GET</a>, <a class="el" href="bootp_8h-source.html#l00082">BOOTPC_STATE_WAITING_REPLY</a>, <a class="el" href="system_8h-source.html#l00270">NETWORK_RECEIVE_INITIALIZE</a>, and <a class="el" href="system_8h-source.html#l00210">RECEIVE_NETWORK_B</a>.<p>Referenced by <a class="el" href="bootp_8c-source.html#l00108">bootpc_init()</a>. </td> </tr></table><hr><address style="align: right;"><small>Generated on Sun Aug 3 20:33:00 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 + -