VN only sent for large enough packets
@@ -1454,9 +1454,11 @@ int picoquic_incoming_segment(
if (ret == 0) {
if (cnx == NULL) {
if (ph.version_index < 0 && ph.vn != 0) {
+ if (packet_length >= PICOQUIC_ENFORCED_INITIAL_MTU) {
/* use the result of parsing to consider version negotiation */
picoquic_prepare_version_negotiation(quic, addr_from, addr_to, if_index_to, &ph);
}
+ }
else {
/* Unexpected packet. Reject, drop and log. */
if (!picoquic_is_connection_id_null(ph.dest_cnx_id)) {
