Update changelog.
[l2tpns.git] / pppoe.h
1
2 #ifndef __PPPOE_H__
3 #define __PPPOE_H__
4
5 #define DEFAULT_PPPOE_AC_NAME "l2tpns-pppoe"
6
7 // pppoe.c
8 void init_pppoe(void);
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 uint8_t *opt_pppoe_makeppp(uint8_t *p, int l, sessionidt s, tunnelidt t, uint16_t mtype, uint8_t prio, bundleidt bid, uint8_t mp_bits);
15 void pppoe_shutdown_session(sessionidt s);
16 void pppoe_forwardto_session_pppoe(uint8_t *pack, int size, sessionidt sess, uint16_t proto);
17 void pppoe_process_forward(uint8_t *pack, int size, in_addr_t addr);
18 void pppoe_send_garp();
19 char * get_string_codepad(uint8_t codepad);
20
21 extern int pppoediscfd; // pppoe discovery socket
22 extern int pppoesessfd; // pppoe session socket
23
24 #endif /* __PPPOE_H__ */