avb: fix MAAP packet send

Actually send the ehaternet header data as well. The send was skipping
the ehternet header and reading past the packet end.
This commit is contained in:
Wim Taymans 2026-05-04 10:21:41 +02:00
parent 67b70c8d23
commit 17723bc00d

View file

@ -163,7 +163,7 @@ static int send_packet(struct maap *maap, uint64_t now,
maap_message_debug(maap, p);
}
if (send(maap->source->fd, p, sizeof(*h) + sizeof(*p), 0) < 0) {
if (send(maap->source->fd, h, sizeof(*h) + sizeof(*p), 0) < 0) {
res = -errno;
pw_log_warn("got send error: %m");
}