diff options
author | Jörg Mayer <jmayer@loplof.de> | 2011-08-26 17:02:33 +0000 |
---|---|---|
committer | Jörg Mayer <jmayer@loplof.de> | 2011-08-26 17:02:33 +0000 |
commit | 18735eaba54a23da33da5dd33dffecdf9340452e (patch) | |
tree | c1af08f356c9ce0bb18c7e1c1ac34e9d295fb067 /epan/dissectors/packet-tftp.c | |
parent | e0645e724c63c956ddac4a50a5b2d29c3800c002 (diff) |
Replace TRUE/FALSE with the new ENCAP stuff where appropriate
svn path=/trunk/; revision=38746
Diffstat (limited to 'epan/dissectors/packet-tftp.c')
-rw-r--r-- | epan/dissectors/packet-tftp.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/epan/dissectors/packet-tftp.c b/epan/dissectors/packet-tftp.c index 3930da28bc..17f2f401b6 100644 --- a/epan/dissectors/packet-tftp.c +++ b/epan/dissectors/packet-tftp.c @@ -138,9 +138,9 @@ tftp_dissect_options(tvbuff_t *tvb, packet_info *pinfo, int offset, opt_tree = proto_item_add_subtree(opt_item, ett_tftp_option); proto_tree_add_item(opt_tree, hf_tftp_option_name, tvb, offset, - option_len, FALSE); + option_len, ENC_BIG_ENDIAN); proto_tree_add_item(opt_tree, hf_tftp_option_value, tvb, value_offset, - value_len, FALSE); + value_len, ENC_BIG_ENDIAN); offset += option_len + value_len; @@ -182,7 +182,7 @@ static void dissect_tftp_message(tftp_conv_info_t *tftp_info, val_to_str(opcode, tftp_opcode_vals, "Unknown (0x%04x)")); if (tree) { - ti = proto_tree_add_item(tree, proto_tftp, tvb, offset, -1, FALSE); + ti = proto_tree_add_item(tree, proto_tftp, tvb, offset, -1, ENC_BIG_ENDIAN); tftp_tree = proto_item_add_subtree(ti, ett_tftp); if (tftp_info->source_file) { @@ -207,7 +207,7 @@ static void dissect_tftp_message(tftp_conv_info_t *tftp_info, case TFTP_RRQ: i1 = tvb_strsize(tvb, offset); proto_tree_add_item(tftp_tree, hf_tftp_source_file, - tvb, offset, i1, FALSE); + tvb, offset, i1, ENC_BIG_ENDIAN); tftp_info->source_file = tvb_get_seasonal_string(tvb, offset, i1); @@ -218,7 +218,7 @@ static void dissect_tftp_message(tftp_conv_info_t *tftp_info, i1 = tvb_strsize(tvb, offset); proto_tree_add_item(tftp_tree, hf_tftp_transfer_type, - tvb, offset, i1, FALSE); + tvb, offset, i1, ENC_BIG_ENDIAN); col_append_fstr(pinfo->cinfo, COL_INFO, ", Transfer type: %s", tvb_format_stringzpad(tvb, offset, i1)); @@ -232,7 +232,7 @@ static void dissect_tftp_message(tftp_conv_info_t *tftp_info, case TFTP_WRQ: i1 = tvb_strsize(tvb, offset); proto_tree_add_item(tftp_tree, hf_tftp_destination_file, - tvb, offset, i1, FALSE); + tvb, offset, i1, ENC_BIG_ENDIAN); tftp_info->destination_file = tvb_get_seasonal_string(tvb, offset, i1); @@ -244,7 +244,7 @@ static void dissect_tftp_message(tftp_conv_info_t *tftp_info, i1 = tvb_strsize(tvb, offset); proto_tree_add_item(tftp_tree, hf_tftp_transfer_type, - tvb, offset, i1, FALSE); + tvb, offset, i1, ENC_BIG_ENDIAN); col_append_fstr(pinfo->cinfo, COL_INFO, ", Transfer type: %s", tvb_format_stringzpad(tvb, offset, i1)); @@ -300,7 +300,7 @@ static void dissect_tftp_message(tftp_conv_info_t *tftp_info, i1 = tvb_strsize(tvb, offset); proto_tree_add_item(tftp_tree, hf_tftp_error_string, tvb, offset, - i1, FALSE); + i1, ENC_BIG_ENDIAN); col_append_fstr(pinfo->cinfo, COL_INFO, ", Message: %s", tvb_format_stringzpad(tvb, offset, i1)); |