diff options
author | Jose Rubio <joserubiovidales@gmail.com> | 2020-12-10 23:12:06 +0100 |
---|---|---|
committer | Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org> | 2020-12-13 11:17:42 +0000 |
commit | 270561ade17f9a20b0355962149347211b419c6b (patch) | |
tree | 7f76629d33500552727dae19994c01bfa7c27587 /wiretap/catapult_dct2000.c | |
parent | 02c5f500090261947b3e9a65dafff83a71edb17b (diff) |
DCT2000: Allow any PDU to be dissected.
There are traffic dumps that only include the PDU payload
without lower layer information. This commit allows any
dissector to be embedded in the DCT2000 as a protocol name.
tshark/wireshark will decode it despite having no lower
layer information.
The change allows a DCT2000 protocol field to look for a
dissector.
The change can be enabled or disabled with the preference
dct2000.use_protocol_name_as_dissector_name and it defaults
to FALSE.
Example:
Session Transcript (format 3.1)
December 6, 2020 16:45:20.5185
LTE-RRC.1/lte_rrc.dl_dcch/1/// r tm 22.5695 l $2c02
S1AP.1/s1ap/1/// s tm 23.3926 l
$001700130000020063000608023d7c00830002400202a0
Diffstat (limited to 'wiretap/catapult_dct2000.c')
-rw-r--r-- | wiretap/catapult_dct2000.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wiretap/catapult_dct2000.c b/wiretap/catapult_dct2000.c index 8e10caf6ce..9b82cfb949 100644 --- a/wiretap/catapult_dct2000.c +++ b/wiretap/catapult_dct2000.c @@ -908,7 +908,7 @@ parse_line(gchar *linebuff, gint line_length, (linebuff[n] != '/') && (protocol_chars < MAX_PROTOCOL_NAME) && (n < line_length); n++, protocol_chars++) { - if (!g_ascii_isalnum(linebuff[n]) && linebuff[n] != '_') { + if (!g_ascii_isalnum(linebuff[n]) && (linebuff[n] != '_') && (linebuff[n] != '.')) { return FALSE; } protocol_name[protocol_chars] = linebuff[n]; |