diff options
author | Luis Ontanon <luis.ontanon@gmail.com> | 2005-07-25 23:33:44 +0000 |
---|---|---|
committer | Luis Ontanon <luis.ontanon@gmail.com> | 2005-07-25 23:33:44 +0000 |
commit | 7796905fd8bcc30c29f49fb296019848372b54ee (patch) | |
tree | 6455cb40731b45a86ba5d1dd516939acab9fb27b /epan/dissectors/packet-pktc.c | |
parent | 6fa95413b8f751db9a87d061f8c2aef25a03cd7b (diff) |
From Thomas Anders:
SNMP Engine ID dissection according to RFC3411
svn path=/trunk/; revision=15073
Diffstat (limited to 'epan/dissectors/packet-pktc.c')
-rw-r--r-- | epan/dissectors/packet-pktc.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/epan/dissectors/packet-pktc.c b/epan/dissectors/packet-pktc.c index 3f52fb80ba..93fa5f4a60 100644 --- a/epan/dissectors/packet-pktc.c +++ b/epan/dissectors/packet-pktc.c @@ -37,6 +37,7 @@ #include <epan/packet.h> #include "packet-pktc.h" #include "packet-kerberos.h" +#include "packet-snmp.h" #define PKTC_PORT 1293 #define PKTC_MTAFQDN_PORT 2246 @@ -81,6 +82,7 @@ static gint hf_pktc_mtafqdn_ip = -1; static gint ett_pktc = -1; static gint ett_pktc_app_spec_data = -1; static gint ett_pktc_list_of_ciphersuites = -1; +static gint ett_pktc_engineid = -1; static gint ett_pktc_mtafqdn = -1; @@ -170,7 +172,9 @@ dissect_pktc_app_specific_data(packet_info *pinfo _U_, proto_tree *parent_tree, { int old_offset=offset; proto_tree *tree = NULL; + proto_tree *engineid_tree = NULL; proto_item *item = NULL; + proto_item *engineid_item = NULL; guint8 len; if (parent_tree) { @@ -192,7 +196,9 @@ dissect_pktc_app_specific_data(packet_info *pinfo _U_, proto_tree *parent_tree, offset+=1; /* snmpEngineID */ - proto_tree_add_item(tree, hf_pktc_snmpEngineID, tvb, offset, len, FALSE); + engineid_item = proto_tree_add_item(tree, hf_pktc_snmpEngineID, tvb, offset, len, FALSE); + engineid_tree = proto_item_add_subtree(engineid_item, ett_pktc_engineid); + dissect_snmp_engineid(engineid_tree, tvb, offset, len); offset+=len; /* boots */ @@ -719,6 +725,7 @@ proto_register_pktc(void) &ett_pktc, &ett_pktc_app_spec_data, &ett_pktc_list_of_ciphersuites, + &ett_pktc_engineid, }; proto_pktc = proto_register_protocol("PacketCable", "PKTC", "pktc"); |