/* This file is part of PacketDotNet PacketDotNet is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. PacketDotNet is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with PacketDotNet. If not, see . */ /* * Copyright 2010 Evan Plaice */ using System; namespace PacketDotNet.Tcp { /// /// No Operation Option /// Used in the TCP Options field to pad the length to the next 32 byte boundary /// /// /// References: /// http://datatracker.ietf.org/doc/rfc793/ /// public class NoOperation : Option { #region Constructors /// /// Creates a No Operation Option /// /// /// A /// /// /// A /// /// /// A /// public NoOperation(byte[] bytes, int offset, int length) : base(bytes, offset, length) { } #endregion #region Properties /// /// The length of the NoOperation field /// Returns 1 as opposed to returning the length field because /// the NoOperation option is only 1 byte long and doesn't /// contain a length field /// public override byte Length { get { return NoOperation.OptionLength; } } #endregion #region Members /// /// The length (in bytes) of the NoOperation option /// internal const int OptionLength = 1; #endregion } }