diff options
author | stig <stig@f5534014-38df-0310-8fa8-9805f1628bb7> | 2009-05-20 09:27:45 +0000 |
---|---|---|
committer | stig <stig@f5534014-38df-0310-8fa8-9805f1628bb7> | 2009-05-20 09:27:45 +0000 |
commit | b319115273532fac7c7509311c7c4035c744f0dc (patch) | |
tree | 73337415a81a41f99b58c9ddeedd3be0cde4c9f2 /asn1/ros | |
parent | dc3c89968c367123d41b8f20eb49b638df4d0c19 (diff) |
Added expert info for OID not implemented.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28422 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'asn1/ros')
-rw-r--r-- | asn1/ros/packet-ros-template.c | 12 |
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); } |