--- gvpe/src/vpn.C 2003/10/14 03:22:09 1.14 +++ gvpe/src/vpn.C 2003/10/14 19:59:16 1.16 @@ -26,28 +26,14 @@ #include #include -#include #include #include #include #include #include #include -#include -#include -#include -#ifdef HAVE_NETINET_IN_SYSTM_H -# include -#endif -#ifdef HAVE_NETINET_IP_H -# include -#endif -#ifdef HAVE_NETINET_TCP_H -# include -#endif -#if ENABLE_ICMP -# include -#endif + +#include "netcompat.h" #include "pidfile.h" @@ -55,10 +41,6 @@ #include "util.h" #include "vpn.h" -#if !defined(SOL_IP) && defined(IPPROTO_IP) -# define SOL_IP IPPROTO_IP -#endif - ///////////////////////////////////////////////////////////////////////////// const char *vpn::script_if_up () @@ -322,23 +304,6 @@ } #if ENABLE_ICMP -struct icmp_header { - u8 type; - u8 code; - u16 checksum; - union { - struct { - u16 id; - u16 sequence; - } echo; - u32 gateway; - struct { - u16 unused; - u16 mtu; - } frag; - } un; -}; - bool vpn::send_icmpv4_packet (vpn_packet *pkt, const sockinfo &si, int tos) {