12345678910111213141516171819202122232425262728 |
- using System;
- using System.Collections.Generic;
- using SMBLibrary.SMB1;
- namespace SMBLibrary.Server.SMB1
- {
- internal class EchoHelper
- {
- internal static List<SMB1Command> GetEchoResponse(EchoRequest request)
- {
- List<SMB1Command> response = new List<SMB1Command>();
- for (int index = 0; index < request.EchoCount; index++)
- {
- EchoResponse echo = new EchoResponse();
- echo.SequenceNumber = (ushort)index;
- echo.SMBData = request.SMBData;
- response.Add(echo);
- }
- return response;
- }
- }
- }
|