aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Blundell <philb@gnu.org>1999-01-13 14:01:25 +0000
committerPhil Blundell <philb@gnu.org>1999-01-13 14:01:25 +0000
commit2b17cc4fa2b31cd75021fa5c0222969643b0452a (patch)
treeefc36045eb2c3491b86df2b8a813c6a165514e67 /iptunnel.c
parentFix IPv6 compilation problems. (diff)
downloadnet-tools-2b17cc4fa2b31cd75021fa5c0222969643b0452a.tar.gz
net-tools-2b17cc4fa2b31cd75021fa5c0222969643b0452a.tar.bz2
net-tools-2b17cc4fa2b31cd75021fa5c0222969643b0452a.zip
Provide local definition of IPPROTO_GRE to allow iptunnel
to build under glibc 2.0. Make it configurable whether iptunnel & ipmaddr are built, with the default being off. This seems to be necessary since making them work with 2.0 looks hard. Does it sound reasonable?
Diffstat (limited to 'iptunnel.c')
-rw-r--r--iptunnel.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/iptunnel.c b/iptunnel.c
index 254e873..aa90882 100644
--- a/iptunnel.c
+++ b/iptunnel.c
@@ -47,6 +47,11 @@
#undef GRE_VERSION
#define GRE_VERSION htons(0x0007)
+/* Old versions of glibc do not define this */
+#if __GLIBC__ == 2 && __GLIBC_MINOR__ == 0
+#define IPPROTO_GRE 47
+#endif
+
#include "utils.h"
static void usage(void) __attribute__((noreturn));