Browse Source

NamedPipeType enum: Corrected typo and renamed value

Tal Aloni 7 years ago
parent
commit
d2a8c251be

+ 3 - 3
SMBLibrary/SMB1/EnumStructures/NamedPipeStatus.cs

@@ -1,4 +1,4 @@
-/* Copyright (C) 2014 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
+/* Copyright (C) 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,
@@ -16,8 +16,8 @@ namespace SMBLibrary.SMB1
 
     public enum NamedPipeType : byte
     {
-        ByteNamedPipe = 0x00,
-        MessageNodePipe = 0x01,
+        ByteModePipe = 0x00,
+        MessageModePipe = 0x01,
     }
 
     public enum Endpoint : byte

+ 2 - 2
SMBLibrary/Server/SMB1/NTCreateHelper.cs

@@ -100,7 +100,7 @@ namespace SMBLibrary.Server.SMB1
             response.ResourceType = ResourceType.FileTypeMessageModePipe;
             response.NMPipeStatus.ICount = 255;
             response.NMPipeStatus.ReadMode = ReadMode.MessageMode;
-            response.NMPipeStatus.NamedPipeType = NamedPipeType.MessageNodePipe;
+            response.NMPipeStatus.NamedPipeType = NamedPipeType.MessageModePipe;
             return response;
         }
 
@@ -114,7 +114,7 @@ namespace SMBLibrary.Server.SMB1
             NamedPipeStatus status = new NamedPipeStatus();
             status.ICount = 255;
             status.ReadMode = ReadMode.MessageMode;
-            status.NamedPipeType = NamedPipeType.MessageNodePipe;
+            status.NamedPipeType = NamedPipeType.MessageModePipe;
             response.NMPipeStatus = status;
             response.MaximalAccessRights.File = FileAccessMask.FILE_READ_DATA | FileAccessMask.FILE_WRITE_DATA | FileAccessMask.FILE_APPEND_DATA |
                                                 FileAccessMask.FILE_READ_EA | FileAccessMask.FILE_WRITE_EA |

+ 2 - 2
SMBLibrary/Server/SMB1/OpenAndXHelper.cs

@@ -259,7 +259,7 @@ namespace SMBLibrary.Server.SMB1
             response.ResourceType = ResourceType.FileTypeMessageModePipe;
             response.NMPipeStatus.ICount = 255;
             response.NMPipeStatus.ReadMode = ReadMode.MessageMode;
-            response.NMPipeStatus.NamedPipeType = NamedPipeType.MessageNodePipe;
+            response.NMPipeStatus.NamedPipeType = NamedPipeType.MessageModePipe;
             response.OpenResults.OpenResult = openResult;
             return response;
         }
@@ -272,7 +272,7 @@ namespace SMBLibrary.Server.SMB1
             response.ResourceType = ResourceType.FileTypeMessageModePipe;
             response.NMPipeStatus.ICount = 255;
             response.NMPipeStatus.ReadMode = ReadMode.MessageMode;
-            response.NMPipeStatus.NamedPipeType = NamedPipeType.MessageNodePipe;
+            response.NMPipeStatus.NamedPipeType = NamedPipeType.MessageModePipe;
             response.OpenResults.OpenResult = openResult;
             return response;
         }