summaryrefslogtreecommitdiff
path: root/asn1/snmp
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2011-10-10 01:38:20 +0000
committerBill Meier <wmeier@newsguy.com>2011-10-10 01:38:20 +0000
commit6142dd287bb03011ee572d01bcf903c81523fd0c (patch)
tree2bd87f3a367ddef9e8f83eb6a3307cc974aba138 /asn1/snmp
parent93c7550b4a5cd7c93212a77f836ab78968f82282 (diff)
downloadwireshark-6142dd287bb03011ee572d01bcf903c81523fd0c.tar.gz
Convert 'encoding' parameter of certain proto_tree_add_item() calls in asn1/*:
Specifically: Replace FALSE|0 and TRUE|1 by ENC_BIG_ENDIAN|ENC_LITTLE_ENDIAN as the encoding parameter for proto_tree_add_item() calls which directly reference an item in hf[] which has a type of: FT_BOOLEAN FT_IPv4 FT_EUI64 FT_GUID FT_UINT_STRING Also: For type FT_IPv6 use ENC_NA. (This was missed in SVN #39260) svn path=/trunk/; revision=39332
Diffstat (limited to 'asn1/snmp')
-rw-r--r--asn1/snmp/packet-snmp-template.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/asn1/snmp/packet-snmp-template.c b/asn1/snmp/packet-snmp-template.c
index 4c61eddd83..8439b1ca7b 100644
--- a/asn1/snmp/packet-snmp-template.c
+++ b/asn1/snmp/packet-snmp-template.c
@@ -997,7 +997,7 @@ dissect_snmp_engineid(proto_tree *tree, tvbuff_t *tvb, int offset, int len)
case SNMP_ENGINEID_FORMAT_IPV6:
/* 16-byte IPv6 address */
if (len_remain==16) {
- proto_tree_add_item(tree, hf_snmp_engineid_ipv6, tvb, offset, 16, ENC_BIG_ENDIAN);
+ proto_tree_add_item(tree, hf_snmp_engineid_ipv6, tvb, offset, 16, ENC_NA);
offset+=16;
len_remain=0;
}