diff --git a/asn1/snmp/packet-snmp-template.c b/asn1/snmp/packet-snmp-template.c index 5914dc99d3..b204cbdc95 100644 --- a/asn1/snmp/packet-snmp-template.c +++ b/asn1/snmp/packet-snmp-template.c @@ -1759,10 +1759,10 @@ snmp_usm_priv_aes_common(snmp_usm_params_t* p, tvbuff_t* encryptedData, gchar co iv[1] = (p->boots & 0x00ff0000) >> 16; iv[2] = (p->boots & 0x0000ff00) >> 8; iv[3] = (p->boots & 0x000000ff); - iv[4] = (p->time & 0xff000000) >> 24; - iv[5] = (p->time & 0x00ff0000) >> 16; - iv[6] = (p->time & 0x0000ff00) >> 8; - iv[7] = (p->time & 0x000000ff); + iv[4] = (p->snmp_time & 0xff000000) >> 24; + iv[5] = (p->snmp_time & 0x00ff0000) >> 16; + iv[6] = (p->snmp_time & 0x0000ff00) >> 8; + iv[7] = (p->snmp_time & 0x000000ff); tvb_memcpy(p->priv_tvb,&(iv[8]),0,8); cryptgrm_len = tvb_captured_length(encryptedData); @@ -1907,7 +1907,7 @@ dissect_snmp_pdu(tvbuff_t *tvb, int offset, packet_info *pinfo, usm_p.authenticated = FALSE; usm_p.encrypted = FALSE; usm_p.boots = 0; - usm_p.time = 0; + usm_p.snmp_time = 0; usm_p.authOK = FALSE; /* diff --git a/asn1/snmp/packet-snmp-template.h b/asn1/snmp/packet-snmp-template.h index 3ade802264..7d6b746e7e 100644 --- a/asn1/snmp/packet-snmp-template.h +++ b/asn1/snmp/packet-snmp-template.h @@ -73,7 +73,7 @@ struct _snmp_usm_params_t { guint auth_offset; guint32 boots; - guint32 time; + guint32 snmp_time; tvbuff_t* engine_tvb; tvbuff_t* user_tvb; proto_item* auth_item; diff --git a/asn1/snmp/snmp.cnf b/asn1/snmp/snmp.cnf index bf7010ba41..f2b95009f4 100644 --- a/asn1/snmp/snmp.cnf +++ b/asn1/snmp/snmp.cnf @@ -88,7 +88,7 @@ gint pdu_type=-1; #.FN_PARS UsmSecurityParameters/msgAuthoritativeEngineTime - VAL_PTR = &usm_p.time + VAL_PTR = &usm_p.snmp_time #.FN_BODY UsmSecurityParameters/msgAuthoritativeEngineID diff --git a/epan/dissectors/packet-snmp.c b/epan/dissectors/packet-snmp.c index f909d62cdf..ec90e60a27 100644 --- a/epan/dissectors/packet-snmp.c +++ b/epan/dissectors/packet-snmp.c @@ -1861,10 +1861,10 @@ snmp_usm_priv_aes_common(snmp_usm_params_t* p, tvbuff_t* encryptedData, gchar co iv[1] = (p->boots & 0x00ff0000) >> 16; iv[2] = (p->boots & 0x0000ff00) >> 8; iv[3] = (p->boots & 0x000000ff); - iv[4] = (p->time & 0xff000000) >> 24; - iv[5] = (p->time & 0x00ff0000) >> 16; - iv[6] = (p->time & 0x0000ff00) >> 8; - iv[7] = (p->time & 0x000000ff); + iv[4] = (p->snmp_time & 0xff000000) >> 24; + iv[5] = (p->snmp_time & 0x00ff0000) >> 16; + iv[6] = (p->snmp_time & 0x0000ff00) >> 8; + iv[7] = (p->snmp_time & 0x000000ff); tvb_memcpy(p->priv_tvb,&(iv[8]),0,8); cryptgrm_len = tvb_captured_length(encryptedData); @@ -2520,7 +2520,7 @@ dissect_snmp_T_msgAuthoritativeEngineBoots(gboolean implicit_tag _U_, tvbuff_t * static int dissect_snmp_T_msgAuthoritativeEngineTime(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) { offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index, - &usm_p.time); + &usm_p.snmp_time); return offset; } @@ -3123,7 +3123,7 @@ dissect_snmp_pdu(tvbuff_t *tvb, int offset, packet_info *pinfo, usm_p.authenticated = FALSE; usm_p.encrypted = FALSE; usm_p.boots = 0; - usm_p.time = 0; + usm_p.snmp_time = 0; usm_p.authOK = FALSE; /* diff --git a/epan/dissectors/packet-snmp.h b/epan/dissectors/packet-snmp.h index d2497873cb..6b76918b0d 100644 --- a/epan/dissectors/packet-snmp.h +++ b/epan/dissectors/packet-snmp.h @@ -81,7 +81,7 @@ struct _snmp_usm_params_t { guint auth_offset; guint32 boots; - guint32 time; + guint32 snmp_time; tvbuff_t* engine_tvb; tvbuff_t* user_tvb; proto_item* auth_item;