mbox series

[resend,net-next,0/2] ip6mr: implement RTM_GETROUTE for single entry

Message ID 20220701075805.65978-1-equinox@diac24.net (mailing list archive)
Headers show
Series ip6mr: implement RTM_GETROUTE for single entry | expand

Message

David Lamparter July 1, 2022, 7:58 a.m. UTC
[resend with a slightly random pick of Cc:s - apologies if I ended up
choosing poorly]

The IPv6 multicast routing code implements RTM_GETROUTE, but only for a
dump request.  Retrieving a single MFC entry is not currently possible
via netlink.

While most of the data here can also be retrieved with SIOCGETSGCNT_IN6,
the lastused / RTA_EXPIRES is not included in the ioctl result (and we
need it in FRR.)

=> Implement single-entry RTM_GETROUTE by copying and adapting the IPv4
code.

Tested against FRRouting's (work-in-progress) IPv6 PIM implementation.

Cheers,


-David