Collaboration diagram for PPP:
Detailed Description
PPP Driver.
Function Documentation
|
|
Trigger IPCP close event.
Disable the link.
Cancel timeouts and either initiate close or possibly go directly to the PPPS_CLOSED state.
- Parameters:
-
| dev | Pointer to the NUTDEVICE structure of the PPP device. |
|
|
|
Trigger IPCP open event.
Link is allowed to come up. - Parameters:
-
| dev | Pointer to the NUTDEVICE structure of the PPP device. |
|
|
|
Trigger LCP close event.
Disable the link.
- Parameters:
-
| dev | Pointer to the NUTDEVICE structure of the PPP device. |
|
|
|
Trigger LCP lower down event.
- Parameters:
-
| dev | Pointer to the NUTDEVICE structure of the PPP device. |
|
|
|
Trigger LCP lower up event.
- Parameters:
-
| dev | Pointer to the NUTDEVICE structure of the PPP device. |
|
|
|
Trigger LCP open event.
Enable the link to come up. Typically triggered by the upper layer, when it is enabled.
- Parameters:
-
| dev | Pointer to the NUTDEVICE structure of the PPP device. |
|
| int NutPppInitStateMachine |
( |
NUTDEVICE * |
dev |
) |
|
|
|
|
Initialize the PPP state machine.
Start the PPP timer thread, if not already running.
- Parameters:
-
| dev | Pointer to the NUTDEVICE structure of the PPP device. |
- Returns:
- 0 on success, -1 otherwise.
|
|
|
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.
- Note:
- This routine is called by the device driver on incoming PPP frames. Applications typically do not call this function.
- Parameters:
-
| dev | Identifies the device that received the frame. |
| nb | Pointer to a network buffer structure containing the PPP frame. |
|
|
|
Send PPP frame.
Send a PPP frame of a given type using the specified device.
- Parameters:
-
| dev | Identifies the network device to use. |
| type | Type of this frame. |
| ha | Hardware address of the destination, ignored with PPP. |
| nb | Network buffer structure containing the packet to be sent. The structure must have been allocated by a previous call NutNetBufAlloc() and will be freed if this function returns with an error. |
- Returns:
- 0 on success, -1 in case of any errors.
|
|
|
PPP state machine timeout thread.
Handles timeouts for LCP and IPCP. |
Variable Documentation
|
|
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(). |
|
|
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(). |