fixed seg fault, now need to fix TCP checksum