diff options
author | Nicolas Bertin <nicolas.bertin@al-enterprise.com> | 2017-04-27 15:18:35 +0200 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2017-04-28 02:32:28 +0000 |
commit | ffddacf79ed36e70aa6831262675317d0586b361 (patch) | |
tree | 2c2c7d597879eab1aff354cf55ca462e625d42bc /epan | |
parent | 015d9194e1471455371ce7a8a591125a7c492619 (diff) |
uaudp: fixed decoding of CONNECT message
Change-Id: I69e0d9abc8e2fccf2837bf7dee52480063f11193
Reviewed-on: https://code.wireshark.org/review/21366
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-uaudp.c | 19 | ||||
-rw-r--r-- | epan/dissectors/packet-uaudp.h | 1 |
2 files changed, 19 insertions, 1 deletions
diff --git a/epan/dissectors/packet-uaudp.c b/epan/dissectors/packet-uaudp.c index 01e3810d50..8562f8c813 100644 --- a/epan/dissectors/packet-uaudp.c +++ b/epan/dissectors/packet-uaudp.c @@ -59,6 +59,7 @@ static int hf_uaudp_keepalive = -1; static int hf_uaudp_qos_ip_tos = -1; static int hf_uaudp_qos_8021_vlid = -1; static int hf_uaudp_qos_8021_pri = -1; +static int hf_uaudp_superfast_connect = -1; static int hf_uaudp_expseq = -1; static int hf_uaudp_sntseq = -1; @@ -171,7 +172,7 @@ static void _dissect_uaudp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, "%s", val_to_str_ext(opcode, &uaudp_opcode_str_ext, "unknown (0x%02x)")); - uaudp_item = proto_tree_add_protocol_format(tree, proto_uaudp, tvb, 0, 5, + uaudp_item = proto_tree_add_protocol_format(tree, proto_uaudp, tvb, 0, tvb_reported_length(tvb), "Universal Alcatel/UDP Encapsulation Protocol, %s", val_to_str_ext(opcode, &uaudp_opcode_str_ext, "unknown (0x%02x)")); @@ -220,6 +221,9 @@ static void _dissect_uaudp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, case UAUDP_CONNECT_QOS_8021_PRI: rV(uaudp_tree, &hf_uaudp_qos_8021_pri , tvb, offset, L); break; + case UAUDP_CONNECT_SUPERFAST_CONNECT: + rV(uaudp_tree, &hf_uaudp_superfast_connect, tvb, offset, L); + break; } offset += (2 + L); } @@ -504,6 +508,19 @@ void proto_register_uaudp(void) } }, { + &hf_uaudp_superfast_connect, + { + "SuperFast Connect", + "uaudp.superfast_connect", + FT_UINT8, + BASE_DEC, + NULL, + 0x0, + "UA/UDP SuperFast Connect", + HFILL + } + }, + { &hf_uaudp_expseq, { "Sequence Number (expected)", diff --git a/epan/dissectors/packet-uaudp.h b/epan/dissectors/packet-uaudp.h index e932feb014..e890483d9c 100644 --- a/epan/dissectors/packet-uaudp.h +++ b/epan/dissectors/packet-uaudp.h @@ -42,6 +42,7 @@ #define UAUDP_CONNECT_QOS_IP_TOS 0x06 #define UAUDP_CONNECT_QOS_8021_VLID 0x07 #define UAUDP_CONNECT_QOS_8021_PRI 0x08 +#define UAUDP_CONNECT_SUPERFAST_CONNECT 0x09 extern value_string_ext uaudp_opcode_str_ext; #if 0 |