Nut/OS  4.10.3
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.

Definition in file if_ppp.h.


Define Documentation

#define MAX_NAK_LOOPS   10

Definition at line 115 of file if_ppp.h.

#define MIN_LCPMRU   128

Definition at line 116 of file if_ppp.h.

#define PPP_MRU   1500

Definition at line 118 of file if_ppp.h.

#define PPP_IP   0x0021

Definition at line 124 of file if_ppp.h.

Referenced by NutDumpPpp(), NutIpOutput(), and NutPppInput().

#define PPP_AT   0x0029

Definition at line 125 of file if_ppp.h.

#define PPP_IPX   0x002b

Definition at line 126 of file if_ppp.h.

#define PPP_VJC_COMP   0x002d

Definition at line 127 of file if_ppp.h.

#define PPP_VJC_UNCOMP   0x002f

Definition at line 128 of file if_ppp.h.

#define PPP_IPV6   0x0057

Definition at line 129 of file if_ppp.h.

#define PPP_COMP   0x00fd

Definition at line 130 of file if_ppp.h.

#define PPP_IPCP   0x8021

Definition at line 131 of file if_ppp.h.

Referenced by NutDumpPpp(), NutIpcpOutput(), and NutPppInput().

#define PPP_ATCP   0x8029

Definition at line 132 of file if_ppp.h.

#define PPP_IPXCP   0x802b

Definition at line 133 of file if_ppp.h.

#define PPP_IPV6CP   0x8057

Definition at line 134 of file if_ppp.h.

#define PPP_CCP   0x80fd

Definition at line 135 of file if_ppp.h.

#define PPP_LCP   0xc021

Definition at line 136 of file if_ppp.h.

Referenced by NutDumpPpp(), NutLcpOutput(), and NutPppInput().

#define PPP_PAP   0xc023

Definition at line 137 of file if_ppp.h.

Referenced by NutDumpPpp(), NutPapOutput(), and NutPppInput().

#define PPP_LQR   0xc025

Definition at line 138 of file if_ppp.h.

Referenced by NutPppInput().

#define PPP_CHAP   0xc223

Definition at line 139 of file if_ppp.h.

Referenced by NutPppInput().

#define PPP_CBCP   0xc029

Definition at line 140 of file if_ppp.h.

#define LCP_MRU   1

Maximum Receive Unit.

Definition at line 146 of file if_ppp.h.

Referenced by NutDumpLcpOption().

#define LCP_ASYNCMAP   2

Async Control Character Map.

Definition at line 147 of file if_ppp.h.

Referenced by LcpTxConfReq(), and NutDumpLcpOption().

#define LCP_AUTHTYPE   3

Authentication Type.

Definition at line 148 of file if_ppp.h.

Referenced by NutDumpLcpOption().

#define LCP_QUALITY   4

Quality Protocol.

Definition at line 149 of file if_ppp.h.

#define LCP_MAGICNUMBER   5

Magic Number.

Definition at line 150 of file if_ppp.h.

Referenced by LcpTxConfReq(), and NutDumpLcpOption().

#define LCP_PCOMPRESSION   7

Protocol Field Compression.

Definition at line 151 of file if_ppp.h.

Referenced by NutDumpLcpOption().

#define LCP_ACCOMPRESSION   8

Address/Control Field Compression.

Definition at line 152 of file if_ppp.h.

Referenced by NutDumpLcpOption().

#define IPCP_ADDRS   1

Definition at line 157 of file if_ppp.h.

#define IPCP_COMPRESSTYPE   2

Definition at line 158 of file if_ppp.h.

Referenced by IpcpRxConfAck(), IpcpRxConfReq(), and NutDumpIpcpOption().

#define IPCP_ADDR   3

Definition at line 159 of file if_ppp.h.

Referenced by IpcpRxConfAck(), IpcpRxConfReq(), IpcpTxConfReq(), and NutDumpIpcpOption().

#define IPCP_MS_DNS1   129

Definition at line 161 of file if_ppp.h.

Referenced by IpcpRxConfAck(), IpcpRxConfReq(), IpcpTxConfReq(), and NutDumpIpcpOption().

#define IPCP_MS_WINS1   130

Definition at line 162 of file if_ppp.h.

#define IPCP_MS_DNS2   131

Definition at line 163 of file if_ppp.h.

Referenced by IpcpRxConfAck(), IpcpRxConfReq(), IpcpTxConfReq(), and NutDumpIpcpOption().

#define IPCP_MS_WINS2   132

Definition at line 164 of file if_ppp.h.


Typedef Documentation

PPP header type.

typedef struct xcphdr XCPHDR