diff options
author | lns <matzeton@googlemail.com> | 2022-08-09 20:26:44 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2022-08-18 11:03:01 +0200 |
commit | 4956025111ee66104b91b94e47e2dafd55c3a9b4 (patch) | |
tree | ba246b77d9a0d8dbcddc369169647997c9f38a2e /src | |
parent | 540848c254ab4f8f89b6cfab03269ed8dc4dc887 (diff) |
Improved QUIC IETF 0-RTT detection.improved/ietf-quic-0rtt-detection
Signed-off-by: lns <matzeton@googlemail.com>
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/protocols/quic.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/lib/protocols/quic.c b/src/lib/protocols/quic.c index 530ba27b2..aa9c04f9d 100644 --- a/src/lib/protocols/quic.c +++ b/src/lib/protocols/quic.c @@ -1442,10 +1442,7 @@ static int may_be_initial_pkt(struct ndpi_detection_module_struct *ndpi_struct, u_int8_t pub_bit1, pub_bit2, pub_bit3, pub_bit4, pub_bit5, pub_bit7, pub_bit8; u_int8_t dest_conn_id_len, source_conn_id_len; - /* According to draft-ietf-quic-transport-29: "Clients MUST ensure that UDP - datagrams containing Initial packets have UDP payloads of at least 1200 - bytes". Similar limit exists for previous versions */ - if(packet->payload_packet_len < 1200) { + if(packet->payload_packet_len < 14) { return 0; } @@ -1485,8 +1482,8 @@ static int may_be_initial_pkt(struct ndpi_detection_module_struct *ndpi_struct, } if(((is_version_quic(*version) && !is_version_quic_v2(*version)) || (*version == V_Q046) || (*version == V_Q050)) && - (pub_bit3 != 0 || pub_bit4 != 0)) { - NDPI_LOG_DBG2(ndpi_struct, "Version 0x%x not Initial Packet\n", *version); + (pub_bit3 != 0)) { + NDPI_LOG_DBG2(ndpi_struct, "Version 0x%x not Initial Packet or 0-RTT\n", *version); return 0; } if(is_version_quic_v2(*version) && |