public override ILayer ExtractLayer() { IcmpParameterProblemLayer parameterProblemLayer = new IcmpParameterProblemLayer(); parameterProblemLayer.Checksum = new ushort?(this.Checksum); parameterProblemLayer.Pointer = this.Pointer; return((ILayer)parameterProblemLayer); }
public void IcmpParameterProblemLayerOriginalDatagramLengthTooBig() { Layer layer = new IcmpParameterProblemLayer { OriginalDatagramLength = 2000 }; Assert.IsNotNull(layer); }
public void IcmpParameterProblemLayerOriginalDatagramLengthNotRound() { Layer layer = new IcmpParameterProblemLayer {OriginalDatagramLength = 6}; Assert.IsNotNull(layer); }