dankamongmen / libnetstack

Small library around rtnetlink to track networking stack elements
https://nick-black.com/dankwiki/index.php/Libnetstack
Apache License 2.0
10 stars 0 forks source link

Add support for multicast routes #19

Closed dankamongmen closed 2 years ago

dankamongmen commented 5 years ago

See ip-mroute(8) and #18

dankamongmen commented 2 years ago

huh. it looks like ip maddr is just reading /proc/net/dev_mcast and /proc/net/igmp...but there's also RTM_GETMULTICAST...

dankamongmen commented 2 years ago

it looks like we're already picking these up, actually?

...
N   3 [IPv4] 224.0.0.22 01:00:5e:00:00:16
N   1 [IPv4] 0.0.0.0 00:00:00:00:00:00
N   3 [IPv4] 192.168.88.111 00:17:88:0a:41:f0
N   3 [IPv4] 239.255.255.250 01:00:5e:7f:ff:fa
N   5 [IPv4] 224.0.0.22 01:00:5e:00:00:16
...
R [IPv6] multicast ff00::/8 kernel metric 0 prio 256 in 0 out 4
R [IPv6] multicast ff00::/8 kernel metric 0 prio 256 in 0 out 3

so i guess this is done?