diff -Nru iputils-orig/ping6.c iputils/ping6.c --- iputils-orig/ping6.c 2005-12-05 18:06:39.000000000 +0100 +++ iputils/ping6.c 2005-12-05 18:06:49.000000000 +0100 @@ -101,6 +101,20 @@ #define HAVE_SIN6_SCOPEID 1 #endif +/* Begin hack KERNEL >= 2.6.1x.x */ +#define IPV6_ADDRFORM 1 +#define IPV6_PKTINFO 2 +#define IPV6_HOPOPTS 3 +#define IPV6_DSTOPTS 4 +#define IPV6_RTHDR 5 +#define IPV6_PKTOPTIONS 6 +#define IPV6_CHECKSUM 7 +#define IPV6_HOPLIMIT 8 +#define IPV6_NEXTHOP 9 +#define IPV6_FLOWINFO 11 +/* End hack */ + + __u32 flowlabel; __u32 tclass; diff -Nru iputils-orig/tracepath6.c iputils/tracepath6.c --- iputils-orig/tracepath6.c 2005-12-05 18:06:39.000000000 +0100 +++ iputils/tracepath6.c 2005-12-05 18:06:55.000000000 +0100 @@ -25,6 +25,19 @@ #include #include +/* Begin hack KERNEL >= 2.6.1x.x */ +#define IPV6_ADDRFORM 1 +#define IPV6_PKTINFO 2 +#define IPV6_HOPOPTS 3 +#define IPV6_DSTOPTS 4 +#define IPV6_RTHDR 5 +#define IPV6_PKTOPTIONS 6 +#define IPV6_CHECKSUM 7 +#define IPV6_HOPLIMIT 8 +#define IPV6_NEXTHOP 9 +#define IPV6_FLOWINFO 11 +/* End hack */ + int overhead = 48; int mtu = 128000; int hops_to = -1;