Skip to content

Commit

Permalink
Don't try to print any information about gQUIC packets.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rui Paulo committed Nov 17, 2021
1 parent 02dd14c commit abadcc0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion print-quic.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,10 @@ quic_print_packet(netdissect_options *ndo, const u_char *bp, const u_char *end)
version = GET_BE_U_4(bp);
bp += 4;

if (version == 0)
if (version >> 24 == 0x51) {
ND_PRINT(", unsupported gquic");
return end;
} else if (version == 0)
ND_PRINT(", version negotiation");
else if (packet_type == QUIC_LH_TYPE_INITIAL)
ND_PRINT(", initial");
Expand Down
2 changes: 1 addition & 1 deletion tests/gquic.out
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
1 06:42:38.000000 IP (tos 0x0, ttl 64, id 38137, offset 0, flags [DF], proto UDP (17), length 1378)
10.7.0.3.38824 > 216.58.195.67.443: quic, initial, v51303436, length 0, protected
10.7.0.3.38824 > 216.58.195.67.443: quic, unsupported gquic

0 comments on commit abadcc0

Please sign in to comment.