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
I believe that we should use current MAX_MSG_ABSOLUTE constant only for parsing incoming packet. It is too big for standard network configuration as it will cause fragmentation which almost always is a problem. I think maximum generated packet size should be no more than 1452 = 1500 - 40 (ipv6 header) - 8 (udp header). For bigger packets there might be a special setting.
There seems to be some issues when using mdns-sd together with mdns-repeater to repeat across VLANs (see upstream issue in netmuxd, jkcoxson/netmuxd#62). I was expecting this to be somehow solved with the current issue and related MR, but I probably have a wrong understanding of the way mdns-sd works.
After update to v0.21.0, I still get errors such as, and it cannot detect my iPhone across VLANs.
[2026-08-14T15:17:47Z DEBUG mdns_sd::service_daemon] Invalid incoming DNS message: Invalid name compression: pointer 106 must be less than the start offset 100
Happy to open a dedicated issue if that's any better, or provide more logs or wireshark traces / run some tests to debug this further. Many thanks!
@Phyks thanks for the report. Yes, please open a dedicated issue. It is a failure of processing an incoming packet and might be unrelated to this original issue.
If you can capture the packets while the failure happens, that will be very helpful! Meantime, I have a theory about a corner case I will try to fix, and can submit a draft PR later for you to try.
Hi,
Many thanks for looking into this! I was waiting to be able to capture a packet trace for opening a dedicated issue, and was away from home and cannot do so properly over VPN. I’ll update asap. I’ll also try the referenced MR and report back!
Regarding the setup, it is a such:
iPhone connected over WiFi on a LAN VLAN.
server running netmuxd/mdns-sd wired on an IoT VLAN.
firewall is out of scope, I tried setting it to permissive
iPhone has been successfully paired once over USB before
If I switch the iPhone to be on a WiFi on the same VLAN as netmuxd/mdns-sd, it works fine. So the issue lies on the mdns repeating.
I used to have the exact same setup working against a custom built of usbmuxd (with extra network setup), before switching to netmuxd/mdns-sd, so the mdns-repeater process should be compatible and working.
Best
EDIT: I should have added that AirPlay is working perfectly fine across these VLANs (iPhone in LAN, speaker in IoT), so mdns-repeater setup is working.
EDIT2: mdns repeater service in VyOS is ultimately just a wrapper around avahi reflector:
Naively, it seems the issue might be coming from the last generated packet (length 414) which is bundling together a bunch of mdns, beyond what was on the incoming interface?
EDIT: Also tried by setting cache-entries-max=0 in Avahi reflector config, but did not change the
Invalid incoming DNS message: Invalid name compression: pointer 169 must be less than the start offset 125
Activity
keepsimple1 commentedon Jul 26, 2026
Sorry I missed this issue and just saw it. What it says makes sense to me. Let me take a closer look and see how we can improve it.
keepsimple1 commentedon Aug 8, 2026
PR merged.
Phyks commentedon Aug 14, 2026
Hi,
There seems to be some issues when using mdns-sd together with mdns-repeater to repeat across VLANs (see upstream issue in netmuxd, jkcoxson/netmuxd#62). I was expecting this to be somehow solved with the current issue and related MR, but I probably have a wrong understanding of the way mdns-sd works.
After update to v0.21.0, I still get errors such as, and it cannot detect my iPhone across VLANs.
Happy to open a dedicated issue if that's any better, or provide more logs or wireshark traces / run some tests to debug this further. Many thanks!
keepsimple1 commentedon Aug 15, 2026
@Phyks thanks for the report. Yes, please open a dedicated issue. It is a failure of processing an incoming packet and might be unrelated to this original issue.
If you can capture the packets while the failure happens, that will be very helpful! Meantime, I have a theory about a corner case I will try to fix, and can submit a draft PR later for you to try.
keepsimple1 commentedon Aug 16, 2026
@Phyks I've refactored
read_namefunction related to the error message you saw in PR #492 . Is it possible to try it out?Also, can you provide info about the mDNS repeater setup in your test? including where the iPhone is, where the server (responder) is, etc. Thanks!
Phyks commentedon Aug 17, 2026
Hi,
Many thanks for looking into this! I was waiting to be able to capture a packet trace for opening a dedicated issue, and was away from home and cannot do so properly over VPN. I’ll update asap. I’ll also try the referenced MR and report back!
Regarding the setup, it is a such:
If I switch the iPhone to be on a WiFi on the same VLAN as netmuxd/mdns-sd, it works fine. So the issue lies on the mdns repeating.
I used to have the exact same setup working against a custom built of usbmuxd (with extra network setup), before switching to netmuxd/mdns-sd, so the mdns-repeater process should be compatible and working.
Best
EDIT: I should have added that AirPlay is working perfectly fine across these VLANs (iPhone in LAN, speaker in IoT), so mdns-repeater setup is working.
EDIT2: mdns repeater service in VyOS is ultimately just a wrapper around avahi reflector:
Phyks commentedon Aug 17, 2026
Hmmm, below should be a hopefully relevant
tcpdump. Please let me know if my capture is not fitting:On LAN interface of the router:
On the incoming interface of the machine running mdns-sd/netmuxd (IoT VLAN, after mdns-repeater):
Naively, it seems the issue might be coming from the last generated packet (length 414) which is bundling together a bunch of mdns, beyond what was on the incoming interface?
EDIT: Also tried by setting
cache-entries-max=0in Avahi reflector config, but did not change theerrors.
keepsimple1 commentedon Aug 18, 2026
Thanks for the data! It is likely the case the PR has fixed (a legal name compression case).
Again, the log line
Invalid incoming DNS message: Invalid name compression: pointer 169 must be less than the start offset 125indicates that you're still running the old code. Could you please make sure running the PR branch and try it again? Thanks!
keepsimple1 commentedon Aug 30, 2026
To wrap it up, this PR comment confirms #492 fixes the new issue.