From e2b75a67395fbbdd36bb0bceaea2465a2a1fa172 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sat, 1 Jan 2022 12:35:23 +0100 Subject: [PATCH] pfinet: Fix IPV6 option values pfinet is providing the RFC2292 IPv6 options interface, not the RFC3542 interface, so we have to use the old option numbers here. --- pfinet/glue-include/linux/in6.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pfinet/glue-include/linux/in6.h b/pfinet/glue-include/linux/in6.h index c3e5dfc4b..f755e4490 100644 --- a/pfinet/glue-include/linux/in6.h +++ b/pfinet/glue-include/linux/in6.h @@ -86,13 +86,19 @@ struct in6_flowlabel_req * IPV6 socket options */ -#define IPV6_ADDRFORM 1 +// Note: pfinet is providing the RFC2292 interface, not the RFC3542 interface +//#define IPV6_ADDRFORM 1 +#undef IPV6_PKTINFO #define IPV6_PKTINFO 2 +#undef IPV6_HOPOPTS #define IPV6_HOPOPTS 3 +#undef IPV6_DSTOPTS #define IPV6_DSTOPTS 4 +#undef IPV6_RTHDR #define IPV6_RTHDR 5 #define IPV6_PKTOPTIONS 6 -#define IPV6_CHECKSUM 7 +//#define IPV6_CHECKSUM 7 +#undef IPV6_HOPLIMIT #define IPV6_HOPLIMIT 8 #define IPV6_NEXTHOP 9 #define IPV6_AUTHHDR 10