… | |
… | |
136 | |
136 | |
137 | void reset_dstaddr (); |
137 | void reset_dstaddr (); |
138 | |
138 | |
139 | void shutdown (); |
139 | void shutdown (); |
140 | void reset_connection (); |
140 | void reset_connection (); |
141 | void establish_connection_cb (tstamp &ts); time_watcher establish_connection; |
141 | void establish_connection_cb (time_watcher &w); time_watcher establish_connection; |
142 | void rekey_cb (tstamp &ts); time_watcher rekey; // next rekying (actually current reset + reestablishing) |
142 | void rekey_cb (time_watcher &w); time_watcher rekey; // next rekying (actually current reset + reestablishing) |
143 | void keepalive_cb (tstamp &ts); time_watcher keepalive; // next keepalive probe |
143 | void keepalive_cb (time_watcher &w); time_watcher keepalive; // next keepalive probe |
144 | |
144 | |
145 | void send_auth_request (const sockinfo &si, bool initiate); |
145 | void send_auth_request (const sockinfo &si, bool initiate); |
146 | void send_auth_response (const sockinfo &si, const rsaid &id, const rsachallenge &chg); |
146 | void send_auth_response (const sockinfo &si, const rsaid &id, const rsachallenge &chg); |
147 | void send_connect_info (int rid, const sockinfo &rsi, u8 rprotocols); |
147 | void send_connect_info (int rid, const sockinfo &rsi, u8 rprotocols); |
148 | void send_reset (const sockinfo &dsi); |
148 | void send_reset (const sockinfo &dsi); |
… | |
… | |
153 | |
153 | |
154 | void send_vpn_packet (vpn_packet *pkt, const sockinfo &si, int tos = IPTOS_RELIABILITY); |
154 | void send_vpn_packet (vpn_packet *pkt, const sockinfo &si, int tos = IPTOS_RELIABILITY); |
155 | void recv_vpn_packet (vpn_packet *pkt, const sockinfo &rsi); |
155 | void recv_vpn_packet (vpn_packet *pkt, const sockinfo &rsi); |
156 | |
156 | |
157 | void script_node (); |
157 | void script_node (); |
158 | const char *script_node_up (int); |
158 | const char *script_node_up (); |
159 | const char *script_node_down (int); |
159 | const char *script_node_down (); |
160 | |
160 | |
161 | void dump_status (); |
161 | void dump_status (); |
162 | |
162 | |
163 | connection(struct vpn *vpn_); |
163 | connection(struct vpn *vpn_); |
164 | ~connection (); |
164 | ~connection (); |