diff options
author | wmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-10-05 00:25:09 +0000 |
---|---|---|
committer | wmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-10-05 00:25:09 +0000 |
commit | 99daa0cebae9249cc712da88659b398bacf188bb (patch) | |
tree | d76c0ced7ac166a624bba184ac8ac32285207a95 /epan/dissectors/packet-scsi-osd.c | |
parent | 5c48051aa3723622efd3c6abaa651f8a36e8dd1b (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
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39261 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-scsi-osd.c')
-rw-r--r-- | epan/dissectors/packet-scsi-osd.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/epan/dissectors/packet-scsi-osd.c b/epan/dissectors/packet-scsi-osd.c index 267d3a07a7..adf382cb9a 100644 --- a/epan/dissectors/packet-scsi-osd.c +++ b/epan/dissectors/packet-scsi-osd.c @@ -190,7 +190,7 @@ static void dissect_osd_user_object_id(tvbuff_t *tvb, int offset, proto_tree *tree) { /* user object id */ - proto_tree_add_item(tree, hf_scsi_osd_user_object_id, tvb, offset, 8, 0); + proto_tree_add_item(tree, hf_scsi_osd_user_object_id, tvb, offset, 8, ENC_NA); offset+=8; } @@ -738,19 +738,19 @@ dissect_osd_capability(tvbuff_t *tvb, int offset, proto_tree *parent_tree) offset++; /* capability expiration time */ - proto_tree_add_item(tree, hf_scsi_osd_capability_expiration_time, tvb, offset, 6, 0); + proto_tree_add_item(tree, hf_scsi_osd_capability_expiration_time, tvb, offset, 6, ENC_NA); offset+=6; /* audit */ - proto_tree_add_item(tree, hf_scsi_osd_audit, tvb, offset, 20, 0); + proto_tree_add_item(tree, hf_scsi_osd_audit, tvb, offset, 20, ENC_NA); offset+=20; /* capability discriminator */ - proto_tree_add_item(tree, hf_scsi_osd_capability_discriminator, tvb, offset, 12, 0); + proto_tree_add_item(tree, hf_scsi_osd_capability_discriminator, tvb, offset, 12, ENC_NA); offset+=12; /* object created time */ - proto_tree_add_item(tree, hf_scsi_osd_object_created_time, tvb, offset, 6, 0); + proto_tree_add_item(tree, hf_scsi_osd_object_created_time, tvb, offset, 6, ENC_NA); offset+=6; /* object type */ @@ -769,7 +769,7 @@ dissect_osd_capability(tvbuff_t *tvb, int offset, proto_tree *parent_tree) offset++; /* object descriptor */ - proto_tree_add_item(tree, hf_scsi_osd_object_descriptor, tvb, offset, 24, 0); + proto_tree_add_item(tree, hf_scsi_osd_object_descriptor, tvb, offset, 24, ENC_NA); offset+=24; } @@ -789,11 +789,11 @@ dissect_osd_security_parameters(tvbuff_t *tvb, int offset, proto_tree *parent_tr } /* request integrity check value */ - proto_tree_add_item(tree, hf_scsi_osd_ricv, tvb, offset, 20, 0); + proto_tree_add_item(tree, hf_scsi_osd_ricv, tvb, offset, 20, ENC_NA); offset+=20; /* request nonce */ - proto_tree_add_item(tree, hf_scsi_osd_request_nonce, tvb, offset, 12, 0); + proto_tree_add_item(tree, hf_scsi_osd_request_nonce, tvb, offset, 12, ENC_NA); offset+=12; /* data in integrity check value offset */ @@ -1018,7 +1018,7 @@ static void dissect_osd_initial_object_id(tvbuff_t *tvb, int offset, proto_tree *tree) { /* initial object id */ - proto_tree_add_item(tree, hf_scsi_osd_initial_object_id, tvb, offset, 8, 0); + proto_tree_add_item(tree, hf_scsi_osd_initial_object_id, tvb, offset, 8, ENC_NA); offset+=8; } @@ -1035,7 +1035,7 @@ static void dissect_osd_continuation_object_id(tvbuff_t *tvb, int offset, proto_tree *tree) { /* continuation object id */ - proto_tree_add_item(tree, hf_scsi_osd_continuation_object_id, tvb, offset, 8, 0); + proto_tree_add_item(tree, hf_scsi_osd_continuation_object_id, tvb, offset, 8, ENC_NA); offset+=8; } @@ -1163,7 +1163,7 @@ static void dissect_osd_requested_user_object_id(tvbuff_t *tvb, int offset, proto_tree *tree) { /* request user object id */ - proto_tree_add_item(tree, hf_scsi_osd_requested_user_object_id, tvb, offset, 8, 0); + proto_tree_add_item(tree, hf_scsi_osd_requested_user_object_id, tvb, offset, 8, ENC_NA); offset+=8; } @@ -1332,13 +1332,13 @@ dissect_osd_set_key_version(tvbuff_t *tvb, int offset, proto_tree *tree) static void dissect_osd_key_identifier(tvbuff_t *tvb, int offset, proto_tree *tree) { - proto_tree_add_item(tree, hf_scsi_osd_key_identifier, tvb, offset, 7, 0); + proto_tree_add_item(tree, hf_scsi_osd_key_identifier, tvb, offset, 7, ENC_NA); } static void dissect_osd_seed(tvbuff_t *tvb, int offset, proto_tree *tree) { - proto_tree_add_item(tree, hf_scsi_osd_seed, tvb, offset, 20, 0); + proto_tree_add_item(tree, hf_scsi_osd_seed, tvb, offset, 20, ENC_NA); } static void @@ -1492,7 +1492,7 @@ static void dissect_osd_collection_object_id(tvbuff_t *tvb, int offset, proto_tree *tree) { /* collection object id */ - proto_tree_add_item(tree, hf_scsi_osd_collection_object_id, tvb, offset, 8, 0); + proto_tree_add_item(tree, hf_scsi_osd_collection_object_id, tvb, offset, 8, ENC_NA); offset+=8; } @@ -1661,7 +1661,7 @@ static void dissect_osd_requested_collection_object_id(tvbuff_t *tvb, int offset, proto_tree *tree) { /* requested collection object id */ - proto_tree_add_item(tree, hf_scsi_osd_requested_collection_object_id, tvb, offset, 8, 0); + proto_tree_add_item(tree, hf_scsi_osd_requested_collection_object_id, tvb, offset, 8, ENC_NA); offset+=8; } |