Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't receive AVB audio packets on some machines #32

Open
MS71 opened this issue Oct 14, 2021 · 2 comments
Open

can't receive AVB audio packets on some machines #32

MS71 opened this issue Oct 14, 2021 · 2 comments

Comments

@MS71
Copy link

MS71 commented Oct 14, 2021

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?

@edersondisouza
Copy link
Collaborator

Hi @MS71,

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.

Hope that can help!

@zeerd
Copy link

zeerd commented Sep 27, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants