--- gvpe/src/connection.h 2005/03/04 04:52:38 1.19 +++ gvpe/src/connection.h 2005/04/26 00:55:56 1.25 @@ -16,11 +16,11 @@ You should have received a copy of the GNU General Public License along with gvpe; if not, write to the Free Software - Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef VPE_CONNECTION_H__ -#define VPE_CONNECTION_H__ +#ifndef GVPE_CONNECTION_H__ +#define GVPE_CONNECTION_H__ #include @@ -142,7 +142,7 @@ #if ENABLE_DNS struct dns_connection *dns; - bool send_dnsv4_packet (vpn_packet *pkt, const sockinfo &si, int tos); + void dnsv4_reset_connection (); #endif enum conf_node::connectmode connectmode; @@ -170,10 +170,11 @@ void inject_data_packet (tap_packet *pkt, bool broadcast = false); void inject_vpn_packet (vpn_packet *pkt, int tos = 0); // for forwarding - void send_vpn_packet (vpn_packet *pkt, const sockinfo &si, int tos = 0); void recv_vpn_packet (vpn_packet *pkt, const sockinfo &rsi); + void send_vpn_packet (vpn_packet *pkt, const sockinfo &si, int tos = 0); - void script_node (); + void script_init_env (const char *ext); + void script_init_connect_env (); const char *script_node_up (); const char *script_node_down ();