[net] fixup some endianess issues: ip_addr_serialize and ip_addr_get work in host order