RTEMS CPU Kit with SuperCore
Data Structures | Macros | Typedefs | Enumerations
ppp_defs.h File Reference
#include <stdint.h>
Include dependency graph for ppp_defs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  pppstat
 
struct  vjstat
 
struct  ppp_stats
 
struct  compstat
 
struct  ppp_comp_stats
 
struct  ppp_idle
 

Macros

#define PPP_HDRLEN   4 /* octets for standard ppp header */
 
#define PPP_FCSLEN   2 /* octets for FCS */
 
#define PPP_MRU   1500 /* default MRU = max length of info field */
 
#define PPP_ADDRESS(p)   (((u_char *)(p))[0])
 
#define PPP_CONTROL(p)   (((u_char *)(p))[1])
 
#define PPP_PROTOCOL(p)   ((((u_char *)(p))[2] << 8) + ((u_char *)(p))[3])
 
#define PPP_ALLSTATIONS   0xff /* All-Stations broadcast address */
 
#define PPP_UI   0x03 /* Unnumbered Information */
 
#define PPP_FLAG   0x7e /* Flag Sequence */
 
#define PPP_ESCAPE   0x7d /* Asynchronous Control Escape */
 
#define PPP_TRANS   0x20 /* Asynchronous transparency modifier */
 
#define PPP_IP   0x21 /* Internet Protocol */
 
#define PPP_AT   0x29 /* AppleTalk Protocol */
 
#define PPP_IPX   0x2b /* IPX protocol */
 
#define PPP_VJC_COMP   0x2d /* VJ compressed TCP */
 
#define PPP_VJC_UNCOMP   0x2f /* VJ uncompressed TCP */
 
#define PPP_IPV6   0x57 /* Internet Protocol Version 6 */
 
#define PPP_COMP   0xfd /* compressed packet */
 
#define PPP_IPCP   0x8021 /* IP Control Protocol */
 
#define PPP_ATCP   0x8029 /* AppleTalk Control Protocol */
 
#define PPP_IPXCP   0x802b /* IPX Control Protocol */
 
#define PPP_IPV6CP   0x8057 /* IPv6 Control Protocol */
 
#define PPP_CCP   0x80fd /* Compression Control Protocol */
 
#define PPP_LCP   0xc021 /* Link Control Protocol */
 
#define PPP_PAP   0xc023 /* Password Authentication Protocol */
 
#define PPP_LQR   0xc025 /* Link Quality Report protocol */
 
#define PPP_CHAP   0xc223 /* Cryptographic Handshake Auth. Protocol */
 
#define PPP_CBCP   0xc029 /* Callback Control Protocol */
 
#define PPP_INITFCS   0xffff /* Initial FCS value */
 
#define PPP_GOODFCS   0xf0b8 /* Good final FCS value */
 
#define PPP_FCS(fcs, c)   (((fcs) >> 8) ^ fcstab[((fcs) ^ (c)) & 0xff])
 
#define __P(x)   ()
 

Typedefs

typedef uint32_t ext_accm[8]
 

Enumerations

enum  NPmode { NPMODE_PASS, NPMODE_DROP, NPMODE_ERROR, NPMODE_QUEUE }