aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-syslog.c
diff options
context:
space:
mode:
authormorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>2007-03-22 08:11:16 +0000
committermorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>2007-03-22 08:11:16 +0000
commit3b985688a267c554393fe235c8d22e6ea046ed4b (patch)
tree3288e7124c924f80ee9ecf3644b5b95c9d2894b8 /epan/dissectors/packet-syslog.c
parente47bb7a681e485af3b810b2fb2a9673f46bc0cba (diff)
From Abhik Sarkar: call add_new_data_source() on generated (MTP3) tvb so that users can see the bytes in a (new) byte pane.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21109 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-syslog.c')
-rw-r--r--epan/dissectors/packet-syslog.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/epan/dissectors/packet-syslog.c b/epan/dissectors/packet-syslog.c
index c62a845e16..e695d956f7 100644
--- a/epan/dissectors/packet-syslog.c
+++ b/epan/dissectors/packet-syslog.c
@@ -284,8 +284,12 @@ dissect_syslog(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
}
}
- /* Call MTP dissector if encapsulated MSU was found */
+ /* Call MTP dissector if encapsulated MSU was found... */
if (mtp3_tvb) {
+ /* ...and add the encapsulated MSU as a new data source so that it gets
+ * its own tab in the packet bytes pane.
+ */
+ add_new_data_source(pinfo, mtp3_tvb, "Encapsulated MSU");
call_dissector(mtp_handle, mtp3_tvb, pinfo, tree);
}