From 827df92fb1ab56f9ad3b89dc53bc168b3b1b13c4 Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Tue, 15 May 2007 20:33:44 +0000 Subject: add dissection of the end_of_chain bit in the header flags svn path=/trunk/; revision=21794 --- epan/dissectors/packet-smb2.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'epan/dissectors/packet-smb2.c') diff --git a/epan/dissectors/packet-smb2.c b/epan/dissectors/packet-smb2.c index d846654e32..f180b3c443 100644 --- a/epan/dissectors/packet-smb2.c +++ b/epan/dissectors/packet-smb2.c @@ -62,6 +62,7 @@ static int hf_smb2_tid = -1; static int hf_smb2_uid = -1; static int hf_smb2_flags_response = -1; static int hf_smb2_flags_pid_valid = -1; +static int hf_smb2_flags_end_of_chain = -1; static int hf_smb2_flags_signature = -1; static int hf_smb2_chain_offset = -1; static int hf_smb2_response_buffer_offset = -1; @@ -700,6 +701,11 @@ static const true_false_string tfs_flags_pid_valid = { "The pid field if NOT valid" }; +static const true_false_string tfs_flags_end_of_chain = { + "This pdu is the END OF A CHAIN", + "This pdu is NOT an end of a chain" +}; + static const true_false_string tfs_flags_signature = { "This pdu is SIGNED", "This pdu is NOT signed" @@ -4316,6 +4322,7 @@ dissect_smb2(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_t flags_tree = proto_item_add_subtree(flags_item, ett_smb2_flags); } proto_tree_add_boolean(flags_tree, hf_smb2_flags_signature, tvb, offset, 4, si->flags); + proto_tree_add_boolean(flags_tree, hf_smb2_flags_end_of_chain, tvb, offset, 4, si->flags); proto_tree_add_boolean(flags_tree, hf_smb2_flags_pid_valid, tvb, offset, 4, si->flags); proto_tree_add_boolean(flags_tree, hf_smb2_flags_response, tvb, offset, 4, si->flags); @@ -4548,6 +4555,9 @@ proto_register_smb2(void) { &hf_smb2_flags_pid_valid, { "PID Valid", "smb2.flags.pid_valid", FT_BOOLEAN, 32, TFS(&tfs_flags_pid_valid), SMB2_FLAGS_PID_VALID, "Whether the PID field is valid or not", HFILL }}, + { &hf_smb2_flags_end_of_chain, + { "End Of Chain", "smb2.flags.end_of_chain", FT_BOOLEAN, 32, + TFS(&tfs_flags_end_of_chain), SMB2_FLAGS_ENDOFCHAIN, "Whether the pdu ends a chain or not", HFILL }}, { &hf_smb2_flags_signature, { "Signing", "smb2.flags.signature", FT_BOOLEAN, 32, TFS(&tfs_flags_signature), SMB2_FLAGS_SIGNATURE, "Whether the pdu is signed or not", HFILL }}, -- cgit v1.2.3