--- gvpe/src/vpn.h 2004/04/02 14:42:45 1.14 +++ gvpe/src/vpn.h 2005/03/03 16:54:34 1.18 @@ -1,8 +1,10 @@ /* vpn.h -- header for vpn.C - Copyright (C) 2003-2004 Marc Lehmann + Copyright (C) 2003-2005 Marc Lehmann - This program is free software; you can redistribute it and/or modify + This file is part of GVPE. + + GVPE is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. @@ -13,7 +15,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software + along with gvpe; if not, write to the Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ @@ -55,7 +57,6 @@ 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); #if ENABLE_TCP void tcpv4_ev (io_watcher &w, short revents); io_watcher tcpv4_ev_watcher; @@ -68,8 +69,11 @@ #endif #if ENABLE_DNS + vector dns_sndpq; + void dnsv4_ev (io_watcher &w, short revents); io_watcher dnsv4_ev_watcher; - bool send_dnsv4_packet (vpn_packet *pkt, const sockinfo &si, int tos); + struct dns_packet *dnsv4_server (struct dns_packet *pkt); + void dnsv4_client (struct dns_packet *pkt); #endif void udpv4_ev (io_watcher &w, short revents); io_watcher udpv4_ev_watcher;