diff options
author | Bill Meier <wmeier@newsguy.com> | 2011-10-10 01:38:20 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2011-10-10 01:38:20 +0000 |
commit | 6142dd287bb03011ee572d01bcf903c81523fd0c (patch) | |
tree | 2bd87f3a367ddef9e8f83eb6a3307cc974aba138 /epan/dissectors/packet-snmp.c | |
parent | 93c7550b4a5cd7c93212a77f836ab78968f82282 (diff) | |
download | wireshark-6142dd287bb03011ee572d01bcf903c81523fd0c.tar.gz wireshark-6142dd287bb03011ee572d01bcf903c81523fd0c.tar.bz2 wireshark-6142dd287bb03011ee572d01bcf903c81523fd0c.zip |
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 'epan/dissectors/packet-snmp.c')
-rw-r--r-- | epan/dissectors/packet-snmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-snmp.c b/epan/dissectors/packet-snmp.c index 6f5d1ed874..22d115e91e 100644 --- a/epan/dissectors/packet-snmp.c +++ b/epan/dissectors/packet-snmp.c @@ -1099,7 +1099,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; } |