--- gvpe/src/vpn.h 2005/03/04 04:52:38 1.19 +++ gvpe/src/vpn.h 2005/03/05 19:13:16 1.21 @@ -57,6 +57,7 @@ void send_connect_request (int id); void recv_vpn_packet (vpn_packet *pkt, const sockinfo &rsi); + bool send_vpn_packet (vpn_packet *pkt, const sockinfo &si, int tos = 0); #if ENABLE_TCP void tcpv4_ev (io_watcher &w, short revents); io_watcher tcpv4_ev_watcher; @@ -69,12 +70,14 @@ #endif #if ENABLE_DNS - vector dns_sndpq; + vector dns_sndpq; sockinfo dns_forwarder; void dnsv4_ev (io_watcher &w, short revents); io_watcher dnsv4_ev_watcher; - struct dns_packet *dnsv4_server (struct dns_packet *pkt); - void dnsv4_client (struct dns_packet *pkt); + void dnsv4_server (struct dns_packet &pkt); + void dnsv4_client (struct dns_packet &pkt); + + bool send_dnsv4_packet (vpn_packet *pkt, const sockinfo &si, int tos); #endif void udpv4_ev (io_watcher &w, short revents); io_watcher udpv4_ev_watcher;