diff options
author | Bill Meier <wmeier@newsguy.com> | 2011-10-05 00:25:09 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2011-10-05 00:25:09 +0000 |
commit | 799578fb29a901adef58f6792b01c3e580fb577a (patch) | |
tree | d76c0ced7ac166a624bba184ac8ac32285207a95 /epan/dissectors/packet-fcfcs.c | |
parent | 94f36ca4ff177617fcc4e4ca8a171e374f8aeff6 (diff) |
Use ENC_NA as encoding for proto_tree_add_item() calls which directly reference an hf item with types in hf[] of:
FT_NONE
FT_BYTES
FT_IPV6
FT_IPXNET
FT_OID
svn path=/trunk/; revision=39261
Diffstat (limited to 'epan/dissectors/packet-fcfcs.c')
-rw-r--r-- | epan/dissectors/packet-fcfcs.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/epan/dissectors/packet-fcfcs.c b/epan/dissectors/packet-fcfcs.c index 3b23dc448b..e1c60b159b 100644 --- a/epan/dissectors/packet-fcfcs.c +++ b/epan/dissectors/packet-fcfcs.c @@ -376,7 +376,7 @@ dissect_fcfcs_gppn (tvbuff_t *tvb, proto_tree *tree, gboolean isreq) tvb_fcwwn_to_str (tvb, offset)); } else { - proto_tree_add_item (tree, hf_fcs_physportnum, tvb, offset, 4, 0); + proto_tree_add_item (tree, hf_fcs_physportnum, tvb, offset, 4, ENC_NA); } } } @@ -440,7 +440,7 @@ dissect_fcfcs_gplnl (tvbuff_t *tvb, proto_tree *tree, gboolean isreq) proto_tree_add_text (tree, tvb, offset, 1, "Platform Name Length: %d", len); proto_tree_add_item (tree, hf_fcs_platformname, tvb, offset+1, - len, 0); + len, ENC_NA); } else { numelem = tvb_get_ntohl (tvb, offset); @@ -469,7 +469,7 @@ dissect_fcfcs_gplt (tvbuff_t *tvb, proto_tree *tree, gboolean isreq) proto_tree_add_text (tree, tvb, offset, 1, "Platform Name Length: %d", len); proto_tree_add_item (tree, hf_fcs_platformname, tvb, offset+1, - len, 0); + len, ENC_NA); } else { proto_tree_add_item (tree, hf_fcs_platformtype, tvb, offset+3, @@ -490,7 +490,7 @@ dissect_fcfcs_gplml (tvbuff_t *tvb, proto_tree *tree, gboolean isreq) proto_tree_add_text (tree, tvb, offset, 1, "Platform Name Length: %d", len); proto_tree_add_item (tree, hf_fcs_platformname, tvb, offset+1, - len, 0); + len, ENC_NA); } else { numelem = tvb_get_ntohl (tvb, offset); @@ -527,7 +527,7 @@ dissect_fcfcs_gnpl (tvbuff_t *tvb, proto_tree *tree, gboolean isreq) proto_tree_add_text (tree, tvb, offset, 1, "Platform Name Length: %d", len); proto_tree_add_item (tree, hf_fcs_platformname, tvb, offset+1, - len, 0); + len, ENC_NA); } } } @@ -552,7 +552,7 @@ dissect_fcfcs_gpnl (tvbuff_t *tvb, proto_tree *tree, gboolean isreq) "Platform Name Length: %d", len); proto_tree_add_item (tree, hf_fcs_platformname, tvb, offset+1, - len, 0); + len, ENC_NA); offset += 256; } } @@ -589,7 +589,7 @@ dissect_fcfcs_rpl (tvbuff_t *tvb, proto_tree *tree, gboolean isreq) proto_tree_add_text (tree, tvb, offset, 1, "Platform Name Length: %d", len); proto_tree_add_item (tree, hf_fcs_platformname, tvb, offset+1, - len, 0); + len, ENC_NA); proto_tree_add_item (tree, hf_fcs_platformtype, tvb, offset+256, 4, 0); numelem = tvb_get_ntohl (tvb, offset+260); @@ -631,7 +631,7 @@ dissect_fcfcs_rpln (tvbuff_t *tvb, proto_tree *tree, gboolean isreq) proto_tree_add_text (tree, tvb, offset, 1, "Platform Name Length: %d", len); proto_tree_add_item (tree, hf_fcs_platformname, tvb, offset+1, - len, 0); + len, ENC_NA); proto_tree_add_string (tree, hf_fcs_platformnname, tvb, offset+256, 8, tvb_fcwwn_to_str (tvb, offset+256)); } @@ -650,7 +650,7 @@ dissect_fcfcs_rplt (tvbuff_t *tvb, proto_tree *tree, gboolean isreq) proto_tree_add_text (tree, tvb, offset, 1, "Platform Name Length: %d", len); proto_tree_add_item (tree, hf_fcs_platformname, tvb, offset+1, - len, 0); + len, ENC_NA); proto_tree_add_item (tree, hf_fcs_platformtype, tvb, offset+256, 4, 0); } @@ -669,7 +669,7 @@ dissect_fcfcs_rplm (tvbuff_t *tvb, proto_tree *tree, gboolean isreq) proto_tree_add_text (tree, tvb, offset, 1, "Platform Name Length: %d", len); proto_tree_add_item (tree, hf_fcs_platformname, tvb, offset+1, - len, 0); + len, ENC_NA); len = tvb_get_guint8 (tvb, offset+256); proto_tree_add_text (tree, tvb, offset+256, 1, "Platform Mgmt. Address Length: %d", len); @@ -691,7 +691,7 @@ dissect_fcfcs_dpl (tvbuff_t *tvb, proto_tree *tree, gboolean isreq) proto_tree_add_text (tree, tvb, offset, 1, "Platform Name Length: %d", len); proto_tree_add_item (tree, hf_fcs_platformname, tvb, offset+1, - len, 0); + len, ENC_NA); } } } @@ -721,7 +721,7 @@ dissect_fcfcs_dplml (tvbuff_t *tvb, proto_tree *tree, gboolean isreq) proto_tree_add_text (tree, tvb, offset, 1, "Platform Name Length: %d", len); proto_tree_add_item (tree, hf_fcs_platformname, tvb, offset+1, - len, 0); + len, ENC_NA); } } } |