Skip to content

Releases

v0.22.1

Choose a tag to compare

@keepsimple1 keepsimple1 released this 02 Dec 06:47
0328e73

This release has bug fixes and one new feature.

New features

  • ServiceInfo::set_host_ttl() and set_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!

Full Changelog: v0.22.0...v0.22.1

v0.22.0

Choose a tag to compare

@keepsimple1 keepsimple1 released this 17 Nov 04:54
1de5aaf

Breaking changes

  • DaemonStatus::Running is now DaemonStatus::Running(RunningState). (#524)
  • ServiceDaemon::new() and new_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 and status() reported Running.
    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 named L.A.R.A Hub is now reported as
    L\.A\.R\.A Hub._lara._tcp.local. instead of L.A.R.A Hub._lara._tcp.local.. (#540)
    Use the new instance_name_unescaped() to get the readable instance name. (#552)

New features

  • RunningState reports the daemon's local setup as of the status() 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
    Probing so 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.
    and L.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

Full Changelog: v0.21.7...v0.22.0

v0.21.7

Choose a tag to compare

@keepsimple1 keepsimple1 released this 02 Nov 03:09
75eee06

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::Waker instead 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 logging feature is
    off. (#533)
  • Modernize CI workflow. (#530)

What's Changed

Full Changelog: v0.21.6...v0.21.7

v0.21.6

Choose a tag to compare

@keepsimple1 keepsimple1 released this 19 Oct 04:42
1a5cdb6

This is a bugfix release.

Bug fixes

  • Fix daemon deadlocks under event backpressure. Delivering events to browse, browse_cache and resolve_hostname receivers 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 no SearchStopped event: after the queued events, the channel is simply disconnected. Cached records are kept, so browse_cache still works. (#522)
  • Do not record an interface address whose multicast join failed. Previously such an address was kept (and IpAdd was emitted), so the IP check never retried the join. Now the join is retried on the next IP check. (#523)

What's Changed

New Contributors

Full Changelog: v0.21.5...v0.21.6

v0.21.5

Choose a tag to compare

@keepsimple1 keepsimple1 released this 05 Oct 05:31
a25148c

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_interval immediately. 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

Choose a tag to compare

@keepsimple1 keepsimple1 released this 21 Sep 04:19
38395fc

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_query and insert_ipaddr for readability, with no behavior change. (#510, #511)

What's Changed

New Contributors

Welcome and thank you!

Full Changelog: v0.21.3...v0.21.4

v0.21.3

Choose a tag to compare

@keepsimple1 keepsimple1 released this 08 Sep 03:29
da41a9c

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 assert with assert_eq in tests where possible for clearer failure output. (#456)

What's Changed

Full Changelog: v0.21.2...v0.21.3

v0.21.2

Choose a tag to compare

@keepsimple1 keepsimple1 released this 05 Sep 18:28
725eb85

This is a bugfix release.

Bug fixes / improvements

  • Fix an out-of-bounds panic parsing a truncated HINFO record: read_char_string now 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 canonical TxtProperty in service_info instead of its own copy. (#500)
  • Add fuzzing support under fuzz/ with a parse_packet target covering DnsIncoming::new, plus a fuzz build in CI. Publishing is unaffected: cargo package still excludes fuzz/. (#502)

What's Changed

Full Changelog: v0.21.1...v0.21.2

v0.21.1

Choose a tag to compare

@keepsimple1 keepsimple1 released this 31 Aug 04:07
8616315

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, commit 5bf6b7c)

What's Changed

New Contributors

🚀 * @dhavli made their first contribution in #495

Full Changelog: v0.21.0...v0.21.1

v0.21.0

Choose a tag to compare

@keepsimple1 keepsimple1 released this 12 Aug 02:31
5fcb34a

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 given IfKind. (#487)
  • Re-export the receiver-side error types RecvError, RecvTimeoutError and TryRecvError from flume, so that a caller can name them without adding flume as 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

Full Changelog: v0.20.3...v0.21.0