2 /* $Id: l2tplac.h,v 1.0 2012-07-01 14:49:28 fendo Exp $ */
7 #define L2TPLACPORT 65432 // L2TP port for Remote LNS
9 #define MAXRLNSTUNNEL 201
11 typedef uint16_t confrlnsidt
;
14 void lac_initremotelnsdata();
15 int lac_session_forward(uint8_t *buf
, int len
, sessionidt sess
, uint16_t proto
, in_addr_t s_addr
, int sin_port
, uint16_t indexudpfd
);
16 int lac_conf_forwardtoremotelns(sessionidt s
, char * puser
);
17 void lac_calc_rlns_auth(tunnelidt t
, uint8_t id
, uint8_t *out
);
18 int lac_addremotelns(char *mask
, char *IP_RemoteLNS
, char *Port_RemoteLNS
, char *SecretRemoteLNS
);
20 /* Function for Tunnels creating from radius reponses */
21 void lac_reset_rad_tag_tunnel_ctxt();
22 void lac_set_rad_tag_tunnel_type(uint8_t tag
, uint32_t tunnel_type
);
23 void lac_set_rad_tag_tunnel_medium_type(uint8_t tag
, uint32_t tunnel_medium_type
);
24 void lac_set_rad_tag_tunnel_serv_endpt(uint8_t tag
, char *tunnel_server_endpoint
);
25 void lac_set_rad_tag_tunnel_password(uint8_t tag
, char *tunnel_password
);
26 void lac_set_rad_tag_tunnel_assignment_id(uint8_t tag
, char *tunnel_assignment_id
);
27 void lac_save_rad_tag_tunnels(sessionidt s
);
28 int lac_rad_select_assignment_id(sessionidt s
, char *assignment_id
);
30 int lac_rad_forwardtoremotelns(sessionidt s
, char *assignment_id
, char * puser
);
32 int lac_cli_show_remotelns(confrlnsidt idrlns
, char *strout
);
33 #endif /* __L2TPLAC_H__ */