Main Page   Modules   Alphabetical List   Data Structures   File List   Data Fields   Globals   Related Pages   Examples  

PAP
[PPP]

Password authentication protocol. More...

Functions

void NutPapInput (NUTDEVICE *dev, NETBUF *nb)
 Handle incoming PAP packets.

int NutPapOutput (NUTDEVICE *dev, u_char code, u_char id, NETBUF *nb)
 Send a PAP packet.


Detailed Description

Password authentication protocol.


Function Documentation

void NutPapInput NUTDEVICE   dev,
NETBUF   nb
 

Handle incoming PAP packets.

Parameters:
dev Identifies the device that received the packet.
nb Pointer to a network buffer structure containing the PAP packet.

int NutPapOutput NUTDEVICE   dev,
u_char    code,
u_char    id,
NETBUF   nb
 

Send a PAP packet.

Note:
Applications typically do not call this function.
Parameters:
dev Identifies the device to use.
nb Network buffer structure containing the packet to send or null if the packet contains no information. The structure must have been allocated by a previous call NutNetBufAlloc() and will be freed when this function returns.
Returns:
0 on success, -1 in case of any errors.


© 2000-2003 by egnite Software GmbH - visit http://www.ethernut.de/