62a8208e44aaa563fa392df294b96281ab03630f
5 #define DEFAULT_PPPOE_AC_NAME "l2tpns-pppoe"
9 void process_pppoe_disc(uint8_t *pack
, int size
);
10 void process_pppoe_sess(uint8_t *pack
, int size
);
11 void pppoe_sess_send(const uint8_t *pack
, uint16_t l
, tunnelidt t
);
12 uint8_t *pppoe_makeppp(uint8_t *b
, int size
, uint8_t *p
, int l
, sessionidt s
, tunnelidt t
,
13 uint16_t mtype
, uint8_t prio
, bundleidt bid
, uint8_t mp_bits
);
14 void pppoe_shutdown_session(sessionidt s
);
15 void pppoe_forwardto_session_pppoe(uint8_t *pack
, int size
, sessionidt sess
, uint16_t proto
);
16 void pppoe_process_forward(uint8_t *pack
, int size
, in_addr_t addr
);
17 void pppoe_send_garp();
18 char * get_string_codepad(uint8_t codepad
);
20 extern int pppoediscfd
; // pppoe discovery socket
21 extern int pppoesessfd
; // pppoe session socket
23 #endif /* __PPPOE_H__ */