Use seconds since epoch for router instance

Increase from u32 to u64. Add htonll and ntohll.
Avoid magic number and use sizeof hdr and payload for RIR buffer.