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
{{ message }}
This repository was archived by the owner on Oct 23, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Oct 23, 2026. It is now read-only.
mv TXT record field should use RFC9000 variable-length integer encoding #1
Note: if there is no interest in pursuing closer spec compliance/interoperability at this point, just let me know.
The mv (metadata version) field in mDNS TXT records is currently encoded and parsed as a decimal string (e.g., "0", "42"). However, the W3C OpenScreen Protocol spec requires it to be encoded as an RFC9000 (QUIC) variable-length integer.
mv: An unsigned integer value that indicates that metadata has changed. The advertising agent must update it to a greater value. This signals to the listening agent that it should connect to the advertising agent to discover updated metadata. The value should be encoded as a variable-length integer.
And from network.bs lines 425-426:
Variable-length integers are encoded in the Variable-Length Integer Encoding used by [[!RFC9000|QUIC]].
Current Behavior
Publishing: mv is encoded as "42" (decimal string)
Parsing: mv is parsed using str::parse::()
Expected Behavior
Publishing: mv=42 should be encoded as a single byte 0x2A (RFC9000 varint)
Parsing: mv should be decoded as RFC9000 varint bytes
Thanks for getting this. It behooves me it's probably worth generating some byte-by-byte reference golden messages for things like these - makes interop verification and testing more obvious.
Activity
backkem commentedon Jan 5, 2026
I can open a PR if there is interest.
kaidokert commentedon Jan 7, 2026
Thanks for the ticket !
There certainly is - i'd like to get this as spec compliant as possible, unless spec turns out to have gray areas or bugs.
If you know where/how to fix it and can do a PR, i'd certainly appreciate it.
kaidokert commentedon Jan 12, 2026
Thanks for getting this. It behooves me it's probably worth generating some byte-by-byte reference golden messages for things like these - makes interop verification and testing more obvious.
Use RFC9000 varint encoding for mv TXT record field (youtube#2)
Fix clippy errors (#8)