offsetof macro is defined in stddef.h
WIP: Ported router logic to xmppd