aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/snmp/snmp.cnf
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2006-03-15 18:57:47 +0000
committerAnders Broman <anders.broman@ericsson.com>2006-03-15 18:57:47 +0000
commitb4d7dd60603ccab2fbd49f8ec6ab90b18ffe0a6a (patch)
tree1f54365efd0ec249d7f446ecc8417a3a8ad878df /asn1/snmp/snmp.cnf
parent61b223303ab41c0637908bcc7fc7471bd52c7a2d (diff)
downloadwireshark-b4d7dd60603ccab2fbd49f8ec6ab90b18ffe0a6a.tar.gz
wireshark-b4d7dd60603ccab2fbd49f8ec6ab90b18ffe0a6a.tar.bz2
wireshark-b4d7dd60603ccab2fbd49f8ec6ab90b18ffe0a6a.zip
Some more variable bindings and add some mising PDU types.
svn path=/trunk/; revision=17637
Diffstat (limited to 'asn1/snmp/snmp.cnf')
-rw-r--r--asn1/snmp/snmp.cnf97
1 files changed, 97 insertions, 0 deletions
diff --git a/asn1/snmp/snmp.cnf b/asn1/snmp/snmp.cnf
index f58f08847c..b409437961 100644
--- a/asn1/snmp/snmp.cnf
+++ b/asn1/snmp/snmp.cnf
@@ -15,6 +15,18 @@ SMUX-PDUs
Messagev2u/datav2u/plaintext v2u_plaintext
BulkPDU/request-id bulkPDU_request-id
+#.FN_PARS PDUs
+
+ VAL_PTR = &pdu_type
+
+#.FN_BODY PDUs
+
+gint pdu_type;
+
+%(DEFAULT_BODY)s
+ if (check_col(pinfo->cinfo, COL_INFO))
+ col_add_str(pinfo->cinfo, COL_INFO, val_to_str(pdu_type, snmp_PDUs_vals,"Unknown PDU type (%%u)"));
+
#.FN_BODY PDUs/get-request
gint8 class;
gboolean pc, ind_field;
@@ -75,6 +87,7 @@ BulkPDU/request-id bulkPDU_request-id
}
offset = dissect_snmp_PDU(TRUE, tvb, offset, pinfo, tree, hf_index);
+
#.FN_BODY PDUs/trap
gint8 class;
gboolean pc, ind_field;
@@ -90,6 +103,66 @@ BulkPDU/request-id bulkPDU_request-id
}
offset = dissect_snmp_Trap_PDU(TRUE, tvb, offset, pinfo, tree, hf_index);
+#.FN_BODY PDUs/getBulkRequest
+ gint8 class;
+ gboolean pc, ind_field;
+ gint32 tag;
+ guint32 len1;
+
+ if(!implicit_tag){
+ /* XXX asn2eth can not yet handle tagged assignment yes so this
+ * XXX is some conformance file magic to work around that bug
+ */
+ offset = get_ber_identifier(tvb, offset, &class, &pc, &tag);
+ offset = get_ber_length(tree, tvb, offset, &len1, &ind_field);
+ }
+ offset = dissect_snmp_GetBulkRequest_PDU(TRUE, tvb, offset, pinfo, tree, hf_index);
+
+#.FN_BODY PDUs/informRequest
+ gint8 class;
+ gboolean pc, ind_field;
+ gint32 tag;
+ guint32 len1;
+
+ if(!implicit_tag){
+ /* XXX asn2eth can not yet handle tagged assignment yes so this
+ * XXX is some conformance file magic to work around that bug
+ */
+ offset = get_ber_identifier(tvb, offset, &class, &pc, &tag);
+ offset = get_ber_length(tree, tvb, offset, &len1, &ind_field);
+ }
+ offset = dissect_snmp_InformRequest_PDU(TRUE, tvb, offset, pinfo, tree, hf_index);
+
+#.FN_BODY PDUs/sNMPv2-Trap
+ gint8 class;
+ gboolean pc, ind_field;
+ gint32 tag;
+ guint32 len1;
+
+ if(!implicit_tag){
+ /* XXX asn2eth can not yet handle tagged assignment yes so this
+ * XXX is some conformance file magic to work around that bug
+ */
+ offset = get_ber_identifier(tvb, offset, &class, &pc, &tag);
+ offset = get_ber_length(tree, tvb, offset, &len1, &ind_field);
+ }
+ offset = dissect_snmp_SNMPv2_Trap_PDU(TRUE, tvb, offset, pinfo, tree, hf_index);
+
+#.FN_BODY PDUs/report
+ gint8 class;
+ gboolean pc, ind_field;
+ gint32 tag;
+ guint32 len1;
+
+ if(!implicit_tag){
+ /* XXX asn2eth can not yet handle tagged assignment yes so this
+ * XXX is some conformance file magic to work around that bug
+ */
+ offset = get_ber_identifier(tvb, offset, &class, &pc, &tag);
+ offset = get_ber_length(tree, tvb, offset, &len1, &ind_field);
+ }
+ offset = dissect_snmp_Report_PDU(TRUE, tvb, offset, pinfo, tree, hf_index);
+
#.FN_PARS HeaderData/msgSecurityModel
VAL_PTR = &MsgSecurityModel
@@ -146,6 +219,30 @@ BulkPDU/request-id bulkPDU_request-id
snmp_variable_decode(tvb, tree, pinfo, oid_tvb, offset, &length, NULL);
offset = offset + length;
+#.FN_BODY Integer-value
+ guint length;
+
+ snmp_variable_decode(tvb, tree, pinfo, oid_tvb, offset, &length, NULL);
+ offset = offset + length;
+
+#.FN_BODY ObjectID-value
+ guint length;
+
+ snmp_variable_decode(tvb, tree, pinfo, oid_tvb, offset, &length, NULL);
+ offset = offset + length;
+
+#.FN_BODY Empty
+ guint length;
+
+ snmp_variable_decode(tvb, tree, pinfo, oid_tvb, offset, &length, NULL);
+ offset = offset + length;
+
+#.FN_BODY TimeTicks
+ guint length;
+
+ snmp_variable_decode(tvb, tree, pinfo, oid_tvb, offset, &length, NULL);
+ offset = offset + length;
+
#.TYPE_ATTR
IpAddress TYPE = FT_IPv4 DISPLAY = BASE_NONE STRINGS = NULL
Message/community TYPE = FT_STRING DISPLAY = BASE_HEX STRINGS = NULL