net: Add net_prefix_from_ipv6 utility

Add function that zeroes bits after prefix_len'th bit in an address.  Put
it in net-private.h so it can be used by both netconfig.c and icmp6.c,
potentially others.
1 file changed