Skip to content

rtpdump with multiple network interfaces #49

@njh

Description

@njh

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions