Set flags on message according to IKE version when parsing header.