framer: use varint function for addr packet.
framer: fix 32 and 64 bit support for varint().