diff options
author | Bill Meier <wmeier@newsguy.com> | 2011-10-04 22:44:31 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2011-10-04 22:44:31 +0000 |
commit | 94f36ca4ff177617fcc4e4ca8a171e374f8aeff6 (patch) | |
tree | 060bfcfb238455d21752efec8612998f2ab1db6f /epan/dissectors/packet-teredo.c | |
parent | 039fc59cb110aa485e910583d1edd5ff81ca2168 (diff) |
Use ENC_NA as encoding for proto_tree_add_item() calls which directly reference an hf item (in hf[] with types:
FT_NONE
FT_BYTES
FT_IPV6
FT_IPXNET
FT_OID
Note: Encoding field set to ENC_NA only if the field was previously TRUE|FALSE|ENC_LITTLE_ENDIAN|ENC_BIG_ENDIAN
svn path=/trunk/; revision=39260
Diffstat (limited to 'epan/dissectors/packet-teredo.c')
-rw-r--r-- | epan/dissectors/packet-teredo.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/epan/dissectors/packet-teredo.c b/epan/dissectors/packet-teredo.c index ef7b74e472..f24da70e34 100644 --- a/epan/dissectors/packet-teredo.c +++ b/epan/dissectors/packet-teredo.c @@ -107,7 +107,7 @@ parse_teredo_auth(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, proto_item *ti; ti = proto_tree_add_item(tree, hf_teredo_auth, tvb, offset-4, - 13 + idlen + aulen, FALSE); + 13 + idlen + aulen, ENC_NA); tree = proto_item_add_subtree(ti, ett_teredo_auth); proto_tree_add_item(tree, hf_teredo_auth_idlen, tvb, @@ -118,23 +118,23 @@ parse_teredo_auth(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, /* idlen is usually zero */ if (idlen) { proto_tree_add_item(tree, hf_teredo_auth_id, tvb, - offset, idlen, FALSE); + offset, idlen, ENC_NA); offset += idlen; } /* aulen is usually zero */ if (aulen) { proto_tree_add_item(tree, hf_teredo_auth_value, tvb, - offset, aulen, FALSE); + offset, aulen, ENC_NA); offset += aulen; } proto_tree_add_item(tree, hf_teredo_auth_nonce, tvb, - offset, 8, FALSE); + offset, 8, ENC_NA); offset += 8; proto_tree_add_item(tree, hf_teredo_auth_conf, tvb, - offset, 1, FALSE); + offset, 1, ENC_NA); offset++; } else @@ -159,7 +159,7 @@ parse_teredo_orig(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, if (tree) { ti = proto_tree_add_item(tree, hf_teredo_orig, tvb, offset, - 8, FALSE); + 8, ENC_NA); tree = proto_item_add_subtree(ti, ett_teredo_orig); } offset += 2; |