diff options
author | Dario Lombardo <lomato@gmail.com> | 2015-03-03 14:39:00 +0100 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2015-03-05 10:21:57 +0000 |
commit | 9848b22cd0335a503d4e6181730cf77cc01c5816 (patch) | |
tree | 596891862e7267456af731997bc1651aeacd1706 /epan/dissectors/packet-rtps.c | |
parent | aa9497b1d8fbcd194d3d8330ce66936b20808c76 (diff) |
rtps: added magic
Change-Id: I52861b6893abf36b304ea58a12c7987e0f7bc5ba
Reviewed-on: https://code.wireshark.org/review/7512
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-rtps.c')
-rw-r--r-- | epan/dissectors/packet-rtps.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/epan/dissectors/packet-rtps.c b/epan/dissectors/packet-rtps.c index b26b08334b..e23a2581a7 100644 --- a/epan/dissectors/packet-rtps.c +++ b/epan/dissectors/packet-rtps.c @@ -77,6 +77,7 @@ static const char *const SM_EXTRA_TMINUS = "(t-)"; /***************************************************************************/ /* Protocol Fields Identifiers */ static int proto_rtps = -1; +static int hf_rtps_magic = -1; static int hf_rtps_protocol_version = -1; static int hf_rtps_protocol_version_major = -1; static int hf_rtps_protocol_version_minor = -1; @@ -7437,6 +7438,9 @@ static gboolean dissect_rtps(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree ti = proto_tree_add_item(tree, proto_rtps, tvb, 0, -1, ENC_NA); rtps_tree = proto_item_add_subtree(ti, ett_rtps); + /* magic */ + proto_tree_add_item(rtps_tree, hf_rtps_magic, tvb, 0, 4, ENC_NA | ENC_ASCII); + /* Protocol Version */ version = rtps_util_add_protocol_version(rtps_tree, tvb, offset+4); @@ -7637,6 +7641,16 @@ void proto_register_rtps(void) { static hf_register_info hf[] = { + { &hf_rtps_magic, { + "magic", + "rtps.magic", + FT_STRING, + BASE_NONE, + NULL, + 0, + "RTPS magic", + HFILL } + }, /* Protocol Version (composed as major.minor) -------------------------- */ { &hf_rtps_protocol_version, { "version", |