欢迎来到天天文库
浏览记录
ID:39632335
大小:958.00 KB
页数:15页
时间:2019-07-07
《PPP程序基本流程图》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、PPPD主函数main.cPPP程序基本流程图PPPD程序用到的几个重要的结构体:typedefstructfsm{intunit;/*Interfaceunitnumber*/intprotocol;/*DataLinkLayerProtocolfieldvalue*/intstate;/*State*/intflags;/*Containsoptionbits*/u_charid;/*Currentid*/u_charreqid;/*Currentrequestid*/u_charseen_ack;/*HavereceivedvalidAck/Nak/RejtoReq*/
2、inttimeouttime;/*Timeouttimeinmilliseconds*/intmaxconfreqtransmits;/*MaximumConfigure-Requesttransmissions*/intretransmits;/*Numberofretransmissionsleft*/intmaxtermtransmits;/*MaximumTerminate-Requesttransmissions*/intnakloops;/*Numberofnakloopssincelastack*/intrnakloops;/*Numberofnaksrecei
3、ved*/intmaxnakloops;/*Maximumnumberofnakloopstolerated*/structfsm_callbacks*callbacks;/*Callbackroutines*/char*term_reason;/*Reasonforclosingprotocol*/intterm_reason_len;/*Lengthofterm_reason*/}fsm;typedefstructfsm_callbacks{void(*resetci)/*ResetourConfigurationInformation*/__P((fsm*));int(
4、*cilen)/*LengthofourConfigurationInformation*/__P((fsm*));void(*addci)/*AddourConfigurationInformation*/__P((fsm*,u_char*,int*));int(*ackci)/*ACKourConfigurationInformation*/__P((fsm*,u_char*,int));int(*nakci)/*NAKourConfigurationInformation*/__P((fsm*,u_char*,int,int));int(*rejci)/*Rejecto
5、urConfigurationInformation*/__P((fsm*,u_char*,int));int(*reqci)/*Requestpeer'sConfigurationInformation*/__P((fsm*,u_char*,int*,int));void(*up)/*CalledwhenfsmreachesOPENEDstate*/PPPD主函数main.cPPP程序基本流程图PPPD程序用到的几个重要的结构体:typedefstructfsm{intunit;/*Interfaceunitnumber*/intprotocol;/*DataLinkLay
6、erProtocolfieldvalue*/intstate;/*State*/intflags;/*Containsoptionbits*/u_charid;/*Currentid*/u_charreqid;/*Currentrequestid*/u_charseen_ack;/*HavereceivedvalidAck/Nak/RejtoReq*/inttimeouttime;/*Timeouttimeinmilliseconds*/intmaxconfreqtransmits;/*MaximumConfigure-Requesttransmissions*/intret
7、ransmits;/*Numberofretransmissionsleft*/intmaxtermtransmits;/*MaximumTerminate-Requesttransmissions*/intnakloops;/*Numberofnakloopssincelastack*/intrnakloops;/*Numberofnaksreceived*/intmaxnakloops;/*Maximumnumberofnakloopstolerated*/structfsm_callbacks*c
此文档下载收益归作者所有