To receive multicast on my non-default NIC (dvb), I do the following:
- open socket (AF_INET, SOCK_DGRAM)
- join multicast address with IP_ADD_MEMBERSHIP on dvb interface
- bind a multicast address (note that a common mistake is to bind "0.0.0.0" and then receive even multicast on this socket that you are not interested in) and port
at this moment, the only way to obtain the necessary multicast packets is to add a rule to the routing table to reach the network in which the sender (another network) via dvb, as if the sender should respond to multicast; let's say a kind of sender multicast mode. Does anyone know what is going on? The problem annoys me because, in principle, I do not know the sender ip.
Gaetano mendola
source share