check that a packet is tcp before trying to analyze it.