Skip to content

Conversation

@tklauser
Copy link

Use netip.Addr.Is4 to validate both source and destination IP. Also drop the redundant check for an invalid IP. netip.Addr.Is4 will return false for an invalid netip.Addr.

@tklauser tklauser force-pushed the newpacket-address-validate-simplify branch from f7a002a to 6d0004c Compare December 13, 2024 09:42
@tklauser
Copy link
Author

@mdlayher any chance you could take a quick look? Thank you!

@tklauser
Copy link
Author

@mdlayher another friendly ping for review :)

Use netip.Addr.Is4 to validate both source and destination IP. Also drop
the redundant check for an invalid IP. netip.Addr.Is4 will return false
for an invalid netip.Addr.
@tklauser tklauser force-pushed the newpacket-address-validate-simplify branch from 6d0004c to 675fca6 Compare October 14, 2025 11:29
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.

1 participant