fn enc_one_netinfo_addr<W: Writer + ?Sized>(w: &mut W, addr: &IpAddr)
helper: encode a single address in the form that netinfo messages expect