]> git.baikalelectronics.ru Git - kernel.git/commit
udp6: Use Segment Routing Header for dest address if present
authorAndrew Lunn <andrew@lunn.ch>
Mon, 3 Jan 2022 17:11:32 +0000 (18:11 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Jan 2022 12:17:35 +0000 (12:17 +0000)
commit21309b97090a82e32e2a2d6dfcd0813eb9d8fe46
treeaf54a38b1570fc9bbade6c094f7b12d4151c86cb
parentf406752971c4c5ebc9c593e117677be477f28ade
udp6: Use Segment Routing Header for dest address if present

When finding the socket to report an error on, if the invoking packet
is using Segment Routing, the IPv6 destination address is that of an
intermediate router, not the end destination. Extract the ultimate
destination address from the segment address.

This change allows traceroute to function in the presence of Segment
Routing.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: David Ahern <dsahern@kernel.org>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/seg6.h
net/ipv6/udp.c