SMB1Command: Mark SMBParameters and SMBData as protected

This commit is contained in:
Tal Aloni 2017-08-24 18:22:01 +03:00
parent 056ab48a71
commit 1a599c2cca
4 changed files with 29 additions and 5 deletions

View file

@ -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 * 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, * the GNU Lesser Public License as published by the Free Software Foundation,
@ -38,6 +38,18 @@ namespace SMBLibrary.SMB1
return base.GetBytes(isUnicode); return base.GetBytes(isUnicode);
} }
public byte[] Data
{
get
{
return this.SMBData;
}
set
{
this.SMBData = value;
}
}
public override CommandName CommandName public override CommandName CommandName
{ {
get get

View file

@ -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 * 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, * the GNU Lesser Public License as published by the Free Software Foundation,
@ -37,6 +37,18 @@ namespace SMBLibrary.SMB1
return base.GetBytes(isUnicode); return base.GetBytes(isUnicode);
} }
public byte[] Data
{
get
{
return this.SMBData;
}
set
{
this.SMBData = value;
}
}
public override CommandName CommandName public override CommandName CommandName
{ {
get get

View file

@ -13,8 +13,8 @@ namespace SMBLibrary.SMB1
{ {
public abstract class SMB1Command public abstract class SMB1Command
{ {
public byte[] SMBParameters; // SMB_Parameters protected byte[] SMBParameters; // SMB_Parameters
public byte[] SMBData; // SMB_Data protected byte[] SMBData; // SMB_Data
public SMB1Command() public SMB1Command()
{ {

View file

@ -19,7 +19,7 @@ namespace SMBLibrary.Server.SMB1
{ {
EchoResponse echo = new EchoResponse(); EchoResponse echo = new EchoResponse();
echo.SequenceNumber = (ushort)index; echo.SequenceNumber = (ushort)index;
echo.SMBData = request.SMBData; echo.Data = request.Data;
response.Add(echo); response.Add(echo);
} }
return response; return response;