6
84
Fork
You've already forked dns
39

fix: EDNS0 SUBNET packing problem #540

Merged
miekg merged 2 commits from truimo/dns:main into main 2025年12月22日 08:34:47 +01:00
Contributor
Copy link

Close #537

  • zednspack.go:205 now uses pack.Uint* for bounds checks, validates family/netmask, and copies the prefix bytes for IPv4/IPv6
  • edns_types.go:303 now bases Len() on Netmask (ceil(netmask/8)) instead of full address bit length
Close #537 - zednspack.go:205 now uses pack.Uint* for bounds checks, validates family/netmask, and copies the prefix bytes for IPv4/IPv6 - edns_types.go:303 now bases Len() on Netmask (ceil(netmask/8)) instead of full address bit length
fix: Fixed EDNS0 SUBNET packing so it actually emits the address prefix bytes (based on Netmask) and aligned the option length calculation with the encoded prefix length.
Some checks failed
/ test (pull_request) Successful in 3m50s
release.yaml / Merge pull request 'fix: EDNS0 SUBNET packing problem' (#540) from truimo/dns:main into main (pull_request) Failing after 0s
a40b69c10d
- zednspack.go:205 now uses pack.Uint* for bounds checks, validates family/netmask, and copies the prefix bytes for IPv4/IPv6
- edns_types.go:303 now bases Len() on Netmask (ceil(netmask/8)) instead of full address bit length
truimo force-pushed main from bb4373fc78
All checks were successful
/ test (pull_request) Successful in 3m43s
to a40b69c10d
Some checks failed
/ test (pull_request) Successful in 3m50s
release.yaml / Merge pull request 'fix: EDNS0 SUBNET packing problem' (#540) from truimo/dns:main into main (pull_request) Failing after 0s
2025年12月22日 04:42:05 +01:00
Compare
Sign in to join this conversation.
No reviewers
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
miekg/dns!540
Reference in a new issue
miekg/dns
No description provided.
Delete branch "truimo/dns:main"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?