Fixing ipv6 checksum calcualation

Added handling of IPv6 packets and Corrected handling of timeout after function call handle_initial_syn.