SMB2: add string value for dialect

Used ref: https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-smb2/63abf97c-0d09-47e2-88d6-6bfa552949a5

Change-Id: I9e5e7b3077003fe5e070a3cb1f790a360a07571e
Reviewed-on: https://code.wireshark.org/review/35001
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
Uli Heilmeier 2019-11-06 13:36:04 +01:00 committed by Anders Broman
parent 88306c251a
commit 9f622cddd4
1 changed files with 12 additions and 1 deletions

View File

@ -5906,6 +5906,17 @@ static const value_string smb2_channel_vals[] = {
{ 0, NULL }
};
static const value_string smb2_dialect_vals[] = {
{ 0x0202, "SMB 2.0.2" },
{ 0x0210, "SMB 2.1" },
{ 0x0300, "SMB 3.0" },
{ 0x0302, "SMB 3.0.2" },
{ 0x0311, "SMB 3.1.1" },
{ 0x02FF, "SMB2 wildcard" },
{ 0, NULL }
};
static void
dissect_smb2_rdma_v1_blob(tvbuff_t *tvb, packet_info *pinfo _U_,
proto_tree *parent_tree, smb2_info_t *si _U_)
@ -11547,7 +11558,7 @@ proto_register_smb2(void)
{ &hf_smb2_dialect,
{ "Dialect", "smb2.dialect", FT_UINT16, BASE_HEX,
NULL, 0, NULL, HFILL }
VALS(smb2_dialect_vals), 0, NULL, HFILL }
},
{ &hf_smb2_security_mode,