quic: analyzer: Support QUIC v2

QUIC v2 changed the version *and* the packet type enumeration to prevent
protocol ossification. Use an intermediary unit to handle the difference.
This commit is contained in:
Arne Welzel 2024-01-04 13:59:37 +01:00
parent 0b6f4ef443
commit dabe85ebbf
3 changed files with 61 additions and 22 deletions

View file

@ -3,5 +3,6 @@ module QUIC;
export {
const version_strings: table[count] of string = {
[0x00000001] = "1",
[0x6b3343cf] = "quicv2",
} &default=function(version: count): string { return fmt("unknown-%x", version); };
}