diff options
author | Bill Meier <wmeier@newsguy.com> | 2011-10-06 03:35:44 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2011-10-06 03:35:44 +0000 |
commit | 4e57694d4aa2a652077e01fd6867a8def7ffdb15 (patch) | |
tree | 0896080ffb80104f2c23e3f8c273080088cff7cd /epan/dissectors/packet-lisp-data.c | |
parent | aae5eb7de0e2fd5a257d143852b832039ebb171e (diff) |
Convert 'encoding' parameter of certain proto_tree_add_item() calls in non-autogenerated epan/dissectors:
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_UINT8
FT_UINT16
FT_UINT24
FT_UINT32
FT_UINT64
FT_INT8
FT_INT16
FT_INT24
FT_INT32
FT_INT64
FT_FLOAT
FT_DOUBLE
svn path=/trunk/; revision=39288
Diffstat (limited to 'epan/dissectors/packet-lisp-data.c')
-rw-r--r-- | epan/dissectors/packet-lisp-data.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/epan/dissectors/packet-lisp-data.c b/epan/dissectors/packet-lisp-data.c index d45dbf133f..da1249090f 100644 --- a/epan/dissectors/packet-lisp-data.c +++ b/epan/dissectors/packet-lisp-data.c @@ -109,7 +109,7 @@ dissect_lisp_data(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) lisp_data_tree = proto_item_add_subtree(ti, ett_lisp_data); tif = proto_tree_add_item(lisp_data_tree, - hf_lisp_data_flags, tvb, offset, 1, FALSE); + hf_lisp_data_flags, tvb, offset, 1, ENC_BIG_ENDIAN); lisp_data_flags_tree = proto_item_add_subtree(tif, ett_lisp_data_flags); @@ -124,7 +124,7 @@ dissect_lisp_data(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) proto_tree_add_item(lisp_data_flags_tree, hf_lisp_data_flags_iid, tvb, offset, 1, FALSE); proto_tree_add_item(lisp_data_flags_tree, - hf_lisp_data_flags_res, tvb, offset, 1, FALSE); + hf_lisp_data_flags_res, tvb, offset, 1, ENC_BIG_ENDIAN); flags = tvb_get_guint8(tvb, offset); offset += 1; @@ -140,38 +140,38 @@ dissect_lisp_data(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) "Invalid flag combination: N and V can't be set both"); } proto_tree_add_item(lisp_data_tree, - hf_lisp_data_nonce, tvb, offset, 3, FALSE); + hf_lisp_data_nonce, tvb, offset, 3, ENC_BIG_ENDIAN); } else { if (flags&LISP_DATA_FLAG_V) { proto_item *tiv; proto_tree *lisp_data_mapver_tree; tiv = proto_tree_add_item(lisp_data_tree, - hf_lisp_data_mapver, tvb, offset, 3, FALSE); + hf_lisp_data_mapver, tvb, offset, 3, ENC_BIG_ENDIAN); lisp_data_mapver_tree = proto_item_add_subtree(tiv, ett_lisp_data_mapver); proto_tree_add_item(lisp_data_mapver_tree, - hf_lisp_data_srcmapver, tvb, offset, 3, FALSE); + hf_lisp_data_srcmapver, tvb, offset, 3, ENC_BIG_ENDIAN); proto_tree_add_item(lisp_data_mapver_tree, - hf_lisp_data_dstmapver, tvb, offset, 3, FALSE); + hf_lisp_data_dstmapver, tvb, offset, 3, ENC_BIG_ENDIAN); } } offset += 3; if (flags&LISP_DATA_FLAG_I) { proto_tree_add_item(lisp_data_tree, - hf_lisp_data_iid, tvb, offset, 3, FALSE); + hf_lisp_data_iid, tvb, offset, 3, ENC_BIG_ENDIAN); offset += 3; if (flags&LISP_DATA_FLAG_L) { proto_tree_add_item(lisp_data_tree, - hf_lisp_data_lsb8, tvb, offset, 1, FALSE); + hf_lisp_data_lsb8, tvb, offset, 1, ENC_BIG_ENDIAN); } offset +=1; } else { if (flags&LISP_DATA_FLAG_L) { proto_tree_add_item(lisp_data_tree, - hf_lisp_data_lsb, tvb, offset, 4, FALSE); + hf_lisp_data_lsb, tvb, offset, 4, ENC_BIG_ENDIAN); offset += 4; } } |