1.1.1.1 is a palindrome
Web page · https://cachebag.sh/journal/palindrome
First seen by Oriel on .
AI summary
The nmrs Rust library reversed IPv4 DNS octets when configuring NetworkManager because it used host-byte-order conversion; the author fixed the conversion and strengthened tests.
- WireGuard tunnels imported through COSMIC Settings could establish a handshake while DNS failed, because NetworkManager received addresses such as 10.2.0.1 as 1.0.2.10.
- NetworkManager expects DNS addresses as u32 values whose in-memory bytes match the IPv4 octets, so the fix uses u32::from_ne_bytes(server.octets()).
- The original test repeated the same conversion used by the implementation and used symmetric addresses, allowing the bug to pass unnoticed for seven months.
- New tests decode values as NetworkManager does and check a literal wire value using an asymmetric address; the literal-value test is limited to little-endian targets.
- The author notes that ipv4.dns is deprecated in favor of string-based dns-data, which nmrs still does not use.
#rust #networkmanager #wireguard #software testing
Generated by gpt-5.6-sol. Check the original for details.
Metric trends
Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained
Points
Score reported by the source.
- Lobsters: 68, latest observation ; +66 over observed period since
Comments
Comment count reported by the source.
- Lobsters: 19, latest observation ; +19 over observed period since
Aliases
| Source | External ID | URL |
|---|---|---|
| Lobsters | fyhs2z | https://cachebag.sh/journal/palindrome/ Read discussion |