Nut/OS  5.0.5
API Reference
if_ppp.h File Reference

PPP interface definitions. More...

#include <sys/types.h>
#include <net/if_var.h>
Include dependency graph for if_ppp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ppp_header
struct  xcphdr

Defines

#define MAX_NAK_LOOPS   10
#define MIN_LCPMRU   128
#define PPP_MRU   1500
#define PPP_IP   0x0021
#define PPP_AT   0x0029
#define PPP_IPX   0x002b
#define PPP_VJC_COMP   0x002d
#define PPP_VJC_UNCOMP   0x002f
#define PPP_IPV6   0x0057
#define PPP_COMP   0x00fd
#define PPP_IPCP   0x8021
#define PPP_ATCP   0x8029
#define PPP_IPXCP   0x802b
#define PPP_IPV6CP   0x8057
#define PPP_CCP   0x80fd
#define PPP_LCP   0xc021
#define PPP_PAP   0xc023
#define PPP_LQR   0xc025
#define PPP_CHAP   0xc223
#define PPP_CBCP   0xc029
#define LCP_MRU   1
 Maximum Receive Unit.
#define LCP_ASYNCMAP   2
 Async Control Character Map.
#define LCP_AUTHTYPE   3
 Authentication Type.
#define LCP_QUALITY   4
 Quality Protocol.
#define LCP_MAGICNUMBER   5
 Magic Number.
#define LCP_PCOMPRESSION   7
 Protocol Field Compression.
#define LCP_ACCOMPRESSION   8
 Address/Control Field Compression.
#define IPCP_ADDRS   1
#define IPCP_COMPRESSTYPE   2
#define IPCP_ADDR   3
#define IPCP_MS_DNS1   129
#define IPCP_MS_WINS1   130
#define IPCP_MS_DNS2   131
#define IPCP_MS_WINS2   132

Typedefs

typedef struct ppp_header PPPHDR
 PPP header type.
typedef struct xcphdr XCPHDR

Functions

void NutLcpInput (NUTDEVICE *dev, NETBUF *nb)
 Handle incoming LCP packets.
int NutLcpOutput (NUTDEVICE *dev, uint8_t code, uint8_t id, NETBUF *nb)
 Send a LCP packet.
void LcpTxConfReq (NUTDEVICE *dev, uint8_t id, uint8_t rejected)
void LcpTxProtRej (NUTDEVICE *dev, uint16_t protocol, NETBUF *nb)
void NutPapInput (NUTDEVICE *dev, NETBUF *nb)
 Handle incoming PAP packets.
int NutPapOutput (NUTDEVICE *dev, uint8_t code, uint8_t id, NETBUF *nb)
 Send a PAP packet.
void PapTxAuthReq (NUTDEVICE *dev, uint8_t id)
void NutIpcpInput (NUTDEVICE *dev, NETBUF *nb)
 Handle incoming IPCP packets.
int NutIpcpOutput (NUTDEVICE *dev, uint8_t code, uint8_t id, NETBUF *nb)
 Send a IPCP packet.
void IpcpTxConfReq (NUTDEVICE *dev, uint8_t id)

Detailed Description

PPP interface definitions.


Define Documentation

#define MAX_NAK_LOOPS   10
#define MIN_LCPMRU   128
#define PPP_MRU   1500
#define PPP_IP   0x0021
#define PPP_AT   0x0029
#define PPP_IPX   0x002b
#define PPP_VJC_COMP   0x002d
#define PPP_VJC_UNCOMP   0x002f
#define PPP_IPV6   0x0057
#define PPP_COMP   0x00fd
#define PPP_IPCP   0x8021
#define PPP_ATCP   0x8029
#define PPP_IPXCP   0x802b
#define PPP_IPV6CP   0x8057
#define PPP_CCP   0x80fd
#define PPP_LCP   0xc021
#define PPP_PAP   0xc023
#define PPP_LQR   0xc025

Referenced by NutPppInput().

#define PPP_CHAP   0xc223

Referenced by NutPppInput().

#define PPP_CBCP   0xc029
#define LCP_MRU   1

Maximum Receive Unit.

Referenced by NutDumpLcpOption().

#define LCP_ASYNCMAP   2

Async Control Character Map.

Referenced by LcpTxConfReq(), and NutDumpLcpOption().

#define LCP_AUTHTYPE   3

Authentication Type.

Referenced by NutDumpLcpOption().

#define LCP_QUALITY   4

Quality Protocol.

#define LCP_MAGICNUMBER   5

Magic Number.

Referenced by LcpTxConfReq(), and NutDumpLcpOption().

#define LCP_PCOMPRESSION   7

Protocol Field Compression.

Referenced by NutDumpLcpOption().

#define LCP_ACCOMPRESSION   8

Address/Control Field Compression.

Referenced by NutDumpLcpOption().

#define IPCP_ADDRS   1
#define IPCP_COMPRESSTYPE   2
#define IPCP_ADDR   3
#define IPCP_MS_DNS1   129
#define IPCP_MS_WINS1   130
#define IPCP_MS_DNS2   131
#define IPCP_MS_WINS2   132

Typedef Documentation

PPP header type.

typedef struct xcphdr XCPHDR