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