📄 bootp_8h.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>bootp.h File 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>/opentcp/include/inet/bootp/bootp.h File Reference</h1><hr><a name="_details"></a><h2>Detailed Description</h2> <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>Version: </b></dt><dd>1.0 </dl><dl compact><dt><b>Date: </b></dt><dd>10.7.2002</dl>OpenTCP BOOTP client function declarations, constants, etc.<p><p>Definition in file <a class="el" href="bootp_8h-source.html">bootp.h</a>.<p><a href="bootp_8h-source.html">Go to the source code of this file.</a><table border=0 cellpadding=0 cellspacing=0><tr><td></td></tr><tr><td colspan=2><br><h2>Defines</h2></td></tr><tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="bootp_8h.html#a0">BOOTP_RETRY_TOUT</a> 5</td></tr><tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="bootp_8h.html#a1">BOOTP_CLIENTPORT</a> 68</td></tr><tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="bootp_8h.html#a2">BOOTP_SERVERPORT</a> 67</td></tr><tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="bootp_8h.html#a3">BOOTPC_STATE_DISABLED</a> 0</td></tr><tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="bootp_8h.html#a4">BOOTPC_STATE_ENABLED</a> 1</td></tr><tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="bootp_8h.html#a5">BOOTPC_STATE_REQUEST_NEEDED</a> 2</td></tr><tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="bootp_8h.html#a6">BOOTPC_STATE_WAITING_REPLY</a> 3</td></tr><tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="bootp_8h.html#a7">BOOTPC_STATE_REPLY_GET</a> 4</td></tr><tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="bootp_8h.html#a8">BOOTP_OPTION_SUBNETMASK</a> 1</td></tr><tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="bootp_8h.html#a9">BOOTP_OPTION_DEFGW</a> 3</td></tr><tr><td colspan=2><br><h2>Functions</h2></td></tr><tr><td nowrap align=right valign=top>INT8 </td><td valign=bottom><a class="el" href="bootp_8h.html#a14">bootpc_enable</a> (void)</td></tr><tr><td> </td><td><font size=-1><em>Enable BOOTP client operation.</em> <a href="#a14"></a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="bootp_8h.html#a15">bootpc_stop</a> (void)</td></tr><tr><td> </td><td><font size=-1><em>Stop BOOTP client operation.</em> <a href="#a15"></a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="bootp_8h.html#a16">bootpc_run</a> (void)</td></tr><tr><td> </td><td><font size=-1><em>BOOTP client main loop.</em> <a href="#a16"></a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top>INT32 </td><td valign=bottom><a class="el" href="bootp_8h.html#a17">bootpc_eventlistener</a> (INT8, UINT8, UINT32, UINT16, UINT16, UINT16)</td></tr><tr><td> </td><td><font size=-1><em>BOOTP event listener.</em> <a href="#a17"></a><em></em></font><br><br></td></tr></table><hr><h2>Define Documentation</h2><a name="a0" doxytag="bootp.h::BOOTP_RETRY_TOUT"></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_RETRY_TOUT 5 </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>How many seconds to pass before retrying <p>Definition at line <a class="el" href="bootp_8h-source.html#l00069">69</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#l00183">bootpc_run()</a>. </td> </tr></table><a name="a1" doxytag="bootp.h::BOOTP_CLIENTPORT"></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_CLIENTPORT 68 </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Local BOOTP client port that will be used for sending requests <p>Definition at line <a class="el" href="bootp_8h-source.html#l00071">71</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#l00108">bootpc_init()</a>. </td> </tr></table><a name="a2" doxytag="bootp.h::BOOTP_SERVERPORT"></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_SERVERPORT 67 </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>BOOTP server's port <p>Definition at line <a class="el" href="bootp_8h-source.html#l00073">73</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#l00183">bootpc_run()</a>. </td> </tr></table><a name="a3" doxytag="bootp.h::BOOTPC_STATE_DISABLED"></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 BOOTPC_STATE_DISABLED 0 </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>BOOTP client intentionally disabled <p>Definition at line <a class="el" href="bootp_8h-source.html#l00075">75</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#l00108">bootpc_init()</a>, and <a class="el" href="bootp_8c-source.html#l00150">bootpc_stop()</a>. </td> </tr></table><a name="a4" doxytag="bootp.h::BOOTPC_STATE_ENABLED"></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 BOOTPC_STATE_ENABLED 1 </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>BOOTP initialized and waiting to send initial BOOTP request <p>Definition at line <a class="el" href="bootp_8h-source.html#l00076">76</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#l00165">bootpc_enable()</a>, and <a class="el" href="bootp_8c-source.html#l00183">bootpc_run()</a>. </td> </tr></table><a name="a5" doxytag="bootp.h::BOOTPC_STATE_REQUEST_NEEDED"></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 BOOTPC_STATE_REQUEST_NEEDED 2 </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>New (or first) BOOTP requests must be issued <p>Definition at line <a class="el" href="bootp_8h-source.html#l00079">79</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#l00183">bootpc_run()</a>. </td> </tr></table><a name="a6" doxytag="bootp.h::BOOTPC_STATE_WAITING_REPLY"></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 BOOTPC_STATE_WAITING_REPLY 3 </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>After issuing the request BOOTP is in this state waiting either for timeout or a response from the BOOTP server <p>Definition at line <a class="el" href="bootp_8h-source.html#l00082">82</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>, and <a class="el" href="bootp_8c-source.html#l00183">bootpc_run()</a>. </td> </tr></table><a name="a7" doxytag="bootp.h::BOOTPC_STATE_REPLY_GET"></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 BOOTPC_STATE_REPLY_GET 4 </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Once we get into this state, proper reply has been received from the BOOTP server <p>Definition at line <a class="el" href="bootp_8h-source.html#l00087">87</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>, and <a class="el" href="bootp_8c-source.html#l00183">bootpc_run()</a>. </td> </tr></table><a name="a8" doxytag="bootp.h::BOOTP_OPTION_SUBNETMASK"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -