forked from osmocom/wireshark
SMB2: add new transport negotiate context
From [MS-SMB2] version 61.
This commit is contained in:
parent
76229da61d
commit
51a1765698
1 changed files with 12 additions and 0 deletions
|
@ -260,6 +260,7 @@ static int hf_smb2_cipher_id = -1;
|
|||
static int hf_smb2_comp_alg_count = -1;
|
||||
static int hf_smb2_comp_alg_id = -1;
|
||||
static int hf_smb2_netname_neg_id = -1;
|
||||
static int hf_smb2_transport_reserved = -1;
|
||||
static int hf_smb2_ea_size = -1;
|
||||
static int hf_smb2_ea_flags = -1;
|
||||
static int hf_smb2_ea_name_len = -1;
|
||||
|
@ -927,11 +928,13 @@ static const value_string smb2_find_info_levels[] = {
|
|||
#define SMB2_ENCRYPTION_CAPABILITIES 0x0002
|
||||
#define SMB2_COMPRESSION_CAPABILITIES 0x0003
|
||||
#define SMB2_NETNAME_NEGOTIATE_CONTEXT_ID 0x0005
|
||||
#define SMB2_TRANSPORT_CAPABILITIES 0x0006
|
||||
static const value_string smb2_negotiate_context_types[] = {
|
||||
{ SMB2_PREAUTH_INTEGRITY_CAPABILITIES, "SMB2_PREAUTH_INTEGRITY_CAPABILITIES" },
|
||||
{ SMB2_ENCRYPTION_CAPABILITIES, "SMB2_ENCRYPTION_CAPABILITIES" },
|
||||
{ SMB2_COMPRESSION_CAPABILITIES, "SMB2_COMPRESSION_CAPABILITIES" },
|
||||
{ SMB2_NETNAME_NEGOTIATE_CONTEXT_ID, "SMB2_NETNAME_NEGOTIATE_CONTEXT_ID" },
|
||||
{ SMB2_TRANSPORT_CAPABILITIES, "SMB2_TRANSPORT_CAPABILITIES" },
|
||||
{ 0, NULL }
|
||||
};
|
||||
|
||||
|
@ -5021,6 +5024,11 @@ dissect_smb2_negotiate_context(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree
|
|||
offset += data_length;
|
||||
break;
|
||||
|
||||
case SMB2_TRANSPORT_CAPABILITIES:
|
||||
proto_tree_add_item(sub_tree, hf_smb2_transport_reserved, tvb, offset, 4, ENC_LITTLE_ENDIAN);
|
||||
offset += 4;
|
||||
break;
|
||||
|
||||
default:
|
||||
proto_tree_add_item(sub_tree, hf_smb2_unknown, tvb, offset, data_length, ENC_NA);
|
||||
offset += data_length;
|
||||
|
@ -11719,6 +11727,10 @@ proto_register_smb2(void)
|
|||
STR_UNICODE, NULL, 0x0, NULL, HFILL }
|
||||
},
|
||||
|
||||
{ &hf_smb2_transport_reserved,
|
||||
{ "Reserved", "smb2.negotiate_context.transport_reserved", FT_UINT32, BASE_HEX,
|
||||
NULL, 0, NULL, HFILL }
|
||||
},
|
||||
{ &hf_smb2_current_time,
|
||||
{ "Current Time", "smb2.current_time", FT_ABSOLUTE_TIME, ABSOLUTE_TIME_LOCAL,
|
||||
NULL, 0, "Current Time at server", HFILL }
|
||||
|
|
Loading…
Reference in a new issue