Andrew Lunn fa55a7d745 seg6: export get_srh() for ICMP handling
An ICMP error message can contain in its message body part of an IPv6
packet which invoked the error. Such a packet might contain a segment
router header. Export get_srh() so the ICMP code can make use of it.

Since his changes the scope of the function from local to global, add
the seg6_ prefix to keep the namespace clean. And move it into seg6.c
so it is always available, not just when IPV6_SEG6_LWTUNNEL is
enabled.

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>
2022-01-04 12:17:35 +00:00
..
2021-06-11 14:48:50 +02:00
2019-07-27 14:23:48 -07:00
2021-10-13 09:41:37 -07:00
2021-12-02 12:21:11 +00:00
2021-10-13 09:41:37 -07:00
2021-08-05 13:27:50 +01:00
2021-06-11 14:48:50 +02:00
2020-12-16 11:01:04 -08:00