Documentation
Includes
netif/ppp/ppp_opts.h
#include "netif/ppp/ppp_opts.h"
Macros
Marco IPCP_H
#define IPCP_H
Marco CI_ADDRS
#define CI_ADDRS 1 /* IP Addresses */
Marco CI_COMPRESSTYPE
#define CI_COMPRESSTYPE 2 /* Compression Type */
Marco CI_ADDR
#define CI_ADDR 3
Marco CI_MS_DNS1
#define CI_MS_DNS1 129 /* Primary DNS value */
Marco CI_MS_DNS2
#define CI_MS_DNS2 131 /* Secondary DNS value */
Marco CI_MS_WINS1
#define CI_MS_WINS1 130 /* Primary WINS value */
Marco CI_MS_WINS2
#define CI_MS_WINS2 132 /* Secondary WINS value */
Marco MAX_STATES
#define MAX_STATES 16 /* from slcompress.h */
Marco IPCP_VJMODE_OLD
#define IPCP_VJMODE_OLD 1 /* "old" mode (option # = 0x0037) */
Marco IPCP_VJMODE_RFC1172
#define IPCP_VJMODE_RFC1172 2 /* "old-rfc"mode (option # = 0x002d) */
Marco IPCP_VJMODE_RFC1332
#define IPCP_VJMODE_RFC1332 3 /* "new-rfc"mode (option # = 0x002d, */
Marco IPCP_VJ_COMP
#define IPCP_VJ_COMP 2d /* current value for VJ compression option*/
Marco IPCP_VJ_COMP_OLD
#define IPCP_VJ_COMP_OLD 55 /* "old" (i.e, broken) value for VJ */
Functions
Vars
Variable char
char *ip_ntoa (u32_t);
Consts
Types
Typedefs
Typedef ipcp_options;
typedef struct ipcp_options {
unsigned int neg_addr :1; /* Negotiate IP Address? */
unsigned int old_addrs :1; /* Use old (IP-Addresses) option? */
unsigned int req_addr :1; /* Ask peer to send IP address? */
#if 0 /* UNUSED */
unsigned int default_route :1; /* Assign default route through interface? */
unsigned int replace_default_route :1; /* Replace default route through interface? */
#endif /* UNUSED */
#if 0 /* UNUSED - PROXY ARP */
unsigned int proxy_arp :1; /* Make proxy ARP entry for peer? */
#endif /* UNUSED - PROXY ARP */
#if VJ_SUPPORT
unsigned int neg_vj :1; /* Van Jacobson Compression? */
unsigned int old_vj :1; /* use old (short) form of VJ option? */
unsigned int cflag :1;
#endif /* VJ_SUPPORT */
unsigned int accept_local :1; /* accept peer's value for ouraddr */
unsigned int accept_remote :1; /* accept peer's value for hisaddr */
#if LWIP_DNS
unsigned int req_dns1 :1; /* Ask peer to send primary DNS address? */
unsigned int req_dns2 :1; /* Ask peer to send secondary DNS address? */
#endif /* LWIP_DNS */
u32_t ouraddr, hisaddr; /* Addresses in NETWORK BYTE ORDER */
#if LWIP_DNS
u32_t dnsaddr[2]; /* Primary and secondary MS DNS entries */
#endif /* LWIP_DNS */
#if 0 /* UNUSED - WINS */
u32_t winsaddr[2]; /* Primary and secondary MS WINS entries */
#endif /* UNUSED - WINS */
#if VJ_SUPPORT
u16_t vj_protocol; /* protocol value to use in VJ option */
u8_t maxslotindex; /* values for RFC1332 VJ compression neg. */
#endif /* VJ_SUPPORT */
} ipcp_options;