Webserver+3d print
Dependents:
Nucleo
« Back to documentation index
ppp_fsm.c File Reference
PPP finite state machine.
More...
Go to the source code of this file.
Functions
void pppUpEvent (PppContext *context, PppFsm *fsm, const PppCallbacks *callbacks)
Process Up event.
void pppDownEvent (PppContext *context, PppFsm *fsm, const PppCallbacks *callbacks)
Process Down event.
void pppOpenEvent (PppContext *context, PppFsm *fsm, const PppCallbacks *callbacks)
Process Open event.
void pppCloseEvent (PppContext *context, PppFsm *fsm, const PppCallbacks *callbacks)
Process Close event.
void pppTimeoutEvent (PppContext *context, PppFsm *fsm, const PppCallbacks *callbacks)
Process Timeout event.
void pppRcvConfigureReqEvent (PppContext *context, PppFsm *fsm, const PppCallbacks *callbacks, const PppConfigurePacket *configureReqPacket, PppCode code)
Process Receive-Configure-Request event.
void pppRcvConfigureAckEvent (PppContext *context, PppFsm *fsm, const PppCallbacks *callbacks)
Process Receive-Configure-Ack event.
void pppRcvConfigureNakEvent (PppContext *context, PppFsm *fsm, const PppCallbacks *callbacks)
Process Receive-Configure-Nak event.
void pppRcvTerminateReqEvent (PppContext *context, PppFsm *fsm, const PppCallbacks *callbacks, const PppTerminatePacket *terminateReqPacket)
Process Receive-Terminate-Req event.
void pppRcvTerminateAckEvent (PppContext *context, PppFsm *fsm, const PppCallbacks *callbacks)
Process Receive-Terminate-Ack event.
void pppRcvUnknownCodeEvent (PppContext *context, PppFsm *fsm, const PppCallbacks *callbacks, const PppPacket *packet)
Process Receive-Unknown-Code event.
void pppRcvCodeRejEvent (PppContext *context, PppFsm *fsm, const PppCallbacks *callbacks, bool_t acceptable)
Process Receive-Code-Reject or Receive-Protocol-Reject event.
void pppRcvEchoReqEvent (PppContext *context, PppFsm *fsm, const PppCallbacks *callbacks, const PppEchoPacket *echoReqPacket)
Process Receive-Echo-Request event.
void pppChangeState (PppFsm *fsm, PppState newState)
Update PPP FSM state.
Detailed Description
PPP finite state machine.
License
Copyright (C) 2010-2017 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.
Author: Oryx Embedded SARL (www.oryx-embedded.com)
Version: 1.7.6
Definition in file ppp_fsm.c .
Function Documentation
Update PPP FSM state.
Parameters:
[in,out] fsm Finite state machine
[in] newState New PPP state to switch to
Definition at line 922 of file ppp_fsm.c .
Process Close event.
Parameters:
[in] context PPP context
[in,out] fsm Finite state machine
[in] callbacks FSM actions
Definition at line 187 of file ppp_fsm.c .
Process Down event.
Parameters:
[in] context PPP context
[in,out] fsm Finite state machine
[in] callbacks FSM actions
Definition at line 82 of file ppp_fsm.c .
Process Open event.
Parameters:
[in] context PPP context
[in,out] fsm Finite state machine
[in] callbacks FSM actions
Definition at line 133 of file ppp_fsm.c .
void pppRcvCodeRejEvent
(
PppContext *
context ,
PppFsm *
fsm ,
const PppCallbacks *
callbacks ,
bool_t
acceptable
)
Process Receive-Code-Reject or Receive-Protocol-Reject event.
Parameters:
[in] context PPP context
[in,out] fsm Finite state machine
[in] callbacks FSM actions
[in] acceptable This parameter tells whether the rejected value is acceptable or catastrophic
Definition at line 790 of file ppp_fsm.c .
void pppRcvConfigureAckEvent
(
PppContext *
context ,
PppFsm *
fsm ,
const PppCallbacks *
callbacks
)
Process Receive-Configure-Ack event.
Parameters:
[in] context PPP context
[in,out] fsm Finite state machine
[in] callbacks FSM actions
Definition at line 522 of file ppp_fsm.c .
void pppRcvConfigureNakEvent
(
PppContext *
context ,
PppFsm *
fsm ,
const PppCallbacks *
callbacks
)
Process Receive-Configure-Nak event.
Parameters:
[in] context PPP context
[in,out] fsm Finite state machine
[in] callbacks FSM actions
Definition at line 584 of file ppp_fsm.c .
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
Definition at line 333 of file ppp_fsm.c .
void pppRcvEchoReqEvent
(
PppContext *
context ,
PppFsm *
fsm ,
const PppCallbacks *
callbacks ,
const PppEchoPacket *
echoReqPacket
)
Process Receive-Echo-Request event.
Parameters:
[in] context PPP context
[in,out] fsm Finite state machine
[in] callbacks FSM actions
[in] echoReqPacket Echo-Request packet received from the peer
Definition at line 887 of file ppp_fsm.c .
void pppRcvTerminateAckEvent
(
PppContext *
context ,
PppFsm *
fsm ,
const PppCallbacks *
callbacks
)
Process Receive-Terminate-Ack event.
Parameters:
[in] context PPP context
[in,out] fsm Finite state machine
[in] callbacks FSM actions
Definition at line 695 of file ppp_fsm.c .
void pppRcvTerminateReqEvent
(
PppContext *
context ,
PppFsm *
fsm ,
const PppCallbacks *
callbacks ,
const PppTerminatePacket *
terminateReqPacket
)
Process Receive-Terminate-Req event.
Parameters:
[in] context PPP context
[in,out] fsm Finite state machine
[in] callbacks FSM actions
[in] terminateReqPacket Terminate-Request packet received from the peer
Definition at line 646 of file ppp_fsm.c .
void pppRcvUnknownCodeEvent
(
PppContext *
context ,
PppFsm *
fsm ,
const PppCallbacks *
callbacks ,
const PppPacket *
packet
)
Process Receive-Unknown-Code event.
Parameters:
[in] context PPP context
[in,out] fsm Finite state machine
[in] callbacks FSM actions
[in] packet Un-interpretable packet received from the peer
Definition at line 755 of file ppp_fsm.c .
void pppTimeoutEvent
(
PppContext *
context ,
PppFsm *
fsm ,
const PppCallbacks *
callbacks
)
Process Timeout event.
Parameters:
[in] context PPP context
[in,out] fsm Finite state machine
[in] callbacks FSM actions
Definition at line 255 of file ppp_fsm.c .
Process Up event.
Parameters:
[in] context PPP context
[in,out] fsm Finite state machine
[in] callbacks FSM actions
Definition at line 48 of file ppp_fsm.c .