aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2016-08-18 08:16:30 +0200
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2016-09-07 06:17:32 +0000
commitaffa9df885e44238eca06ac6eb93f2bd8472d20a (patch)
tree19f0435d2926be0d746d28285373f373381a248f
parent7786a975af5492160e48a2d0168365b57e0a0770 (diff)
QUIC: Add preference to force decode all payload
For debugging... Change-Id: I23eb70c89ac95371e1d7b05a52ffeed4f993a52a Reviewed-on: https://code.wireshark.org/review/17135 Reviewed-by: Lucas Pardue <lucas.pardue@bbc.co.uk> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
-rw-r--r--epan/dissectors/packet-quic.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/epan/dissectors/packet-quic.c b/epan/dissectors/packet-quic.c
index 9c82b6b91a..62380d7942 100644
--- a/epan/dissectors/packet-quic.c
+++ b/epan/dissectors/packet-quic.c
@@ -178,6 +178,7 @@ static int hf_quic_payload = -1;
static guint g_quic_port = 80;
static guint g_quics_port = 443;
+static gboolean g_quic_debug = FALSE;
static gint ett_quic = -1;
static gint ett_quic_puflags = -1;
@@ -2134,7 +2135,7 @@ dissect_quic_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
offset += len_pkn;
/* Unencrypt Message (Handshake or Connection Close...) */
- if (is_quic_unencrypt(tvb, pinfo, offset, len_pkn, quic_info)){
+ if (is_quic_unencrypt(tvb, pinfo, offset, len_pkn, quic_info) || g_quic_debug){
offset = dissect_quic_unencrypt(tvb, pinfo, quic_tree, offset, len_pkn, quic_info);
}else { /* Payload... (encrypted... TODO FIX !) */
col_add_str(pinfo->cinfo, COL_INFO, "Payload (Encrypted)");
@@ -2842,6 +2843,11 @@ proto_register_quic(void)
"QUICS (Secure) UDP port if other than the default",
10, &g_quics_port);
+ prefs_register_bool_preference(quic_module, "debug.quic",
+ "Force decode of all QUIC Payload",
+ "Help for debug...",
+ &g_quic_debug);
+
expert_quic = expert_register_protocol(proto_quic);
expert_register_field_array(expert_quic, ei, array_length(ei));
}