use ipv4_check and ipv6_check provided by the network stacks.
authordlg <dlg@openbsd.org>
Wed, 2 Jun 2021 00:40:51 +0000 (00:40 +0000)
committerdlg <dlg@openbsd.org>
Wed, 2 Jun 2021 00:40:51 +0000 (00:40 +0000)
commitb35addb284370a7df4f289fc7a4b6100cf2d1758
tree586393662540a9eee5657c54ad41bbc2c7c9ba63
parent1a4a9ab2b0c2c1651f94c16723a3fbc048452fbf
use ipv4_check and ipv6_check provided by the network stacks.

this removes the duplication of the check code, and lets the v6
code in particular pick up a lot more sanity checks around valid
addresses on the wire.

ok bluhm@ sashan@
sys/net/if_bridge.c