… | |
… | |
67 | void shutdown_all (); |
67 | void shutdown_all (); |
68 | |
68 | |
69 | void tap_ev (ev::io &w, int revents); ev::io tap_ev_watcher; |
69 | void tap_ev (ev::io &w, int revents); ev::io tap_ev_watcher; |
70 | void inject_data_packet (tap_packet *pkt, int dst); |
70 | void inject_data_packet (tap_packet *pkt, int dst); |
71 | |
71 | |
72 | void send_connect_request (int id); |
72 | void send_connect_request (connection *c); |
73 | |
73 | |
74 | void recv_vpn_packet (vpn_packet *pkt, const sockinfo &rsi); |
74 | void recv_vpn_packet (vpn_packet *pkt, const sockinfo &rsi); |
75 | bool send_vpn_packet (vpn_packet *pkt, const sockinfo &si, int tos = 0); |
75 | bool send_vpn_packet (vpn_packet *pkt, const sockinfo &si, int tos = 0); |
76 | |
76 | |
77 | #if ENABLE_TCP |
77 | #if ENABLE_TCP |