Collaboration diagram for PPP:
Data Structures | |
struct | _PPPDCB |
PPP interface structure. More... | |
struct | _PPPDCB |
PPP interface structure. More... | |
Defines | |
#define | PPP_PFC 0x01 |
#define | PPP_ACFC 0x02 |
#define | LCP_DEFOPT_ASYNCMAP 0x000A0000UL |
#define | LCP_OPEN 1 |
#define | LCP_CLOSE 2 |
#define | LCP_LOWERUP 3 |
#define | LCP_LOWERDOWN 4 |
Typedefs | |
typedef _PPPDCB | PPPDCB |
PPP interface type. | |
Functions | |
void | NutPppInput (NUTDEVICE *dev, NETBUF *nb) |
Handle incoming PPP frames. | |
int | NutPppOutput (NUTDEVICE *dev, u_short type, u_char *ha, NETBUF *nb) |
Send PPP frame. | |
void | NutPppSm (void *arg) |
PPP state machine timeout thread. | |
int | NutPppInitStateMachine (NUTDEVICE *dev) |
Initialize the PPP state machine. | |
void | LcpOpen (NUTDEVICE *dev) |
Trigger LCP open event. | |
void | LcpClose (NUTDEVICE *dev) |
Trigger LCP close event. | |
void | LcpLowerUp (NUTDEVICE *dev) |
Trigger LCP lower up event. | |
void | LcpLowerDown (NUTDEVICE *dev) |
Trigger LCP lower down event. | |
void | IpcpOpen (NUTDEVICE *dev) |
Trigger IPCP open event. | |
void | IpcpClose (NUTDEVICE *dev) |
Trigger IPCP close event. | |
void | IpcpLowerUp (NUTDEVICE *dev) |
void | IpcpLowerDown (NUTDEVICE *dev) |
Variables | |
NUTDEVICE | devPpp |
Device information structure. | |
u_long | new_magic = 0x12345678 |
IFNET | ifn_ppp |
Network interface information structure. | |
NUTDEVICE | devPpp |
Device information structure. |
|
Handle incoming PPP frames. Splits the PPP frame into the data link and the network part. Then the frame is routed to the proper handler, based on the type field in the header.
|
|
Send PPP frame. Send a PPP frame of a given type using the specified device.
|
|
PPP state machine timeout thread. Handles timeouts for LCP and IPCP. |
|
Initialize the PPP state machine. Start the PPP timer thread, if not already running.
|
|
Trigger LCP open event. Enable the link to come up. Typically triggered by the upper layer, when it is enabled.
|
|
Trigger LCP close event. Disable the link.
|
|
Trigger LCP lower up event.
|
|
Trigger LCP lower down event.
|
|
Trigger IPCP open event. Link is allowed to come up.
|
|
Trigger IPCP close event. Disable the link. Cancel timeouts and either initiate close or possibly go directly to the PPPS_CLOSED state.
|
|
Device information structure. This is a virtual device driver has no underlying hardware and must not be registered. It will be initialized when the application calls NutNetIfConfig(). |
|
Initial value: { IFT_PPP, {0, 0, 0, 0, 0, 0} , 0, 0, 0, PPP_MRU, 0, 0, NutPppInput, 0, NutPppOutput }
|
|
Initial value: { 0, {'p', 'p', 'p', 0, 0, 0, 0, 0, 0} , IFTYP_NET, 0, 0, &ifn_ppp, &dcb_ppp, NutPppInit, NutPppIOCtl, NutPppRead, NutPppWrite, NutPppWrite_P, NutPppOpen, NutPppClose, 0 } This is a virtual device driver has no underlying hardware and must not be registered. It will be initialized when the application calls NutNetIfConfig(). |