net: ip6mr: add RTM_GETROUTE netlink op
authorDavid Lamparter <equinox@diac24.net>
Tue, 12 Jul 2022 12:10:02 +0000 (14:10 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Jul 2022 12:53:48 +0000 (13:53 +0100)
commitd7c31cbde4bc6756d1a11747d2b99bc627001c86
treec533ea0f52e0e6f2722fe0f01ca60dbbb5dcddf2
parent00cf1fb3805f6eac2b751e0c2f03161a80347d67
net: ip6mr: add RTM_GETROUTE netlink op

The IPv6 multicast routing code previously implemented only the dump
variant of RTM_GETROUTE.  Implement single MFC item retrieval by copying
and adapting the respective IPv4 code.

Tested against FRRouting's IPv6 PIM stack.

Signed-off-by: David Lamparter <equinox@diac24.net>
Reviewed-by: Nikolay Aleksandrov <razor@blackwall.org>
Reviewed-by: David Ahern <dsahern@kernel.org>
Cc: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6mr.c