summaryrefslogtreecommitdiff
path: root/net/ipv6/ipv6_sockglue.c
diff options
context:
space:
mode:
authorSabrina Dubroca <sd@queasysnail.net>2017-04-25 16:56:50 +0300
committerDavid S. Miller <davem@davemloft.net>2017-04-25 20:59:24 +0300
commitec9c4215fef37da6668c4105f5ad3891aaa6527a (patch)
treed04bf4b4f4a7242797cce58619723eeacfac2a66 /net/ipv6/ipv6_sockglue.c
parentc8fcd133eabcbbf51a6ecfd12a975cace8877d5a (diff)
downloadlinux-ec9c4215fef37da6668c4105f5ad3891aaa6527a.tar.xz
ipv6: fix source routing
Commit a149e7c7ce81 ("ipv6: sr: add support for SRH injection through setsockopt") introduced handling of IPV6_SRCRT_TYPE_4, but at the same time restricted it to only IPV6_SRCRT_TYPE_0 and IPV6_SRCRT_TYPE_4. Previously, ipv6_push_exthdr() and fl6_update_dst() would also handle other values (ie STRICT and TYPE_2). Restore previous source routing behavior, by handling IPV6_SRCRT_STRICT and IPV6_SRCRT_TYPE_2 the same way as IPV6_SRCRT_TYPE_0 in ipv6_push_exthdr() and fl6_update_dst(). Fixes: a149e7c7ce81 ("ipv6: sr: add support for SRH injection through setsockopt") Signed-off-by: Sabrina Dubroca <sd@queasysnail.net> Reviewed-by: Hannes Frederic Sowa <hannes@stressinduktion.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/ipv6_sockglue.c')
0 files changed, 0 insertions, 0 deletions