Skip to content

migrate from net.IP to netip.Addr#27

Merged
mdlayher merged 2 commits into
mdlayher:masterfrom
sbromberger:sbromberger/netip
May 12, 2022
Merged

migrate from net.IP to netip.Addr#27
mdlayher merged 2 commits into
mdlayher:masterfrom
sbromberger:sbromberger/netip

Conversation

@sbromberger
Copy link
Copy Markdown
Contributor

This PR removes all use of net.IP in favor of the (smaller, faster, immutable) netip.Addr. net is still needed for the hardware address datastructures, but this will allow the results of the package to be used in maps and will permit other conveniences (like reasonable equality testing).

Copy link
Copy Markdown
Owner

@mdlayher mdlayher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Comment thread client.go Outdated
Comment thread client.go Outdated
Comment thread client_test.go Outdated
Comment thread packet.go Outdated
Comment thread packet_test.go Outdated
Comment thread packet_test.go Outdated
Copy link
Copy Markdown
Owner

@mdlayher mdlayher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much appreciated, thanks!

@mdlayher mdlayher merged commit 6706a29 into mdlayher:master May 12, 2022
tklauser added a commit to tklauser/arp that referenced this pull request May 13, 2026
Use Go native fuzzing instead of gofuzz. This requires bumping the Go
version in go.mod to 1.18. This is anyway needed since this modules uses
the net/netip package which was introduced in Go 1.18[^1] since mdlayher#27.

[^1]: https://go.dev/doc/go1.18#netip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants