71 #if PPP_SUPPORT && PPPOE_SUPPORT 79 #ifdef PACK_STRUCT_USE_INCLUDES 90 #ifdef PACK_STRUCT_USE_INCLUDES 94 #ifdef PACK_STRUCT_USE_INCLUDES 103 #ifdef PACK_STRUCT_USE_INCLUDES 108 #define PPPOE_STATE_INITIAL 0 109 #define PPPOE_STATE_PADI_SENT 1 110 #define PPPOE_STATE_PADR_SENT 2 111 #define PPPOE_STATE_SESSION 3 113 #define PPPOE_STATE_PADO_SENT 1 115 #define PPPOE_HEADERLEN sizeof(struct pppoehdr) 116 #define PPPOE_VERTYPE 0x11 118 #define PPPOE_TAG_EOL 0x0000 119 #define PPPOE_TAG_SNAME 0x0101 120 #define PPPOE_TAG_ACNAME 0x0102 121 #define PPPOE_TAG_HUNIQUE 0x0103 122 #define PPPOE_TAG_ACCOOKIE 0x0104 123 #define PPPOE_TAG_VENDOR 0x0105 124 #define PPPOE_TAG_RELAYSID 0x0110 125 #define PPPOE_TAG_SNAME_ERR 0x0201 126 #define PPPOE_TAG_ACSYS_ERR 0x0202 127 #define PPPOE_TAG_GENERIC_ERR 0x0203 129 #define PPPOE_CODE_PADI 0x09 130 #define PPPOE_CODE_PADO 0x07 131 #define PPPOE_CODE_PADR 0x19 132 #define PPPOE_CODE_PADS 0x65 133 #define PPPOE_CODE_PADT 0xA7 135 #ifndef PPPOE_MAX_AC_COOKIE_LEN 136 #define PPPOE_MAX_AC_COOKIE_LEN 64 140 struct pppoe_softc *next;
141 struct netif *sc_ethif;
144 struct eth_addr sc_dest;
149 u8_t *sc_service_name;
150 u8_t *sc_concentrator_name;
152 u8_t sc_ac_cookie[PPPOE_MAX_AC_COOKIE_LEN];
153 u8_t sc_ac_cookie_len;
158 u8_t sc_padi_retried;
159 u8_t sc_padr_retried;
165 ppp_pcb *pppoe_create(
struct netif *pppif,
167 const char *service_name,
const char *concentrator_name,
168 ppp_link_status_cb_fn link_status_cb,
void *ctx_cb);
#define PACK_STRUCT_STRUCT
#define PACK_STRUCT_FLD_8(x)
#define PACK_STRUCT_FIELD(x)
#define PACK_STRUCT_BEGIN