Skip to content

Issues with using a multicast IP for a service #179

@chiefnoah

Description

@chiefnoah

I'm working on an application that uses multicast for efficiently sending large amounts of ephemeral data. A sanitized example of what I'm trying to attempt can be found here, but in short it appears there's an issue with responding to queries for a service (and A/AAAA record) associated with a multicast address.

It's possible I'm just using the library wrong, so I apologize in advance if that is the case.

I suspect this log message, on the half of my application that registers a service is potentially related:

[2024-03-01T03:58:29Z DEBUG mdns_sd::dns_parser] read_questions: 1
[2024-03-01T03:58:29Z DEBUG mdns_sd::dns_parser] read_others: 0
[2024-03-01T03:58:29Z DEBUG mdns_sd::service_daemon] question: DnsQuestion { entry: DnsEntry { name: "_datablaster._udp.local.", ty: 12, class: 1, unique: false } }
[2024-03-01T03:58:29Z DEBUG mdns_sd::dns_parser] No addrs on LAN of intf Interface { name: "enp1s0", addr: V4(Ifv4Addr { ip: 192.168.1.215, netmask: 255.255.255.0, broadcast: Some(192.168.1.255) }), index: Some(2) }
[2024-03-01T03:58:33Z DEBUG mdns_sd::service_daemon] event received with key 1
[2024-03-01T03:58:33Z DEBUG mdns_sd::service_daemon] received 148 bytes

I'll admit, I'm not the most familiar with the details of mDNS/DNS-SD, so in the meantime I'm going to both dig into the RFCs and the code to make sure I'm not messing up. Otherwise some direction would be greatly appreciated!

If this does end up being a bug, I'm happy to send patches.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions