PPP finite state machine. More...
Go to the source code of this file.
Data Structures | |
struct | PppCallbacks |
PPP FSM actions. More... | |
Typedefs | |
typedef void(* | PppThisLayerUp) (PppContext *context) |
This-Layer-Up callback function. More... | |
typedef void(* | PppThisLayerDown) (PppContext *context) |
This-Layer-Down callback function. More... | |
typedef void(* | PppThisLayerStarted) (PppContext *context) |
This-Layer-Started callback function. More... | |
typedef void(* | PppThisLayerFinished) (PppContext *context) |
This-Layer-Finished callback function. More... | |
typedef void(* | PppInitRestartCount) (PppContext *context, uint_t value) |
Initialize-Restart-Count callback function. More... | |
typedef void(* | PppZeroRestartCount) (PppContext *context) |
Zero-Restart-Count callback function. More... | |
typedef error_t(* | PppSendConfigureReq) (PppContext *context) |
Send-Configure-Request callback function. More... | |
typedef error_t(* | PppSendConfigureAck) (PppContext *context, const PppConfigurePacket *configureReqPacket) |
Send-Configure-Ack callback function. More... | |
typedef error_t(* | PppSendConfigureNak) (PppContext *context, const PppConfigurePacket *configureReqPacket) |
Send-Configure-Nak callback function. More... | |
typedef error_t(* | PppSendConfigureRej) (PppContext *context, const PppConfigurePacket *configureReqPacket) |
Send-Configure-Reject callback function. More... | |
typedef error_t(* | PppSendTerminateReq) (PppContext *context) |
Send-Terminate-Request callback function. More... | |
typedef error_t(* | PppSendTerminateAck) (PppContext *context, const PppTerminatePacket *terminateReqPacket) |
Send-Terminate-Ack callback function. More... | |
typedef error_t(* | PppSendCodeRej) (PppContext *context, const PppPacket *packet) |
Send-Code-Reject callback function. More... | |
typedef error_t(* | PppSendEchoRep) (PppContext *context, const PppEchoPacket *echoReqPacket) |
Send-Echo-Reply callback function. More... | |
Functions | |
void | pppUpEvent (PppContext *context, PppFsm *fsm, const PppCallbacks *callbacks) |
Process Up event. More... | |
void | pppDownEvent (PppContext *context, PppFsm *fsm, const PppCallbacks *callbacks) |
Process Down event. More... | |
void | pppOpenEvent (PppContext *context, PppFsm *fsm, const PppCallbacks *callbacks) |
Process Open event. More... | |
void | pppCloseEvent (PppContext *context, PppFsm *fsm, const PppCallbacks *callbacks) |
Process Close event. More... | |
void | pppTimeoutEvent (PppContext *context, PppFsm *fsm, const PppCallbacks *callbacks) |
Process Timeout event. More... | |
void | pppRcvConfigureReqEvent (PppContext *context, PppFsm *fsm, const PppCallbacks *callbacks, const PppConfigurePacket *configureReqPacket, PppCode code) |
Process Receive-Configure-Request event. More... | |
void | pppRcvConfigureAckEvent (PppContext *context, PppFsm *fsm, const PppCallbacks *callbacks) |
Process Receive-Configure-Ack event. More... | |
void | pppRcvConfigureNakEvent (PppContext *context, PppFsm *fsm, const PppCallbacks *callbacks) |
Process Receive-Configure-Nak event. More... | |
void | pppRcvTerminateReqEvent (PppContext *context, PppFsm *fsm, const PppCallbacks *callbacks, const PppTerminatePacket *terminateReqPacket) |
Process Receive-Terminate-Req event. More... | |
void | pppRcvTerminateAckEvent (PppContext *context, PppFsm *fsm, const PppCallbacks *callbacks) |
Process Receive-Terminate-Ack event. More... | |
void | pppRcvUnknownCodeEvent (PppContext *context, PppFsm *fsm, const PppCallbacks *callbacks, const PppPacket *packet) |
Process Receive-Unknown-Code event. More... | |
void | pppRcvCodeRejEvent (PppContext *context, PppFsm *fsm, const PppCallbacks *callbacks, bool_t acceptable) |
Process Receive-Code-Reject or Receive-Protocol-Reject event. More... | |
void | pppRcvEchoReqEvent (PppContext *context, PppFsm *fsm, const PppCallbacks *callbacks, const PppEchoPacket *echoReqPacket) |
Process Receive-Echo-Request event. More... | |
void | pppChangeState (PppFsm *fsm, PppState newState) |
Update PPP FSM state. More... | |
Detailed Description
PPP finite state machine.
License
SPDX-License-Identifier: GPL-2.0-or-later
Copyright (C) 2010-2024 Oryx Embedded SARL. All rights reserved.
This file is part of CycloneTCP Open.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- Version
- 2.4.4
Definition in file ppp_fsm.h.
Typedef Documentation
◆ PppInitRestartCount
typedef void(* PppInitRestartCount) (PppContext *context, uint_t value) |
◆ PppSendCodeRej
typedef error_t(* PppSendCodeRej) (PppContext *context, const PppPacket *packet) |
◆ PppSendConfigureAck
typedef error_t(* PppSendConfigureAck) (PppContext *context, const PppConfigurePacket *configureReqPacket) |
◆ PppSendConfigureNak
typedef error_t(* PppSendConfigureNak) (PppContext *context, const PppConfigurePacket *configureReqPacket) |
◆ PppSendConfigureRej
typedef error_t(* PppSendConfigureRej) (PppContext *context, const PppConfigurePacket *configureReqPacket) |
◆ PppSendConfigureReq
typedef error_t(* PppSendConfigureReq) (PppContext *context) |
◆ PppSendEchoRep
typedef error_t(* PppSendEchoRep) (PppContext *context, const PppEchoPacket *echoReqPacket) |
◆ PppSendTerminateAck
typedef error_t(* PppSendTerminateAck) (PppContext *context, const PppTerminatePacket *terminateReqPacket) |
◆ PppSendTerminateReq
typedef error_t(* PppSendTerminateReq) (PppContext *context) |
◆ PppThisLayerDown
typedef void(* PppThisLayerDown) (PppContext *context) |
◆ PppThisLayerFinished
typedef void(* PppThisLayerFinished) (PppContext *context) |
◆ PppThisLayerStarted
typedef void(* PppThisLayerStarted) (PppContext *context) |
◆ PppThisLayerUp
typedef void(* PppThisLayerUp) (PppContext *context) |
◆ PppZeroRestartCount
typedef void(* PppZeroRestartCount) (PppContext *context) |
Function Documentation
◆ pppChangeState()
◆ pppCloseEvent()
void pppCloseEvent | ( | PppContext * | context, |
PppFsm * | fsm, | ||
const PppCallbacks * | callbacks | ||
) |
◆ pppDownEvent()
void pppDownEvent | ( | PppContext * | context, |
PppFsm * | fsm, | ||
const PppCallbacks * | callbacks | ||
) |
◆ pppOpenEvent()
void pppOpenEvent | ( | PppContext * | context, |
PppFsm * | fsm, | ||
const PppCallbacks * | callbacks | ||
) |
◆ pppRcvCodeRejEvent()
void pppRcvCodeRejEvent | ( | PppContext * | context, |
PppFsm * | fsm, | ||
const PppCallbacks * | callbacks, | ||
bool_t | acceptable | ||
) |
◆ pppRcvConfigureAckEvent()
void pppRcvConfigureAckEvent | ( | PppContext * | context, |
PppFsm * | fsm, | ||
const PppCallbacks * | callbacks | ||
) |
◆ pppRcvConfigureNakEvent()
void pppRcvConfigureNakEvent | ( | PppContext * | context, |
PppFsm * | fsm, | ||
const PppCallbacks * | callbacks | ||
) |
◆ pppRcvConfigureReqEvent()
void pppRcvConfigureReqEvent | ( | PppContext * | context, |
PppFsm * | fsm, | ||
const PppCallbacks * | callbacks, | ||
const PppConfigurePacket * | configureReqPacket, | ||
PppCode | code | ||
) |
Process Receive-Configure-Request event.
- Parameters
-
[in] context PPP context [in,out] fsm Finite state machine [in] callbacks FSM actions [in] configureReqPacket Configure-Request packet received from the peer [in] code Tells whether the configuration options are acceptable
◆ pppRcvEchoReqEvent()
void pppRcvEchoReqEvent | ( | PppContext * | context, |
PppFsm * | fsm, | ||
const PppCallbacks * | callbacks, | ||
const PppEchoPacket * | echoReqPacket | ||
) |
◆ pppRcvTerminateAckEvent()
void pppRcvTerminateAckEvent | ( | PppContext * | context, |
PppFsm * | fsm, | ||
const PppCallbacks * | callbacks | ||
) |
◆ pppRcvTerminateReqEvent()
void pppRcvTerminateReqEvent | ( | PppContext * | context, |
PppFsm * | fsm, | ||
const PppCallbacks * | callbacks, | ||
const PppTerminatePacket * | terminateReqPacket | ||
) |
◆ pppRcvUnknownCodeEvent()
void pppRcvUnknownCodeEvent | ( | PppContext * | context, |
PppFsm * | fsm, | ||
const PppCallbacks * | callbacks, | ||
const PppPacket * | packet | ||
) |
◆ pppTimeoutEvent()
void pppTimeoutEvent | ( | PppContext * | context, |
PppFsm * | fsm, | ||
const PppCallbacks * | callbacks | ||
) |
◆ pppUpEvent()
void pppUpEvent | ( | PppContext * | context, |
PppFsm * | fsm, | ||
const PppCallbacks * | callbacks | ||
) |