Repository navigation
Releases
v0.22.1
This release has bug fixes and one new feature.
New features
ServiceInfo::set_host_ttl()andset_other_ttl()are now public, for protocols that recommend a shorter TTL than the RFC 6762 defaults. The defaults are unchanged. (#556)
What's Changed
- fix: keep escaped dots inside first label in name_change/hostname_change (fix #546) by @Sealdot in #547
- Fix/question class matching by @thankgodode in #553
- test: send PTR goodbye via new_multicast_socket and remove _new_socket_bind by @keepsimple1 in #555
- fix: don't leave the IPv4 mDNS group by a vanished address by @WillBux in #543
- fix: keep renamed first labels within 63 bytes on the wire by @Sealdot in #554
- feat: make ServiceInfo TTL setters public by @PoHsuanLai in #556
- fix: ignore unicast queries from off-link sources (RFC 6762 section 5.5) by @AlixANNERAUD in #559
- refactor: use the existing helper to detect IPv6 link-local by @keepsimple1 in #562
- fix: check for off-link query sources in handle_query by @keepsimple1 in #563
- prepare for a new release 0.22.1 by @keepsimple1 in #564
New Contributors
Welcome and thank you!
- @thankgodode made their first contribution in #553
- @WillBux made their first contribution in #543
- @PoHsuanLai made their first contribution in #556
- @AlixANNERAUD made their first contribution in #559
Full Changelog: v0.22.0...v0.22.1
v0.22.0
Breaking changes
DaemonStatus::Runningis nowDaemonStatus::Running(RunningState). (#524)ServiceDaemon::new()andnew_with_port()now return an error if neither the IPv4
nor the IPv6 multicast socket can be bound, or if registering the sockets with the
poller fails. Before, the daemon started anyway andstatus()reportedRunning.
If only one socket fails (e.g. a host without IPv6), the daemon still runs. (#524)- A service fullname read from the network now keeps its escapes, so it equals the
registered fullname. For example, an instance namedL.A.R.A Hubis now reported as
L\.A\.R\.A Hub._lara._tcp.local.instead ofL.A.R.A Hub._lara._tcp.local.. (#540)
Use the newinstance_name_unescaped()to get the readable instance name. (#552)
New features
RunningStatereports the daemon's local setup as of thestatus()request: the
bind state (and error) of the IPv4 and IPv6 sockets, and for each enabled interface
its addresses and whether its multicast joins worked, with the error from the last
failed attempt. Failed joins are retried at the next IP check. (#524)- Add
instance_name_unescaped(), which returns the instance name in a fullname with
its escapes removed. For example,L\.A\.R\.A Hub._lara._tcp.local.gives
L.A.R.A Hub. (#552)
Bug fixes / improvements
- Stop an endless hostname rename loop caused by our own answers looping back while a
hostname probe is in progress (#545). The daemon no longer answers with records that
are still being probed, does not treat its own addresses as a conflict, moves all of
a host's address records on a rename, and moves the affected services back to
Probingso they are announced again under the new name. (#548) - Answer questions for instance names with dots in a label. Labels read from packets
now escape.and\, so they match the registered names. (#540) - Preserve label boundaries in DNS name compression, so that names like
L\.A.B.local.
andL.A.B.local.are no longer compressed into each other. (#542) - Don't let a known answer with a TTL above our own suppress our answer. Some queriers
(e.g. Android 13) list a much larger TTL, which suppressed every answer and made them
drop the service every 2 minutes. (#539)
What's Changed
- fix: do not suppress answers on a known-answer TTL above our own by @meliodaff in #539
- fix: escape dots and backslashes in labels read from packets by @meliodaff in #540
- fix: preserve label boundaries in DNS name compression by @Sealdot in #542
- feat: report detailed state in DaemonStatus::Running by @keepsimple1 in #524
- fix: stop the hostname rename loop caused by our own answers (#545) by @keepsimple1 in #548
- feat: add instance_name_unescaped() to get a readable instance name by @keepsimple1 in #552
- prepare for a new release 0.22.0 by @keepsimple1 in #551
New Contributors
- @meliodaff made their first contribution in #539
- @Sealdot made their first contribution in #542
Full Changelog: v0.21.7...v0.22.0
v0.21.7
This is a bugfix release.
Bug fixes / improvements
- Fix a race where a renamed service could skip probing. (#506)
- Fix query classification when the daemon runs on a custom port. Queries from the
daemon's own port were treated as legacy unicast queries because the check was
hard-coded to port 5353. (#529) - Wake the daemon with
mio::Wakerinstead of a loopback UDP signal socket. Sending a
command no longer depends on ephemeral ports or the local UDP stack, and can no
longer report an error after the command was already queued. (#527) - Resolve Clippy warnings, including unused variables when the
loggingfeature is
off. (#533) - Modernize CI workflow. (#530)
What's Changed
- Wake the daemon poller with mio::Waker by @orielhaim in #527
- Fix custom-port mDNS query classification by @orielhaim in #529
- CI: run macOS tests on macos-15 (work around Local Network Privacy) by @keepsimple1 in #531
- fix: SRV probe restarted by a host rename could expire without probing by @keepsimple1 in #526
- fix: resolve Clippy warnings by @orielhaim in #533
- test: skip operationally down interfaces in my_ip_interfaces() by @keepsimple1 in #535
- Modernize CI workflow by @orielhaim in #530
- prepare for a new release 0.21.7 by @keepsimple1 in #538
Full Changelog: v0.21.6...v0.21.7
v0.21.6
This is a bugfix release.
Bug fixes
- Fix daemon deadlocks under event backpressure. Delivering events to
browse,browse_cacheandresolve_hostnamereceivers no longer blocks the daemon. If a receiver falls too far behind and its event channel fills (or the receiver is dropped), that subscription is closed and its pending queries are stopped. In this case the receiver gets noSearchStoppedevent: after the queued events, the channel is simply disconnected. Cached records are kept, sobrowse_cachestill works. (#522) - Do not record an interface address whose multicast join failed. Previously such an address was kept (and
IpAddwas emitted), so the IP check never retried the join. Now the join is retried on the next IP check. (#523)
What's Changed
- Fix daemon deadlocks under event backpressure by @orielhaim in #522
- fix: do not record an interface address whose multicast join failed by @keepsimple1 in #523
- prepare for release 0.21.6 by @keepsimple1 in #525
New Contributors
- @orielhaim made their first contribution in #522
Full Changelog: v0.21.5...v0.21.6
v0.21.5
This is a bugfix release.
Bug fixes
- Keep the daemon's timers on a monotonic clock. Previously, setting the system clock
back stalled announcements, IP checks and other timers. (#516) - Count system sleep toward cached record TTLs. After the system wakes, records whose
TTL ran out during the sleep are removed and refreshed as usual, instead of being
kept as if no time had passed. (#518) - Apply
set_ip_check_intervalimmediately. Setting the interval to 0 now disables
the IP check, instead of re-running it in a busy loop. (#517) - Interfaces sharing an IPv4 address (e.g. the bridge interfaces of VMs and containers
on macOS) no longer retry the multicast join on every IP check. (#513)
What's Changed
- refactoring: extract duplicated code into new_multicast_socket by @keepsimple1 in #515
- fix: record an interface whose multicast join failed, ending an endless retry by @vdavid in #513
- fix: keep the daemon's timers on a monotonic clock by @lyager in #516
- fix: apply IP check interval changes immediately by @keepsimple1 in #517
- fix: count system sleep toward cached record TTLs by @keepsimple1 in #518
- refactor: remove the unused per-answer timestamp from DnsOutgoing by @keepsimple1 in #519
- prepare for release 0.21.5 by @keepsimple1 in #520
New Contributors, welcome!
Full Changelog: v0.21.4...v0.21.5
v0.21.4
This is a bugfix release with query-handling fixes and internal refactoring.
Bug fixes / improvements
- Preserve supported questions and records when a message contains unknown question
types, instead of dropping the whole message. (#508) - Preserve service announcements after an excluded address changes, instead of
demoting an already-announced service back to probing. (#507) - Encode and send negative (NSEC) answers for absent hostname records, per
RFC 6762 section 6.1. (#509) - Keep re-querying unresolved service instances while browsing. (#494)
- Refactor
handle_queryandinsert_ipaddrfor readability, with no behavior change. (#510, #511)
What's Changed
- fix: keep re-querying unresolved instances while browsing (#493) by @keepsimple1 in #494
- fix: encode and send negative answers for absent hostname records by @Twister915 in #509
- fix: preserve announcements after excluded address changes by @Twister915 in #507
- fix: preserve supported questions when unknown types are present by @Twister915 in #508
- refactor: insert_ipaddr and handle_query by @keepsimple1 in #510
- refactor: extract answer_hostname_question from handle_query by @keepsimple1 in #511
- prepare for a new release 0.21.4 by @keepsimple1 in #512
New Contributors
- @Twister915 made their first contribution in #509
Welcome and thank you!
Full Changelog: v0.21.3...v0.21.4
v0.21.3
This is a bugfix release that improves RFC 6762 section 6.7 compliance for legacy unicast responses.
Bug fixes
- Echo the querier's message id in legacy unicast responses, per RFC 6762 section 6.7. (#498)
- Cap the resource record TTL to 10 seconds in legacy unicast responses, per RFC 6762 section 6.7. (#504)
- Replace
assertwithassert_eqin tests where possible for clearer failure output. (#456)
What's Changed
- fix: echo query id in legacy unicast responses (#496) by @keepsimple1 in #498
- feat: replace assert with assert_eq where possible by @CosminPerRam in #456
- fix: cap TTL to 10s in legacy unicast responses by @keepsimple1 in #504
- prepare for a new release 0.21.3 by @keepsimple1 in #505
Full Changelog: v0.21.2...v0.21.3
v0.21.2
This is a bugfix release.
Bug fixes / improvements
- Fix an out-of-bounds panic parsing a truncated HINFO record:
read_char_stringnow checks that the length octet is present instead of indexing past the end of the packet. Found by fuzzing the packet parser. (#499) - Remove the raw packet dump from parse-failure messages, which is no longer needed for triage and can be troublesome when the packet is large. (#501)
- Remove the duplicated TXT decoding in
dns_parser: it now uses the canonicalTxtPropertyinservice_infoinstead of its own copy. (#500) - Add fuzzing support under
fuzz/with aparse_packettarget coveringDnsIncoming::new, plus a fuzz build in CI. Publishing is unaffected:cargo packagestill excludesfuzz/. (#502)
What's Changed
- fix: out-of-bounds panic parsing a truncated HINFO record by @keepsimple1 in #499
- refactoring: remove the duplicated TXT decoding in dns_parser by @keepsimple1 in #500
- fix: bound the raw packet dump in parse-failure messages by @keepsimple1 in #501
- tests: add fuzzing support with a packet parser target by @keepsimple1 in #502
- prepare for a new release 0.21.2 by @keepsimple1 in #503
Full Changelog: v0.21.1...v0.21.2
v0.21.1
This is a bugfix release.
Bug fixes / improvements
- Send goodbye (TTL=0) packets under conflict-resolved names. When probing renames a record due to a name conflict (RFC 6762 section 9), now the goodbye carries the updated names peers actually observed. (#495, commit
fe525a6) - Harden DNS name parsing (
read_name) and name compression handling: skip only the malformed record instead of the whole packet. (#492, commit5bf6b7c)
What's Changed
- fix: send goodbye packets under conflict-resolved names by @dhavli in #495
- refactoring: read_name and name compression by @keepsimple1 in #492
- prepare for a new release 0.21.1 by @keepsimple1 in #497
New Contributors
🚀 * @dhavli made their first contribution in #495
Full Changelog: v0.21.0...v0.21.1
v0.21.0
Breaking changes
- The max outgoing packet size is now 1452 bytes (based on Ethernet MTU), down from 8972 bytes, per RFC 6762 section 17. A record too big for one packet is still sent alone, in a packet of up to the RFC's 9000-byte ceiling, so no record is dropped. Users that need to change the limit can call the new
ServiceDaemon::set_max_packet_size().
New features
- Add
ServiceDaemon::set_max_packet_size()to change the max byte size of outgoing packets on the interfaces matching a givenIfKind. (#487) - Re-export the receiver-side error types
RecvError,RecvTimeoutErrorandTryRecvErrorfromflume, so that a caller can name them without addingflumeas a direct dependency. (#488)
Bug fixes / improvements
- On the receive side, the IPv4 and IPv6 max packet sizes are now tracked separately (8972 and 8952 bytes) so that each stays within the RFC's 9000-byte limit including its own IP header. (#487)
What's Changed
- feat: limit generated packet size per RFC 6762 section 17 by @keepsimple1 in #487
- feat: re-export Receiver error types (#488) by @keepsimple1 in #489
- refactor: extract the code that does cache flush by @keepsimple1 in #490
- chores: prepare for a new release v0.21.0 by @keepsimple1 in #491
Full Changelog: v0.20.3...v0.21.0