]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-quic.c
Avoid -E and -M options inconsistencies with no libcrypto
[tcpdump] / print-quic.c
index eb8120b22fad6003ebd15253ec6cb1f2827001d4..5e50c369e89680a1975bb711e09f87e94899eb79 100644 (file)
@@ -23,9 +23,7 @@
 /* \summary: QUIC Protocol printer */
 /* specification: https://www.rfc-editor.org/rfc/rfc9000.txt */
 
-#ifdef HAVE_CONFIG_H
 #include <config.h>
-#endif
 
 #include "netdissect-stdinc.h"
 #include "netdissect-alloc.h"
@@ -272,9 +270,9 @@ quic_print_packet(netdissect_options *ndo, const u_char *bp, const u_char *end)
 }
 
 void
-quic_print(netdissect_options *ndo, const u_char *bp, const u_int len)
+quic_print(netdissect_options *ndo, const u_char *bp)
 {
-       const uint8_t *end = bp + len;
+       const uint8_t *end = bp + ND_BYTES_AVAILABLE_AFTER(bp);
 
        ndo->ndo_protocol = "quic";
        nd_print_protocol(ndo);