File nut/include/netinet/if_ppp.h


Included Files


Preprocessor definitions

#define _NETINET_IF_PPP_H_

#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

#define LCP_ASYNCMAP 2

#define LCP_AUTHTYPE 3

#define LCP_QUALITY 4

#define LCP_MAGICNUMBER 5

#define LCP_PCOMPRESSION 7

#define LCP_ACCOMPRESSION 8

#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 PPPHDR

typedef struct ppp_header PPPHDR
struct ppp_header  
   {  
      uint8_t address;  
      uint8_t control;  
      uint16_t prot_type;  
   }  

Typedef XCPHDR

typedef struct xcphdr XCPHDR
struct xcphdr  
   {  
      uint8_t xch_code;  
      uint8_t xch_id;  
      uint16_t xch_len;  
   }