ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/src/connection.h
(Generate patch)

Comparing gvpe/src/connection.h (file contents):
Revision 1.18 by pcg, Thu Mar 3 16:54:34 2005 UTC vs.
Revision 1.21 by pcg, Sat Mar 5 19:13:15 2005 UTC

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 145 void dnsv4_reset_connection ();
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);
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
175 void send_data_packet (tap_packet *pkt); 168 void send_data_packet (tap_packet *pkt);
176 169
177 void inject_data_packet (tap_packet *pkt, bool broadcast = false); 170 void inject_data_packet (tap_packet *pkt, bool broadcast = false);
178 void inject_vpn_packet (vpn_packet *pkt, int tos = 0); // for forwarding 171 void inject_vpn_packet (vpn_packet *pkt, int tos = 0); // for forwarding
179 172
173 void recv_vpn_packet (vpn_packet *pkt, const sockinfo &rsi);
180 void send_vpn_packet (vpn_packet *pkt, const sockinfo &si, int tos = 0); 174 void send_vpn_packet (vpn_packet *pkt, const sockinfo &si, int tos = 0);
181 void recv_vpn_packet (vpn_packet *pkt, const sockinfo &rsi);
182 175
183 void script_node (); 176 void script_node ();
184 const char *script_node_up (); 177 const char *script_node_up ();
185 const char *script_node_down (); 178 const char *script_node_down ();
186 179

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines