aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/ros
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2009-05-20 09:27:45 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2009-05-20 09:27:45 +0000
commit6a713aad50b18b1ef5f306b3cbb6523ab308e2a4 (patch)
tree73337415a81a41f99b58c9ddeedd3be0cde4c9f2 /asn1/ros
parent5c8f23cca173dfa0896baaa4e851908a39930517 (diff)
Added expert info for OID not implemented.
svn path=/trunk/; revision=28422
Diffstat (limited to 'asn1/ros')
-rw-r--r--asn1/ros/packet-ros-template.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/asn1/ros/packet-ros-template.c b/asn1/ros/packet-ros-template.c
index 02a3ae837b..8557ae02a9 100644
--- a/asn1/ros/packet-ros-template.c
+++ b/asn1/ros/packet-ros-template.c
@@ -32,6 +32,7 @@
#include <epan/conversation.h>
#include <epan/emem.h>
#include <epan/asn1.h>
+#include <epan/expert.h>
#include <stdio.h>
#include <string.h>
@@ -216,13 +217,11 @@ call_ros_oid_callback(const char *oid, tvbuff_t *tvb, int offset, packet_info *p
if(!ros_try_string(oid, next_tvb, pinfo, tree) &&
!dissector_try_string(ros_oid_dissector_table, oid, next_tvb, pinfo, tree)){
- proto_item *item=NULL;
- proto_tree *next_tree=NULL;
+ proto_item *item=proto_tree_add_text(tree, next_tvb, 0, tvb_length_remaining(tvb, offset), "ROS: Dissector for OID:%s not implemented. Contact Wireshark developers if you want this supported", oid);
+ proto_tree *next_tree=proto_item_add_subtree(item, ett_ros_unknown);
- item=proto_tree_add_text(tree, next_tvb, 0, tvb_length_remaining(tvb, offset), "ROS: Dissector for OID:%s not implemented. Contact Wireshark developers if you want this supported", oid);
- if(item){
- next_tree=proto_item_add_subtree(item, ett_ros_unknown);
- }
+ expert_add_info_format (pinfo, item, PI_UNDECODED, PI_WARN,
+ "ROS: Dissector for OID %s not implemented", oid);
dissect_unknown_ber(pinfo, next_tvb, offset, next_tree);
}
@@ -455,6 +454,7 @@ dissect_ros(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
item = proto_tree_add_text(tree, tvb, offset, -1,"Unknown ROS PDU");
if(item){
+ expert_add_info_format (pinfo, item, PI_UNDECODED, PI_WARN, "Unknown ROS PDU");
next_tree=proto_item_add_subtree(item, ett_ros_unknown);
dissect_unknown_ber(pinfo, tvb, offset, next_tree);
}