aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-q932-ros.c
diff options
context:
space:
mode:
authorkukosa <kukosa@f5534014-38df-0310-8fa8-9805f1628bb7>2009-08-24 09:05:15 +0000
committerkukosa <kukosa@f5534014-38df-0310-8fa8-9805f1628bb7>2009-08-24 09:05:15 +0000
commit52a1d8349ef133717ae6be7305c2a78a98a01bba (patch)
tree7d4428583cade2241e0a3a083bf80f98a62b5964 /epan/dissectors/packet-q932-ros.c
parent84e586c8c0b4b802f2abaf9a6fd6e264fbc2f3d5 (diff)
Expert info for undecoded Q.932 and H.450 operations
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29534 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-q932-ros.c')
-rw-r--r--epan/dissectors/packet-q932-ros.c20
1 files changed, 15 insertions, 5 deletions
diff --git a/epan/dissectors/packet-q932-ros.c b/epan/dissectors/packet-q932-ros.c
index 50130006e7..166d7b6700 100644
--- a/epan/dissectors/packet-q932-ros.c
+++ b/epan/dissectors/packet-q932-ros.c
@@ -40,6 +40,7 @@
#include <epan/packet.h>
#include <epan/strutil.h>
#include <epan/asn1.h>
+#include <epan/expert.h>
#include "packet-ber.h"
@@ -78,7 +79,7 @@ static int hf_q932_ros_present = -1; /* INTEGER */
static int hf_q932_ros_InvokeId_present = -1; /* InvokeId_present */
/*--- End of included file: packet-q932-ros-hf.c ---*/
-#line 45 "packet-q932-ros-template.c"
+#line 46 "packet-q932-ros-template.c"
/* Initialize the subtree pointers */
@@ -96,7 +97,7 @@ static gint ett_q932_ros_T_problem = -1;
static gint ett_q932_ros_InvokeId = -1;
/*--- End of included file: packet-q932-ros-ett.c ---*/
-#line 48 "packet-q932-ros-template.c"
+#line 49 "packet-q932-ros-template.c"
/* Preferences */
@@ -311,6 +312,9 @@ dissect_q932_ros_Invoke(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset
}
actx->pinfo->private_data = actx->rose_ctx;
call_dissector((arg_handle)?arg_handle:data_handle, arg_next_tvb, actx->pinfo, tree);
+ if (!arg_handle) {
+ expert_add_info_format(actx->pinfo, tree, PI_UNDECODED, PI_WARN, "Undecoded %s", descr);
+ }
return offset;
}
@@ -400,6 +404,9 @@ dissect_q932_ros_ReturnResult(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int
}
actx->pinfo->private_data = actx->rose_ctx;
call_dissector((res_handle)?res_handle:data_handle, res_next_tvb, actx->pinfo, tree);
+ if (!res_handle) {
+ expert_add_info_format(actx->pinfo, tree, PI_UNDECODED, PI_WARN, "Undecoded %s", descr);
+ }
return offset;
}
@@ -475,6 +482,9 @@ dissect_q932_ros_ReturnError(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int o
}
actx->pinfo->private_data = actx->rose_ctx;
call_dissector((err_handle)?err_handle:data_handle, err_next_tvb, actx->pinfo, tree);
+ if (!err_handle) {
+ expert_add_info_format(actx->pinfo, tree, PI_UNDECODED, PI_WARN, "Undecoded %s", descr);
+ }
return offset;
}
@@ -665,7 +675,7 @@ static int dissect_ROS_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree
/*--- End of included file: packet-q932-ros-fn.c ---*/
-#line 63 "packet-q932-ros-template.c"
+#line 64 "packet-q932-ros-template.c"
/*--- dissect_q932_ros -----------------------------------------------------*/
static int dissect_q932_ros(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
@@ -780,7 +790,7 @@ void proto_register_q932_ros(void) {
"q932_ros.InvokeId_present", HFILL }},
/*--- End of included file: packet-q932-ros-hfarr.c ---*/
-#line 77 "packet-q932-ros-template.c"
+#line 78 "packet-q932-ros-template.c"
};
/* List of subtrees */
@@ -800,7 +810,7 @@ void proto_register_q932_ros(void) {
&ett_q932_ros_InvokeId,
/*--- End of included file: packet-q932-ros-ettarr.c ---*/
-#line 82 "packet-q932-ros-template.c"
+#line 83 "packet-q932-ros-template.c"
};
/* Register protocol and dissector */