… | |
… | |
130 | crypto_ctx *octx, *ictx; |
130 | crypto_ctx *octx, *ictx; |
131 | |
131 | |
132 | enum conf_node::connectmode connectmode; |
132 | enum conf_node::connectmode connectmode; |
133 | u8 prot_minor; // minor number of other side |
133 | u8 prot_minor; // minor number of other side |
134 | |
134 | |
135 | void reset_dstaddr (); |
135 | void reset_si (); |
|
|
136 | const sockinfo &forward_si (const sockinfo &si) const; |
136 | |
137 | |
137 | void shutdown (); |
138 | void shutdown (); |
138 | void reset_connection (); |
139 | void reset_connection (); |
139 | void establish_connection_cb (time_watcher &w); time_watcher establish_connection; |
140 | void establish_connection_cb (time_watcher &w); time_watcher establish_connection; |
140 | void rekey_cb (time_watcher &w); time_watcher rekey; // next rekying (actually current reset + reestablishing) |
141 | void rekey_cb (time_watcher &w); time_watcher rekey; // next rekying (actually current reset + reestablishing) |
… | |
… | |
145 | void send_connect_info (int rid, const sockinfo &rsi, u8 rprotocols); |
146 | void send_connect_info (int rid, const sockinfo &rsi, u8 rprotocols); |
146 | void send_reset (const sockinfo &dsi); |
147 | void send_reset (const sockinfo &dsi); |
147 | void send_ping (const sockinfo &dsi, u8 pong = 0); |
148 | void send_ping (const sockinfo &dsi, u8 pong = 0); |
148 | void send_data_packet (tap_packet *pkt, bool broadcast = false); |
149 | void send_data_packet (tap_packet *pkt, bool broadcast = false); |
149 | void inject_data_packet (tap_packet *pkt, bool broadcast = false); |
150 | void inject_data_packet (tap_packet *pkt, bool broadcast = false); |
|
|
151 | void inject_vpn_packet (vpn_packet *pkt, int tos = 0); // for forwarding |
150 | void connect_request (int id); |
152 | void connect_request (int id); |
151 | |
153 | |
152 | void recv_vpn_packet (vpn_packet *pkt, const sockinfo &rsi); |
154 | void recv_vpn_packet (vpn_packet *pkt, const sockinfo &rsi); |
153 | |
155 | |
154 | void script_node (); |
156 | void script_node (); |