packets: Change IPv6 functions to more closely resemble IPv4 ones.