?? ppp.c
字號(hào):
** 每次一個(gè)Configure-Request被發(fā)送的時(shí)候,Restart計(jì)數(shù)器自減。
** 輸 入: DataBuf :接收到的數(shù)據(jù)包(本函數(shù)沒(méi)有用到)
** Q :接收到的消息(本函數(shù)沒(méi)有用到)
** 輸 出: 無(wú)
** 全局變量: 無(wú)
** 調(diào)用模塊: 無(wú)
**
** 作 者: 陳明計(jì)
** 日 期: 2004年4月23日
**-------------------------------------------------------------------------------------------------------
** 修改人:
** 日 期:
**------------------------------------------------------------------------------------------------------
********************************************************************************************************/
void PPP_scr(uint8 *DataBuf, uint8 Q)
{
DataBuf = DataBuf;
Q = Q;
LCPSendCfgReq(&PPPData);
}
/*********************************************************************************************************
** 函數(shù)名稱: PPP_sca()
** 功能描述: Send-Configure-Ack
** 一個(gè)Configure-Ack包被傳送。這確認(rèn)接收了一個(gè)帶有一套可接受的配置選項(xiàng)的Configure-Request包。
** 輸 入: DataBuf :接收到的數(shù)據(jù)包
** Q :接收到的消息(本函數(shù)沒(méi)有用到)
** 輸 出: 無(wú)
** 全局變量: 無(wú)
** 調(diào)用模塊: 無(wú)
**
** 作 者: 陳明計(jì)
** 日 期: 2004年4月23日
**-------------------------------------------------------------------------------------------------------
** 修改人:
** 日 期:
**------------------------------------------------------------------------------------------------------
********************************************************************************************************/
void PPP_sca(uint8 *DataBuf, uint8 Q)
{
Q = Q;
LCPSendCfgAck(&PPPData, DataBuf);
}
/*********************************************************************************************************
** 函數(shù)名稱: PPP_scn()
** 功能描述: Send-Configure-Nak
** 一個(gè)Configure-Nak或Configure-Reject包被穩(wěn)妥的傳送。
** 否定的響應(yīng)表明一個(gè)Configure-Request包帶有一套不可接受的配置選項(xiàng)。
** Configure-Nak包被用于拒絕一個(gè)配置選項(xiàng)值,并提議一個(gè)新的,可接受的值。
** 輸 入: DataBuf :接收到的數(shù)據(jù)包
** Q :接收到的消息(本函數(shù)沒(méi)有用到)
** 輸 出: 無(wú)
** 全局變量: 無(wú)
** 調(diào)用模塊: 無(wú)
**
** 作 者: 陳明計(jì)
** 日 期: 2004年4月23日
**-------------------------------------------------------------------------------------------------------
** 修改人:
** 日 期:
**------------------------------------------------------------------------------------------------------
********************************************************************************************************/
void PPP_scn(uint8 *DataBuf, uint8 Q)
{
Q = Q;
LCPSendCfgNak(&PPPData, DataBuf);
}
/*********************************************************************************************************
** 函數(shù)名稱: PPP_str()
** 功能描述: Send-Terminate-Request
** 一個(gè)Terminate-Request包被傳送。
** 這表示想要關(guān)上連接的愿望。
** 當(dāng)Terminate-Request包被傳送時(shí)Restart計(jì)時(shí)器被開(kāi)啟,來(lái)防止包丟失。
** 每次一個(gè)Terminate-Request被發(fā)送的時(shí)候,Restart計(jì)數(shù)器自減。
** 輸 入: DataBuf :接收到的數(shù)據(jù)包(本函數(shù)沒(méi)有用到)
** Q :接收到的消息(本函數(shù)沒(méi)有用到)
** 輸 出: 無(wú)
** 全局變量: 無(wú)
** 調(diào)用模塊: 無(wú)
**
** 作 者: 陳明計(jì)
** 日 期: 2004年4月23日
**-------------------------------------------------------------------------------------------------------
** 修改人:
** 日 期:
**------------------------------------------------------------------------------------------------------
********************************************************************************************************/
void PPP_str(uint8 *DataBuf, uint8 Q)
{
DataBuf = DataBuf;
Q = Q;
LCPSendTermReq(&PPPData);
}
/*********************************************************************************************************
** 函數(shù)名稱: PPP_sta()
** 功能描述: Send-Terminate-Ack
** 一個(gè)Terminate-Ack包被傳送。
** 這確認(rèn)Terminate-Request的包的接收,或者以別的方式對(duì)于自動(dòng)同步起作用。
** 輸 入: DataBuf :接收到的數(shù)據(jù)包(本函數(shù)沒(méi)有用到)
** Q :接收到的消息(本函數(shù)沒(méi)有用到)
** 輸 出: 無(wú)
** 全局變量: 無(wú)
** 調(diào)用模塊: 無(wú)
**
** 作 者: 陳明計(jì)
** 日 期: 2004年4月23日
**-------------------------------------------------------------------------------------------------------
** 修改人:
** 日 期:
**------------------------------------------------------------------------------------------------------
********************************************************************************************************/
void PPP_sta(uint8 *DataBuf, uint8 Q)
{
Q = Q;
LCPSendTermAck(&PPPData, DataBuf);
}
/*********************************************************************************************************
** 函數(shù)名稱: PPP_scj()
** 功能描述: Send-Code-Reject
** 一個(gè)Code-Reject包被傳送。
** 這表示未知的種類的包的接收。
** 輸 入: DataBuf :接收到的數(shù)據(jù)包
** Q :接收到的消息(本函數(shù)沒(méi)有用到)
** 輸 出: 無(wú)
** 全局變量: 無(wú)
** 調(diào)用模塊: 無(wú)
**
** 作 者: 陳明計(jì)
** 日 期: 2004年4月23日
**-------------------------------------------------------------------------------------------------------
** 修改人:
** 日 期:
**------------------------------------------------------------------------------------------------------
********************************************************************************************************/
void PPP_scj(uint8 *DataBuf, uint8 Q)
{
Q = Q;
LCPSendCodeRej(&PPPData, DataBuf);
}
/*********************************************************************************************************
** 函數(shù)名稱: PPP_ser()
** 功能描述: Send-Echo-Reply
** 一個(gè)Echo-Reply包被傳送。
** 輸 入: DataBuf :接收到的數(shù)據(jù)包
** Q :接收到的消息(本函數(shù)沒(méi)有用到)
** 輸 出: 無(wú)
** 全局變量: 無(wú)
** 調(diào)用模塊: 無(wú)
**
** 作 者: 陳明計(jì)
** 日 期: 2004年4月23日
**-------------------------------------------------------------------------------------------------------
** 修改人:
** 日 期:
**------------------------------------------------------------------------------------------------------
********************************************************************************************************/
void PPP_ser(uint8 *DataBuf, uint8 Q)
{
Q = Q;
LCPSendEchoReply(&PPPData, DataBuf);
}
/*********************************************************************************************************
** 函數(shù)名稱: PPP_ser()
** 功能描述: Send-Echo-Reply
** 一個(gè)Echo-Reply包被傳送。
** 輸 入: DataBuf :接收到的數(shù)據(jù)包
** Q :接收到的消息(本函數(shù)沒(méi)有用到)
** 輸 出: 無(wú)
** 全局變量: 無(wú)
** 調(diào)用模塊: 無(wú)
**
** 作 者: 陳明計(jì)
** 日 期: 2004年4月23日
**-------------------------------------------------------------------------------------------------------
** 修改人:
** 日 期:
**------------------------------------------------------------------------------------------------------
********************************************************************************************************/
void PPP_irc_scr(uint8 *DataBuf, uint8 Q)
{
PPP_irc(DataBuf, Q);
PPP_scr(DataBuf, Q);
}
void PPP_irc_scr_sca(uint8 *DataBuf, uint8 Q)
{
PPP_irc(DataBuf, Q);
PPP_scr(DataBuf, Q);
PPP_sca(DataBuf, Q);
}
void PPP_irc_scr_scn(uint8 *DataBuf, uint8 Q)
{
PPP_irc(DataBuf, Q);
PPP_scr(DataBuf, Q);
PPP_scn(DataBuf, Q);
}
void PPP_irc_str(uint8 *DataBuf, uint8 Q)
{
PPP_irc(DataBuf, Q);
PPP_str(DataBuf, Q);
}
void PPP_irc_sca(uint8 *DataBuf, uint8 Q)
{
PPP_irc(DataBuf, Q);
PPP_sca(DataBuf, Q);
}
void PPP_sca_tlu(uint8 *DataBuf, uint8 Q)
{
PPP_sca(DataBuf, Q);
PPP_tlu(DataBuf, Q);
}
void PPP_irc_tlu(uint8 *DataBuf, uint8 Q)
{
PPP_irc(DataBuf, Q);
PPP_tlu(DataBuf, Q);
}
void PPP_tld_irc_str(uint8 *DataBuf, uint8 Q)
{
PPP_tld(DataBuf, Q);
PPP_irc(DataBuf, Q);
PPP_str(DataBuf, Q);
}
void PPP_tld_scr_sca(uint8 *DataBuf, uint8 Q)
{
PPP_tld(DataBuf, Q);
PPP_irc(DataBuf, Q);
PPP_sta(DataBuf, Q);
}
void PPP_tld_scr_scn(uint8 *DataBuf, uint8 Q)
{
PPP_tld(DataBuf, Q);
PPP_irc(DataBuf, Q);
PPP_scn(DataBuf, Q);
}
void PPP_tld_scr(uint8 *DataBuf, uint8 Q)
{
PPP_tld(DataBuf, Q);
PPP_irc(DataBuf, Q);
}
void PPP_tld_zrc_sta(uint8 *DataBuf, uint8 Q)
{
PPP_tld(DataBuf, Q);
PPP_zrc(DataBuf, Q);
PPP_sta(DataBuf, Q);
}
/*********************************************************************************************************
** 函數(shù)名稱: PPP_reset()
** 功能描述: 重起選項(xiàng)
** 輸 入: DataBuf :接收到的數(shù)據(jù)包
** Q :接收到的消息(本函數(shù)沒(méi)有用到)
** 輸 出: 無(wú)
** 全局變量: 無(wú)
** 調(diào)用模塊: 無(wú)
**
** 作 者: 陳明計(jì)
** 日 期: 2004年4月23日
**-------------------------------------------------------------------------------------------------------
** 修改人:
** 日 期:
**------------------------------------------------------------------------------------------------------
********************************************************************************************************/
void PPP_reset(uint8 *DataBuf, uint8 Q)
{
PPP_irc(DataBuf, Q);
}
/*********************************************************************************************************
** 函數(shù)名稱: PPPIllegalEvent()
** 功能描述: Illegal-Event
** 不合法的事件
** 該動(dòng)作指出一個(gè)在正常執(zhí)行的自動(dòng)機(jī)中不可能出現(xiàn)的事件。執(zhí)行有一個(gè)內(nèi)在的錯(cuò)誤,
** 應(yīng)該把它報(bào)告并記錄下來(lái)。沒(méi)有轉(zhuǎn)換被執(zhí)行,執(zhí)行不應(yīng)該reset or freeze(重新安排或凍結(jié))。
** 輸 入: DataBuf :接收到的數(shù)據(jù)包
** Q :接收到的消息(本函數(shù)沒(méi)有用到)
** 輸 出: 無(wú)
** 全局變量: 無(wú)
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -