Add 2 functions to pack/unpack IP addresses.