You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
i made a simple AVB audio listener derived from the aaf-listener.c example.
This small tool is working on some machines (e.g. my RPI3).
static int new_packet(int sk_fd, int timer_fd)
{
...
n = recv(sk_fd, pdu, PDU_SIZE, 0);
...
On some other machines (e.g. my RPI3+), it simply doesn't receive any packets.
I can solve this issue by starting a "tcpdump -i vlan.201" on a second terminal.
Any idea about the reason or how i can solve that?
The text was updated successfully, but these errors were encountered:
I'm not sure I got the point about tcpdump - do you mean that your application starts to work if you have tcpdump running alongside it? Or that tcpdump does get packets, but not your application?
How are you sending the data? Are you sending to a multicast address or specifically to some machine?
As you have it working on some machines, I'd suggest comparing some configurations - kernel version, what does ip maddress show on them, etc.
Seems it's a problem of packet_mreq.mr_type which is PACKET_MR_MULTICAST in the example code. tcpdump changed it to PACKET_MR_PROMISC and all programs that running at the same time will benefit from it.
Any way , it's a problem of multicast, I guess. Maybe the dest-MAC-address is not a multicast address?
Hi,
i made a simple AVB audio listener derived from the aaf-listener.c example.
This small tool is working on some machines (e.g. my RPI3).
static int new_packet(int sk_fd, int timer_fd)
{
...
n = recv(sk_fd, pdu, PDU_SIZE, 0);
...
On some other machines (e.g. my RPI3+), it simply doesn't receive any packets.
I can solve this issue by starting a "tcpdump -i vlan.201" on a second terminal.
Any idea about the reason or how i can solve that?
The text was updated successfully, but these errors were encountered: