arp icon indicating copy to clipboard operation
arp copied to clipboard

Simplify IPv4 address validation in `NewPacket`

Open tklauser opened this issue 1 year ago • 2 comments

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 avatar Dec 13 '24 09:12 tklauser

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

tklauser avatar Feb 27 '25 08:02 tklauser

@mdlayher another friendly ping for review :)

tklauser avatar Sep 17 '25 12:09 tklauser