--- gvpe/src/netcompat.h 2003/10/14 19:12:26 1.1 +++ gvpe/src/netcompat.h 2005/04/26 00:55:56 1.9 @@ -1,7 +1,10 @@ /* netcompat.h -- network compatibility header + Copyright (C) 2003 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. @@ -12,20 +15,21 @@ 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 - Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + along with gvpe; if not, write to the Free Software + Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef VPE_NETCOMPAT_H -#define VPE_NETCOMPAT_H - -#include "config.h" +#ifndef GVPE_NETCOMPAT_H +#define GVPE_NETCOMPAT_H +#include #include #ifdef HAVE_NETINET_IN_H # include #endif -#include +#ifdef HAVE_ARPA_INET_H +# include +#endif #include #ifdef HAVE_NETINET_IN_SYSTM_H # include @@ -34,8 +38,8 @@ # include #endif -#ifndef IPTOS_LOWCOST -# define IPTOS_LOWCOST 0x02 +#ifndef IPTOS_MINCOST +# define IPTOS_MINCOST 0x02 #endif #ifndef IPTOS_RELIABILITY # define IPTOS_RELIABILITY 0x04 @@ -59,6 +63,10 @@ # define IPPROTO_GRE 47 #endif +#ifndef ICMP_ECHOREPLY +# define ICMP_ECHOREPLY 0 +#endif + #ifndef HAVE_SOCKLEN_T typedef int socklen_t; #endif