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

📄 ppplib.html

📁 vxworks相关论文
💻 HTML
📖 第 1 页 / 共 2 页
字号:
Set the maximum number of transmissions for PAP authenticationrequests to the specified string.<p><dt>char *chap_file<dd>Get CHAP secrets from the specified file.  This option is necessaryif either peer requires CHAP authentication.<p><dt>char *chap_restart<dd>Set the timeout in seconds for CHAP negotiation to the specified string.<p><dt>char *chap_interval<dd>Set the interval in seconds for CHAP rechallenge to the specified string.<p><dt>char *chap_max_challenge<dd> Set the maximum number of transmissions for CHAP challenge to thespecified string.<p></dl></blockquote><h4>CONFIGURATION OPTIONS FILE</h4><blockquote><p><p>The optional parameter <i>fOptions</i> specifies configuration options forthe PPP link.  If NULL, this parameter is ignored, otherwise itis assumed to be the name of a configuration options file.  The formatof the options file is one option per line; comment lines start with "#".The following options are recognized:<dl><dt>no_all<dd>Do not request/allow any options.<p><dt>passive_mode<dd>Set passive mode.<p><dt>silent_mode<dd>Set silent mode.<p><dt>defaultroute<dd>Add default route.<p><dt>proxyarp<dd>Add proxy ARP entry.<p><dt>ipcp_accept_local<dd>Accept peer's idea of the local IP address.<p><dt>ipcp_accept_remote<dd>Accept peer's idea of the remote IP address.<p><dt>no_ip<dd>Disable IP address negotiation.<p><dt>no_acc<dd>Disable address/control compression.<p><dt>no_pc<dd>Disable protocol field compression.<p><dt>no_vj<dd>Disable VJ (Van Jacobson) compression.<p><dt>no_vjccomp<dd>Disable VJ (Van Jacobson) connnection ID compression.<p><dt>no_asyncmap<dd>Disable async map negotiation.<p><dt>no_mn<dd>Disable magic number negotiation.<p><dt>no_mru<dd>Disable MRU (Maximum Receive Unit) negotiation.<p><dt>no_pap<dd>Do not allow PAP authentication with peer.<p><dt>no_chap<dd>Do not allow CHAP authentication with peer.<p><dt>require_pap<dd>Require PAP authentication with peer.<p><dt>require_chap<dd>Require CHAP authentication with peer.<p><dt>login<dd>Use the login password database for PAP authentication of peer.<p><dt>debug<dd>Enable PPP daemon debug mode.<p><dt>driver_debug<dd>Enable PPP driver debug mode.<p><dt>asyncmap <i>value</i><dd>Set the desired async map to the specified value.<p><dt>escape_chars <i>value</i><dd>Set the chars to escape on transmission to the specified value.<p><dt>vj_max_slots <i>value</i><dd>Set maximum number of VJ compression header slots to the specified value.<p><dt>netmask <i>value</i><dd>Set netmask value for negotiation to the specified value.<p><dt>mru <i>value</i><dd>Set MRU value for negotiation to the specified value.<p><dt>mtu <i>value</i><dd>Set MTU value for negotiation to the specified value.<p><dt>lcp_echo_failure <i>value</i><dd>Set the maximum consecutive LCP echo failures to the specified value.<p><dt>lcp_echo_interval <i>value</i><dd>Set the interval in seconds between LCP echo requests to the specified value.<p><dt>lcp_restart <i>value</i><dd>Set the timeout in seconds for the LCP negotiation to the specified value.<p><dt>lcp_max_terminate <i>value</i><dd>Set the maximum number of transmissions for LCP termination requeststo the specified value.<p><dt>lcp_max_configure <i>value</i><dd>Set the maximum number of transmissions for LCP configurationrequests to the specified value.<p><dt>lcp_max_failure <i>value</i><dd>Set the maximum number of LCP configuration NAKs to the specified value.<p><dt>ipcp_restart <i>value</i><dd>Set the timeout in seconds for IPCP negotiation to the specified value.<p><dt>ipcp_max_terminate <i>value</i><dd>Set the maximum number of transmissions for IPCP termination requeststo the specified value.<p><dt>ipcp_max_configure <i>value</i><dd>Set the maximum number of transmissions for IPCP configuration requeststo the specified value.<p><dt>ipcp_max_failure <i>value</i><dd>Set the maximum number of IPCP configuration NAKs to the specified value.<p><dt>local_auth_name <i>name</i><dd>Set the local name for authentication to the specified name.<p><dt>remote_auth_name <i>name</i><dd>Set the remote name for authentication to the specified name.<p><dt>pap_file <i>file</i><dd>Get PAP secrets from the specified file.  This option is necessaryif either peer requires PAP authentication.<p><dt>pap_user_name <i>name</i><dd>Set the user name for PAP authentication with the peer to the specified name.<p><dt>-<dd>Set the password for PAP authentication with the peer to the specifiedpassword.<p><dt>pap_restart <i>value</i><dd>Set the timeout in seconds for PAP negotiation to the specified value.<p><dt>pap_max_authreq <i>value</i><dd>Set the maximum number of transmissions for PAP authenticationrequests to the specified value.<p><dt>chap_file <i>file</i><dd>Get CHAP secrets from the specified file.  This option is necessaryif either peer requires CHAP authentication.<p><dt>chap_restart <i>value</i><dd>Set the timeout in seconds for CHAP negotiation to the specified value.<p><dt>chap_interval <i>value</i><dd>Set the interval in seconds for CHAP rechallenge to the specified value.<p><dt>chap_max_challenge <i>value</i><dd> Set the maximum number of transmissions for CHAP challenge to thespecified value.<p></dl></blockquote><h4>AUTHENTICATION</h4><blockquote><p><p>The VxWorks PPP implementation supports two separate user authenticationprotocols: the Password Authentication Protocol (PAP) and theChallenge-Handshake Authentication Protocol (CHAP).  If authentication isrequired by either peer, it must be satisfactorily completed before thePPP link becomes fully operational.  If authentication fails, the linkwill be automatically terminated.<p></blockquote><h4>EXAMPLES</h4><blockquote><p><p>The following routine initializes a PPP interface that uses thetarget's second serial port (<b>/tyCo/1</b>).  The local IP address is90.0.0.1; the IP address of the remote peer is 90.0.0.10.  The baudrate is the default rate for the <i>tty</i> device.  VJ compressionand authentication have been disabled, and LCP echo requests have beenenabled.<p><pre>PPP_OPTIONS pppOpt;   /* PPP configuration options */void routine ()    {    pppOpt.flags = OPT_PASSIVE_MODE | OPT_NO_PAP | OPT_NO_CHAP | OPT_NO_VJ;    pppOpt.lcp_echo_interval = "30";    pppOpt.lcp_echo_failure = "10";    pppInit (0, "/tyCo/1", "90.0.0.1", "90.0.0.10", 0, &amp;pppOpt, NULL);    }</pre>The following routine generates the same results as the previous example.The difference is that the configuration options are obtained froma file rather than a structure.<p><pre>pppFile = "phobos:/tmp/ppp_options";  /* PPP configuration options file */void routine ()    {    pppInit (0, "/tyCo/1", "90.0.0.1", "90.0.0.10", 0, NULL, pppFile);    }</pre>where phobos:/tmp/ppp_options contains:<p><pre>    passive    no_pap    no_chap    no_vj    lcp_echo_interval 30    lcp_echo_failure 10</pre></blockquote><h4>RETURNS</h4><blockquote><p><p>OK, or ERROR if the PPP interface cannot be initialized because thedaemon task cannot be spawned or memory is insufficient.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./pppLib.html#top">pppLib</a></b>, <b><a href="./pppShow.html#top">pppShow</a></b>, <b><i><a href="./pppLib.html#pppDelete">pppDelete</a></i>(&nbsp;)</b>,  <i>VxWorks Programmer's Guide: Network</i><hr><a name="pppDelete"></a><p align=right><a href="rtnIndex.html"><i>Libraries :  Routines</i></a></p></blockquote><h1><i>pppDelete</i>(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong><i>pppDelete</i>(&nbsp;)</strong> - delete a PPP network interface</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void pppDelete    (    int unit /* PPP interface unit number to delete */    )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine deletes the Point-to-Point Protocol (PPP) network interfacespecified by the unit number <i>unit</i>.<p>A Link Control Protocol (LCP) terminate request packet is sent to notifythe peer of the impending PPP link shut-down.  The associated serialinterface (<i>tty</i>) is then detached from the PPP driver, and the PPP interfaceis deleted from the list of network interfaces.  Finally, all resourcesassociated with the PPP link are returned to the VxWorks system.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./pppLib.html#top">pppLib</a></b></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -