--- gvpe/src/conf.C 2003/04/13 00:35:46 1.15 +++ gvpe/src/conf.C 2003/10/14 03:22:09 1.16 @@ -34,7 +34,16 @@ #include #include -#include +#include +#ifdef ENABLE_ICMP +# ifdef HAVE_NETINET_IN_SYSTM_H +# include +# endif +# ifdef HAVE_NETINET_IP_H +# include +# endif +# include +#endif #include #include @@ -108,7 +117,9 @@ keepalive = DEFAULT_KEEPALIVE; llevel = L_INFO; ip_proto = IPPROTO_GRE; +#if ENABLE_ICMP icmp_type = ICMP_ECHOREPLY; +#endif default_node.udp_port = DEFAULT_UDPPORT; default_node.tcp_port = DEFAULT_UDPPORT; @@ -229,8 +240,11 @@ } else if (!strcmp (var, "ip-proto")) ip_proto = atoi (val); +#if ENABLE_ICMP + //TODO: error message else if (!strcmp (var, "icmp-type")) icmp_type = atoi (val); +#endif // per config else if (!strcmp (var, "node"))