[FFmpeg-devel] [PATCH v2] avformat: enable UDP IPv6 multicast interface selection

Rémi Denis-Courmont remi at remlab.net
Thu Mar 21 09:26:15 EET 2024



Le 20 mars 2024 14:35:28 GMT+02:00, "Ignjatović, Lazar (RS)" <Lazar.Ignjatovic at cubic.com> a écrit :
> Specifying egress interface is done by setting the setsockopt(IPV6_MULTICAST_IF) to the value of the interface, not address. On the other hand v4 for the similar option setsockopt(IP_MULTICAST_IF) sets it by definig an address (not interface). Without setting IPV6_MULTICAST_IF to the appropriate interface, default interface is chosen. We want to have control over this, and I cant se how this can be achieved without knowing the interface id.

>For ingress IPv6 traffic, the way to filter on which interface is being listened on is by binding to a mcast addres, which has sin6_scope_id properly set.

Your MR makes even less sense for multicast. For multicast there is no local address to match to an interface. So you just have to have the interface specified explicitly in addition to the LL group address. This is true for both egress and ingress.


More information about the ffmpeg-devel mailing list