… | |
… | |
53 | void inject_data_packet (tap_packet *pkt, int dst); |
53 | void inject_data_packet (tap_packet *pkt, int dst); |
54 | |
54 | |
55 | void send_connect_request (int id); |
55 | void send_connect_request (int id); |
56 | |
56 | |
57 | void recv_vpn_packet (vpn_packet *pkt, const sockinfo &rsi); |
57 | void recv_vpn_packet (vpn_packet *pkt, const sockinfo &rsi); |
58 | bool send_vpn_packet (vpn_packet *pkt, const sockinfo &si, int tos); |
|
|
59 | |
58 | |
60 | #if ENABLE_TCP |
59 | #if ENABLE_TCP |
61 | void tcpv4_ev (io_watcher &w, short revents); io_watcher tcpv4_ev_watcher; |
60 | void tcpv4_ev (io_watcher &w, short revents); io_watcher tcpv4_ev_watcher; |
62 | bool send_tcpv4_packet (vpn_packet *pkt, const sockinfo &si, int tos); |
61 | bool send_tcpv4_packet (vpn_packet *pkt, const sockinfo &si, int tos); |
63 | #endif |
62 | #endif |
… | |
… | |
66 | void icmpv4_ev (io_watcher &w, short revents); io_watcher icmpv4_ev_watcher; |
65 | void icmpv4_ev (io_watcher &w, short revents); io_watcher icmpv4_ev_watcher; |
67 | bool send_icmpv4_packet (vpn_packet *pkt, const sockinfo &si, int tos); |
66 | bool send_icmpv4_packet (vpn_packet *pkt, const sockinfo &si, int tos); |
68 | #endif |
67 | #endif |
69 | |
68 | |
70 | #if ENABLE_DNS |
69 | #if ENABLE_DNS |
|
|
70 | vector<struct dns_rep *> dns_rcvpq; |
|
|
71 | vector<struct dns_req *> dns_sndpq; |
|
|
72 | |
71 | void dnsv4_ev (io_watcher &w, short revents); io_watcher dnsv4_ev_watcher; |
73 | void dnsv4_ev (io_watcher &w, short revents); io_watcher dnsv4_ev_watcher; |
72 | bool send_dnsv4_packet (vpn_packet *pkt, const sockinfo &si, int tos); |
74 | struct dns_packet *dnsv4_server (struct dns_packet *pkt); |
|
|
75 | void dnsv4_client (struct dns_packet *pkt); |
73 | #endif |
76 | #endif |
74 | |
77 | |
75 | void udpv4_ev (io_watcher &w, short revents); io_watcher udpv4_ev_watcher; |
78 | void udpv4_ev (io_watcher &w, short revents); io_watcher udpv4_ev_watcher; |
76 | bool send_udpv4_packet (vpn_packet *pkt, const sockinfo &si, int tos); |
79 | bool send_udpv4_packet (vpn_packet *pkt, const sockinfo &si, int tos); |
77 | |
80 | |