threadshare: udp: add property multicast-iface
Similar to the non threadshare counterparts, the ts-udpsink can accept only one multicast interface and the ts-udpsrc can accept a list of interfaces to be listening on for the multicast.
Use the getifaddrs
crate to get the available network interfaces and filter the desired interfaces from the available interfaces
Reuse a custom api written for PTP helper to join and leave multicast group for IPv4 based addresses. Continue to use the UdpSocket
crate's _multicast_v6
to join/leave an IPv6 multicast group
Edited by Taruntej Kanakamalla