… | |
… | |
138 | pkt_queue data_queue, vpn_queue; |
138 | pkt_queue data_queue, vpn_queue; |
139 | |
139 | |
140 | crypto_ctx *octx, *ictx; |
140 | crypto_ctx *octx, *ictx; |
141 | |
141 | |
142 | #if ENABLE_DNS |
142 | #if ENABLE_DNS |
143 | sockinfo dns_si; // forwarder |
143 | struct dns_connection *dns; |
144 | |
144 | |
145 | vector<struct dns_rcv *> dns_rcvpq; int dns_rcvseq; // received packets |
|
|
146 | |
|
|
147 | struct byte_stream *dns_rcvdq; |
|
|
148 | struct byte_stream *dns_snddq; int dns_sndseq; //D |
|
|
149 | |
|
|
150 | void dnsv4_cb (time_watcher &w); time_watcher dnsv4_tw; |
|
|
151 | bool send_dnsv4_packet (vpn_packet *pkt, const sockinfo &si, int tos); |
145 | bool send_dnsv4_packet (vpn_packet *pkt, const sockinfo &si, int tos); |
152 | void dnsv4_receive_rep (struct dns_rcv *r); |
|
|
153 | #endif |
146 | #endif |
154 | |
147 | |
155 | enum conf_node::connectmode connectmode; |
148 | enum conf_node::connectmode connectmode; |
156 | u8 prot_minor; // minor number of other side |
149 | u8 prot_minor; // minor number of other side |
157 | |
150 | |