IPCP
[PPP]


Detailed Description

IP control protocol.


Functions

void IpcpRxConfAck (NUTDEVICE *dev, u_char id, NETBUF *nb)
void IpcpRxConfReq (NUTDEVICE *dev, u_char id, NETBUF *nb)
void IpcpRxProtRej (NUTDEVICE *dev)
void IpcpRxTermAck (NUTDEVICE *dev, u_char id, NETBUF *nb)
void IpcpRxTermReq (NUTDEVICE *dev, u_char id, NETBUF *nb)
void IpcpTxConfReq (NUTDEVICE *dev, u_char id)
void NutIpcpInput (NUTDEVICE *dev, NETBUF *nb)
 Handle incoming IPCP packets.
int NutIpcpOutput (NUTDEVICE *dev, u_char code, u_char id, NETBUF *nb)
 Send a IPCP packet.


Function Documentation

void NutIpcpInput ( NUTDEVICE dev,
NETBUF nb 
)

Handle incoming IPCP packets.

Packets not destined to us or packets with unsupported address type or item length are silently discarded.

Note:
This routine is called by the Ethernet layer on incoming ARP packets. Applications typically do not call this function.
Parameters:
dev Identifies the device that received the packet.
nb Pointer to a network buffer structure containing the ARP packet.

int NutIpcpOutput ( NUTDEVICE dev,
u_char  code,
u_char  id,
NETBUF nb 
)

Send a IPCP packet.

Note:
Applications typically do not call this function.
Parameters:
dev Identifies the device to use.
code Type subcode.
id Exchange identifier.
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.


Generated on Tue Jan 23 21:12:26 2007 for BTnut System Software by doxygen 1.4.7