[PATCH 4/4] Use typing to reduce chances of IPv4 endianness errors