diff options
author | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2007-05-11 03:02:38 +0000 |
---|---|---|
committer | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2007-05-11 03:02:38 +0000 |
commit | ff35bf2ca1b8b764ece488f26bd6dbb695eb9d46 (patch) | |
tree | 56a35f85b41e7f94378eaa9183c63ace0b79fe40 /epan/dissectors/packet-smb.c | |
parent | 06886379c7ce96655b0a424cde831f5540e60be2 (diff) | |
download | wireshark-ff35bf2ca1b8b764ece488f26bd6dbb695eb9d46.tar.gz |
make create_options, access_mask and share_access fitlerable
svn path=/trunk/; revision=21745
Diffstat (limited to 'epan/dissectors/packet-smb.c')
-rw-r--r-- | epan/dissectors/packet-smb.c | 33 |
1 files changed, 25 insertions, 8 deletions
diff --git a/epan/dissectors/packet-smb.c b/epan/dissectors/packet-smb.c index 2fc7e20e28..9784843115 100644 --- a/epan/dissectors/packet-smb.c +++ b/epan/dissectors/packet-smb.c @@ -117,6 +117,10 @@ static int hf_smb_nt_status = -1; static int hf_smb_error_class = -1; static int hf_smb_error_code = -1; static int hf_smb_reserved = -1; +static int hf_smb_create_flags = -1; +static int hf_smb_create_options = -1; +static int hf_smb_share_access = -1; +static int hf_smb_access_mask = -1; static int hf_smb_flags_lock = -1; static int hf_smb_flags_receive_buffer = -1; static int hf_smb_flags_caseless = -1; @@ -3066,8 +3070,8 @@ dissect_nt_create_bits(tvbuff_t *tvb, proto_tree *parent_tree, int offset, guint proto_tree *tree = NULL; if(parent_tree){ - item = proto_tree_add_text(parent_tree, tvb, offset, 4, - "Create Flags: 0x%08x", mask); + item = proto_tree_add_uint(parent_tree, hf_smb_create_flags, tvb, offset, 4, mask); + tree = proto_item_add_subtree(item, ett_smb_nt_create_bits); } @@ -3105,8 +3109,7 @@ dissect_smb_access_mask_bits(tvbuff_t *tvb, proto_tree *parent_tree, int offset, proto_tree *tree = NULL; if(parent_tree){ - item = proto_tree_add_text(parent_tree, tvb, offset, 4, - "Access Mask: 0x%08x", mask); + item = proto_tree_add_uint(parent_tree, hf_smb_access_mask, tvb, offset, 4, mask); tree = proto_item_add_subtree(item, ett_smb_nt_access_mask); } @@ -3188,8 +3191,7 @@ dissect_nt_share_access_bits(tvbuff_t *tvb, proto_tree *parent_tree, int offset, proto_tree *tree = NULL; if(parent_tree){ - item = proto_tree_add_text(parent_tree, tvb, offset, 4, - "Share Access: 0x%08x", mask); + item = proto_tree_add_uint(parent_tree, hf_smb_share_access, tvb, offset, 4, mask); tree = proto_item_add_subtree(item, ett_smb_nt_share_access); } @@ -3236,8 +3238,7 @@ dissect_nt_create_options_bits(tvbuff_t *tvb, proto_tree *parent_tree, int offse proto_tree *tree = NULL; if(parent_tree){ - item = proto_tree_add_text(parent_tree, tvb, offset, 4, - "Create Options: 0x%08x", mask); + item = proto_tree_add_uint(parent_tree, hf_smb_create_options, tvb, offset, 4, mask); tree = proto_item_add_subtree(item, ett_smb_nt_create_options); } @@ -18387,6 +18388,22 @@ proto_register_smb(void) { "Unknown field", "smb.unknown", FT_UINT32, BASE_HEX, NULL, 0, "", HFILL }}, + { &hf_smb_create_flags, + { "Create Flags", "smb.create_flags", FT_UINT32, BASE_HEX, + NULL, 0, "", HFILL }}, + + { &hf_smb_create_options, + { "Create Options", "smb.create_options", FT_UINT32, BASE_HEX, + NULL, 0, "", HFILL }}, + + { &hf_smb_share_access, + { "Share Access", "smb.share_access", FT_UINT32, BASE_HEX, + NULL, 0, "", HFILL }}, + + { &hf_smb_access_mask, + { "Access Mask", "smb.access_mask", FT_UINT32, BASE_HEX, + NULL, 0, "", HFILL }}, + { &hf_smb_mode, { "Mode", "smb.mode", FT_UINT32, BASE_HEX, NULL, 0, "", HFILL }}, |