对于一个网络协议来说,我们不仅仅要了解它的定义和概念,更要清楚它的设置与应用。那么今天我们就主要讲解一下关于PPP Options 的相关内容,来帮助大家了解一下具体的选项配置。
Selecting PPP Options Using an Options Structure
PPP options may be set at run-time by filling in a PPP options structure and passing the structure location to the ppp Init( ) routine. This routine is the standard entry point for initializing a PPP link (see Initializing a PPP Link).
The PPP options structure is typedefed to PPP_OPTIONS, and its definition is located in h/netinet/ppp/options.h, which is included through h/pppLib.h.
PPP选项可以在运行的时候设置,设置PPP选项结构体并将这个结构体传给pppInit()函数。这个函数是初始化PPP连接的标准入口点(请参考初始化PPP连接)。
The first field of the structure is an integer, flags, which is a bit field that holds the ORed value of the OPT_option macros displayed in column 2 of Table 3-3. Definitions for OPT_option are located in h/netinet/ppp/options.h. The remaining structure fields in column 2 are character pointers to the various PPP options specified by a string.
选项结构体的第一个域是整型数,一个标志位,是几个 OPT_xxx或运算之后的值,所有的OPT_xxx可以在Table 3-3中找到。OPT_xxx的定义在h/netinet/ppp/options.h中。。。。(不知所云)
The following code fragment is>
Setting PPP Options Using an Options File
PPP options are most conveniently set using an options file. There is>
在这里例子里,mars:/tmp/ppp_options包含以下内容:
- passive
- no_pap
- no_chap
- no_vj
- lcp_echo_interval 30
- lcp_echo_failure 10
推荐阅读
网络的结构具有复杂性,和多变性。那么各种各样的网络协议,掌握起来本就困难,更不要说应用过了。那么这里我们可以借助网络协议分析软件来进行管理。经常遇到有些朋友在问,为什么我只能看到我自己的通讯?为什么我没>>>详细阅读
本文标题:全析PPP Options选项设置
地址:http://www.17bianji.com/xieyi/4128.html
1/2 1