diff options
author | sahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-11-11 10:26:36 +0000 |
---|---|---|
committer | sahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-11-11 10:26:36 +0000 |
commit | 77a529882a05e89d2ed21471697683ca7948e30b (patch) | |
tree | e2952dfbb6ca9bb5b96d7ab180c6f6c64754a005 /epan | |
parent | 914dec59daa295c2ced81f98e4c977460ca581eb (diff) |
add decode of endoffile for file infolevel 0x12
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16471 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-smb2.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/epan/dissectors/packet-smb2.c b/epan/dissectors/packet-smb2.c index d26bfdbcca..50e1cb5121 100644 --- a/epan/dissectors/packet-smb2.c +++ b/epan/dissectors/packet-smb2.c @@ -70,6 +70,7 @@ static int hf_smb2_last_write_timestamp = -1; static int hf_smb2_last_change_timestamp = -1; static int hf_smb2_filename_len = -1; static int hf_smb2_filename = -1; +static int hf_smb2_end_of_file = -1; static int hf_smb2_fstype_len = -1; static int hf_smb2_fstype = -1; static int hf_smb2_tree_len = -1; @@ -268,6 +269,14 @@ dissect_smb2_file_info_12(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *par offset = dissect_nt_64bit_time(tvb, tree, offset, hf_smb2_last_change_timestamp); /* some unknown bytes */ + proto_tree_add_item(tree, hf_smb2_unknown, tvb, offset, 16, FALSE); + offset += 16; + + /* end of file */ + proto_tree_add_item(tree, hf_smb2_end_of_file, tvb, offset, 8, TRUE); + offset += 8; + + /* some unknown bytes */ proto_tree_add_item(tree, hf_smb2_unknown, tvb, offset, tvb_length_remaining(tvb, offset), FALSE); offset += tvb_length_remaining(tvb, offset); @@ -1889,6 +1898,9 @@ proto_register_smb2(void) { &hf_smb2_uid, { "User Id", "smb2.uid", FT_UINT64, BASE_HEX, NULL, 0, "SMB2 User Id", HFILL }}, + { &hf_smb2_end_of_file, + { "End Of File", "smb2.eof", FT_UINT64, BASE_DEC, + NULL, 0, "SMB2 End Of File/File size", HFILL }}, { &hf_smb2_max_response_size, { "Max Response Size", "smb2.max_response_size", FT_UINT32, BASE_DEC, NULL, 0, "SMB2 Maximum response size", HFILL }}, @@ -2004,8 +2016,8 @@ proto_register_smb2(void) NULL, 0, "SMB2_FS_INFO_05 structure", HFILL }}, { &hf_smb2_sec_info_00, - { "SMB2_FS_INFO_00", "smb2.smb2_sec_info_00", FT_NONE, BASE_NONE, - NULL, 0, "SMB2_FS_INFO_00 structure", HFILL }}, + { "SMB2_SEC_INFO_00", "smb2.smb2_sec_info_00", FT_NONE, BASE_NONE, + NULL, 0, "SMB2_SEC_INFO_00 structure", HFILL }}, { &hf_smb2_disposition_delete_on_close, { "Delete on close", "smb2.disposition.delete_on_close", FT_BOOLEAN, 8, |