Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1455650
  • 博文数量: 704
  • 博客积分: 10140
  • 博客等级: 上将
  • 技术积分: 6230
  • 用 户 组: 普通用户
  • 注册时间: 2010-07-15 20:41
文章分类

全部博文(704)

文章存档

2013年(1)

2012年(16)

2011年(536)

2010年(151)

分类: LINUX

2011-01-06 22:16:32

3

  1. typedef struct fsm_callbacks
  2. {
  3.     void ( *resetci ) /* Reset our Configuration Information */
  4.     __P ( ( fsm * ) );
  5.     int ( *cilen ) /* Length of our Configuration Information */
  6.     __P ( ( fsm * ) );
  7.     void ( *addci ) /* Add our Configuration Information */
  8.     __P ( ( fsm *, u_char *, int * ) );
  9.     int ( *ackci ) /* ACK our Configuration Information */
  10.     __P ( ( fsm *, u_char *, int ) );
  11.     int ( *nakci ) /* NAK our Configuration Information */
  12.     __P ( ( fsm *, u_char *, int ) );
  13.     int ( *rejci ) /* Reject our Configuration Information */
  14.     __P ( ( fsm *, u_char *, int ) );
  15.     int ( *reqci ) /* Request peer's Configuration Information */
  16.     __P ( ( fsm *, u_char *, int *, int ) );
  17.     void ( *up ) /* Called when fsm reaches OPENED state */
  18.     __P ( ( fsm * ) );
  19.     void ( *down ) /* Called when fsm leaves OPENED state */
  20.     __P ( ( fsm * ) );
  21.     void ( *starting ) /* Called when we want the lower layer */
  22.     __P ( ( fsm * ) );
  23.     void ( *finished ) /* Called when we don't want the lower layer */
  24.     __P ( ( fsm * ) );
  25.     void ( *protreject ) /* Called when Protocol-Reject received */
  26.     __P ( ( int ) );
  27.     void ( *retransmit ) /* Retransmission is necessary */
  28.     __P ( ( fsm * ) );
  29.     int ( *extcode ) /* Called when unknown code received */
  30.     __P ( ( fsm *, int, int, u_char *, int ) );
  31.     char *proto_name; /* String name for protocol (for messages) */
  32. } fsm_callbacks;

4

  1. /*
  2.  * The state of options is described by an lcp_options structure.
  3.  */
  4. typedef struct lcp_options
  5. {
  6.     bool passive; /* Don't die if we don't get a response */
  7.     bool silent; /* Wait for the other end to start first */
  8.     bool restart; /* Restart vs. exit after close */
  9.     bool neg_mru; /* Negotiate the MRU? */
  10.     bool neg_asyncmap; /* Negotiate the async map? */
  11.     bool neg_upap; /* Ask for UPAP authentication? */
  12.     bool neg_chap; /* Ask for CHAP authentication? */
  13.     bool neg_eap; /* Ask for EAP authentication? */
  14.     bool neg_magicnumber; /* Ask for magic number? */
  15.     bool neg_pcompression; /* HDLC Protocol Field Compression? */
  16.     bool neg_accompression; /* HDLC Address/Control Field Compression? */
  17.     bool neg_lqr; /* Negotiate use of Link Quality Reports */
  18.     bool neg_cbcp; /* Negotiate use of CBCP */
  19.     bool neg_mrru; /* negotiate multilink MRRU */
  20.     bool neg_ssnhf; /* negotiate short sequence numbers */
  21.     bool neg_endpoint; /* negotiate endpoint discriminator */
  22.     int mru; /* Value of MRU */
  23.     int mrru; /* Value of MRRU, and multilink enable */
  24.     u_char chap_mdtype; /* which MD types (hashing algorithm) */
  25.     u_int32_t asyncmap; /* Value of async map */
  26.     u_int32_t magicnumber;
  27.     int numloops; /* Number of loops during magic number neg. */
  28.     u_int32_t lqr_period; /* Reporting period for LQR 1/100ths second */
  29.     struct epdisc endpoint; /* endpoint discriminator */
  30. } lcp_options;
阅读(532) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2011-03-09 13:51:36

很好的, 收藏了 推荐一个博客,提供很多免费软件编程电子书下载: http://free-ebooks.appspot.com