net: reallocate new socket option number for IPV6_AUTOFLOWLABEL
Subsystems (3)
Pablo Neira Ayuso
maintainerPATCH v2 1/1 net: reallocate new socket option number for IPV6_AUTOFLOWLABEL
cb1ce2e ("ipv6: Implement automatic flow label generation on transmit") accidentally uses socket option 64, which is already used by ip6tables:
IP6T_SO_SET_REPLACE / IP6T_SO_GET_INFO 64
IP6T_SO_SET_ADD_COUNTERS / IP6T_SO_GET_ENTRIES 65
There is comment include/uapi/linux/in6.h warning about that.
Allocate 70 for this, which seems to be unused instead.
--- include/uapi/linux/in6.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/uapi/linux/in6.h +1 -1
@@ -233,7 +233,6 @@ struct in6_flowlabel_req {#if 0 /* not yet */ #define IPV6_USE_MIN_MTU 63#endif -#define IPV6_AUTOFLOWLABEL 64/* * Netfilter (1)
@@ -262,6 +261,7 @@ struct in6_flowlabel_req {* IP6T_SO_ORIGINAL_DST 80 */ +#define IPV6_AUTOFLOWLABEL 70/* RFC5014: Source address selection */ #define IPV6_ADDR_PREFERENCES 72
Signature · 1 line
1.7.10.4
From: Pablo Neira Ayuso <[email protected]>
Date: Thu, 7 Aug 2014 00:17:09 +0200
Quoted 6 lines
cb1ce2e ("ipv6: Implement automatic flow label generation on transmit") accidentally uses socket option 64, which is already used by ip6tables:
IP6T_SO_SET_REPLACE/IP6T_SO_GET_INFO64
IP6T_SO_SET_ADD_COUNTERS/IP6T_SO_GET_ENTRIES65
Quoted 6 lines
There is comment
include/uapi/linux/in6.hwarning about that.Allocate 70 for this, which seems to be unused instead.
Cc Tom Herbert <[email protected]>Signed-off-by Pablo Neira Ayuso <[email protected]>
Applied, thanks Pablo.
The way we maintain this number space seems very error prone, FWIW.
Quoted 6 lines · Pablo Neira Ayuso
cb1ce2e ("ipv6: Implement automatic flow label generation on transmit") accidentally uses socket option 64, which is already used by ip6tables:
IP6T_SO_SET_REPLACE/IP6T_SO_GET_INFO64
IP6T_SO_SET_ADD_COUNTERS/IP6T_SO_GET_ENTRIES65
Quoted 6 lines
There is comment
include/uapi/linux/in6.hwarning about that.Allocate 70 for this, which seems to be unused instead.
Cc Tom Herbert <[email protected]>Signed-off-by Pablo Neira Ayuso <[email protected]>
Just tested this, ip6tables works fine now.
thanks Pablo.
Dave