mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-06-04 03:27:14 +02:00
SMB1Command: Mark SMBParameters and SMBData as protected
This commit is contained in:
parent
056ab48a71
commit
1a599c2cca
4 changed files with 29 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 2014 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
|
||||
/* Copyright (C) 2014-2017 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
|
||||
*
|
||||
* You can redistribute this program and/or modify it under the terms of
|
||||
* the GNU Lesser Public License as published by the Free Software Foundation,
|
||||
|
@ -37,6 +37,18 @@ namespace SMBLibrary.SMB1
|
|||
|
||||
return base.GetBytes(isUnicode);
|
||||
}
|
||||
|
||||
public byte[] Data
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.SMBData;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.SMBData = value;
|
||||
}
|
||||
}
|
||||
|
||||
public override CommandName CommandName
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 2014 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
|
||||
/* Copyright (C) 2014-2017 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
|
||||
*
|
||||
* You can redistribute this program and/or modify it under the terms of
|
||||
* the GNU Lesser Public License as published by the Free Software Foundation,
|
||||
|
@ -36,6 +36,18 @@ namespace SMBLibrary.SMB1
|
|||
|
||||
return base.GetBytes(isUnicode);
|
||||
}
|
||||
|
||||
public byte[] Data
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.SMBData;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.SMBData = value;
|
||||
}
|
||||
}
|
||||
|
||||
public override CommandName CommandName
|
||||
{
|
||||
|
|
|
@ -13,8 +13,8 @@ namespace SMBLibrary.SMB1
|
|||
{
|
||||
public abstract class SMB1Command
|
||||
{
|
||||
public byte[] SMBParameters; // SMB_Parameters
|
||||
public byte[] SMBData; // SMB_Data
|
||||
protected byte[] SMBParameters; // SMB_Parameters
|
||||
protected byte[] SMBData; // SMB_Data
|
||||
|
||||
public SMB1Command()
|
||||
{
|
||||
|
|
|
@ -19,7 +19,7 @@ namespace SMBLibrary.Server.SMB1
|
|||
{
|
||||
EchoResponse echo = new EchoResponse();
|
||||
echo.SequenceNumber = (ushort)index;
|
||||
echo.SMBData = request.SMBData;
|
||||
echo.Data = request.Data;
|
||||
response.Add(echo);
|
||||
}
|
||||
return response;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue