forked from osmocom/wireshark
SNMP with option -X and -T
svn path=/trunk/; revision=23352
This commit is contained in:
parent
de19156225
commit
44470bc5f4
|
@ -43,7 +43,7 @@ SRC_FILES = \
|
|||
$(EXTRA_DIST) \
|
||||
$(EXT_ASN_FILE_LIST)
|
||||
|
||||
A2W_FLAGS= -b
|
||||
A2W_FLAGS= -b -X -T
|
||||
|
||||
EXTRA_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
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,7 +1,7 @@
|
|||
/* Do not modify this file. */
|
||||
/* It is created automatically by the ASN.1 to Wireshark dissector compiler */
|
||||
/* ./packet-snmp.h */
|
||||
/* ../../tools/asn2wrs.py -b -p snmp -c snmp.cnf -s packet-snmp-template snmp.asn */
|
||||
/* packet-snmp.h */
|
||||
/* ../../tools/asn2wrs.py -b -X -T -p snmp -c snmp.cnf -s packet-snmp-template snmp.asn */
|
||||
|
||||
/* Input file: packet-snmp-template.h */
|
||||
|
||||
|
|
Loading…
Reference in New Issue