Fixed no rout to host detection.
Router calculates packet length.
Moved packet functions into new file. Added ttl and re-checksum in router.