aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/snmp
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2007-11-04 16:47:30 +0000
committerAnders Broman <anders.broman@ericsson.com>2007-11-04 16:47:30 +0000
commit44470bc5f42cee0517e718e2b6a143a9c522d371 (patch)
treedb1d8cd6c403b3c00a464a04b0c9776826555708 /asn1/snmp
parentde19156225e647a5b46e8efb06fdf0a736836168 (diff)
downloadwireshark-44470bc5f42cee0517e718e2b6a143a9c522d371.tar.gz
wireshark-44470bc5f42cee0517e718e2b6a143a9c522d371.tar.bz2
wireshark-44470bc5f42cee0517e718e2b6a143a9c522d371.zip
SNMP with option -X and -T
svn path=/trunk/; revision=23352
Diffstat (limited to 'asn1/snmp')
-rw-r--r--asn1/snmp/Makefile.common2
-rw-r--r--asn1/snmp/snmp.cnf125
2 files changed, 1 insertions, 126 deletions
diff --git a/asn1/snmp/Makefile.common b/asn1/snmp/Makefile.common
index 12ea3b2aef..39d0564fb5 100644
--- a/asn1/snmp/Makefile.common
+++ b/asn1/snmp/Makefile.common
@@ -43,7 +43,7 @@ SRC_FILES = \
$(EXTRA_DIST) \
$(EXT_ASN_FILE_LIST)
-A2W_FLAGS= -b
+A2W_FLAGS= -b -X -T
EXTRA_CNF=
diff --git a/asn1/snmp/snmp.cnf b/asn1/snmp/snmp.cnf
index 94b4a5057c..0a9a178456 100644
--- a/asn1/snmp/snmp.cnf
+++ b/asn1/snmp/snmp.cnf
@@ -8,10 +8,6 @@
SMUX-PDUs
#.NO_EMIT
-GetNextRequest-PDU
-GetResponse-PDU
-SetRequest-PDU
-GetRequest-PDU
NotificationName
VarBind
@@ -32,140 +28,19 @@ gint pdu_type;
if (check_col(actx->pinfo->cinfo, COL_INFO))
col_add_str(actx->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;
- gint32 tag;
- guint32 len1;
-
- if(!implicit_tag){
- /* XXX asn2wrs 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(tvb, offset, &len1, &ind_field);
- }
- offset = dissect_snmp_PDU(TRUE, tvb, offset, actx, tree, hf_index);
-
-#.FN_BODY PDUs/get-next-request
- gint8 class;
- gboolean pc, ind_field;
- gint32 tag;
- guint32 len1;
-
- if(!implicit_tag){
- /* XXX asn2wrs 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(tvb, offset, &len1, &ind_field);
- }
- offset = dissect_snmp_PDU(TRUE, tvb, offset, actx, tree, hf_index);
-
-#.FN_BODY PDUs/get-response
- gint8 class;
- gboolean pc, ind_field;
- gint32 tag;
- guint32 len1;
-
- if(!implicit_tag){
- /* XXX asn2wrs 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(tvb, offset, &len1, &ind_field);
- }
- offset = dissect_snmp_PDU(TRUE, tvb, offset, actx, tree, hf_index);
-
-#.FN_BODY PDUs/set-request
- gint8 class;
- gboolean pc, ind_field;
- gint32 tag;
- guint32 len1;
-
- if(!implicit_tag){
- /* XXX asn2wrs 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(tvb, offset, &len1, &ind_field);
- }
- offset = dissect_snmp_PDU(TRUE, tvb, offset, actx, tree, hf_index);
-
-
#.FN_BODY PDUs/trap
- gint8 class;
- gboolean pc, ind_field;
- gint32 tag;
- guint32 len1;
-
- if(!implicit_tag){
- /* XXX asn2wrs 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(tvb, offset, &len1, &ind_field);
- }
offset = dissect_snmp_Trap_PDU(TRUE, tvb, offset, actx, tree, hf_index);
#.FN_BODY PDUs/getBulkRequest
- gint8 class;
- gboolean pc, ind_field;
- gint32 tag;
- guint32 len1;
-
- if(!implicit_tag){
- /* XXX asn2wrs 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(tvb, offset, &len1, &ind_field);
- }
offset = dissect_snmp_GetBulkRequest_PDU(TRUE, tvb, offset, actx, tree, hf_index);
#.FN_BODY PDUs/informRequest
- gint8 class;
- gboolean pc, ind_field;
- gint32 tag;
- guint32 len1;
-
- if(!implicit_tag){
- /* XXX asn2wrs 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(tvb, offset, &len1, &ind_field);
- }
offset = dissect_snmp_InformRequest_PDU(TRUE, tvb, offset, actx, tree, hf_index);
#.FN_BODY PDUs/sNMPv2-Trap
- gint8 class;
- gboolean pc, ind_field;
- gint32 tag;
- guint32 len1;
-
- if(!implicit_tag){
- /* XXX asn2wrs 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(tvb, offset, &len1, &ind_field);
- }
offset = dissect_snmp_SNMPv2_Trap_PDU(TRUE, tvb, offset, actx, tree, hf_index);
#.FN_BODY PDUs/report
- gint8 class;
- gboolean pc, ind_field;
- gint32 tag;
- guint32 len1;
-
- if(!implicit_tag){
- /* XXX asn2wrs 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(tvb, offset, &len1, &ind_field);
- }
offset = dissect_snmp_Report_PDU(TRUE, tvb, offset, actx, tree, hf_index);
#.FN_PARS HeaderData/msgSecurityModel