SMB1/SMB2 Headers: Marked Protocol ID bytes as private

This commit is contained in:
Tal Aloni 2017-07-24 17:11:07 +03:00
parent 14e02ed8ac
commit d0b8ad25f1
2 changed files with 2 additions and 2 deletions

View file

@ -16,7 +16,7 @@ namespace SMBLibrary.SMB1
public const int Length = 32; public const int Length = 32;
public static readonly byte[] ProtocolSignature = new byte[] { 0xFF, 0x53, 0x4D, 0x42 }; public static readonly byte[] ProtocolSignature = new byte[] { 0xFF, 0x53, 0x4D, 0x42 };
public byte[] Protocol; // byte[4], 0xFF followed by "SMB" private byte[] Protocol; // byte[4], 0xFF followed by "SMB"
public CommandName Command; public CommandName Command;
public NTStatus Status; public NTStatus Status;
public HeaderFlags Flags; public HeaderFlags Flags;

View file

@ -16,7 +16,7 @@ namespace SMBLibrary.SMB2
public static readonly byte[] ProtocolSignature = new byte[] { 0xFE, 0x53, 0x4D, 0x42 }; public static readonly byte[] ProtocolSignature = new byte[] { 0xFE, 0x53, 0x4D, 0x42 };
public byte[] ProtocolId; // 4 bytes, 0xFE followed by "SMB" private byte[] ProtocolId; // 4 bytes, 0xFE followed by "SMB"
private ushort StructureSize; private ushort StructureSize;
public ushort CreditCharge; public ushort CreditCharge;
public NTStatus Status; public NTStatus Status;