-
Notifications
You must be signed in to change notification settings - Fork 64
Description
Hi,
I have been running rtpdump
on my MacBook with an Internet connection over Wifi and an AES67 Audio over IP codec connected directly to an Ethernet adaptor, which is sending audio using RTP to a multicast address.
When both network interfaces are enabled, rtpdump
does not receive any packets. But if I disable the Wifi interface, it works fine. I don't remember this behaviour when I was last playing with multicast - maybe it is new behaviour in Mac OS? Or maybe I never had more than one network interface.
I started looking into it and found this Stack Overflow question:
https://stackoverflow.com/questions/46484186/receiving-multicast-udp-packets-from-a-single-network-interface-on-macos
So it looks like the following line in rtpdump.c, causes Mac OS to join the multicast group only on the default network interface?
mreq.imr_interface.s_addr = htonl(INADDR_ANY);
Would it make sense to add a command line option to rtpdump to specify the interface address or maybe the interface name to receive multicast packets on?
Thanks,
nick.