public void Get() { var tcpSegment = new TCPSegment { Bytes = new Byte[32] }; tcpSegment.SetBytes(16, 2, new Byte[] { 0x12, 0x34 }); tcpSegment.Checksum.Should().Be(4660); }
public void Get() { var tcpSegment = new TCPSegment { Bytes = new Byte[32] }; tcpSegment.SetBytes(18, 2, new Byte[] { 0x12, 0x34 }); tcpSegment.UrgentPointer.Should().Be(4660); }
public void Get() { var tcpSegment = new TCPSegment { Bytes = new Byte[32] }; tcpSegment.SetBytes(0, 2, new Byte[] { 0x00, 0x50 }); tcpSegment.SourcePort.Should().Be(80); }
public void Get() { var tcpSegment = new TCPSegment { Bytes = new Byte[32] }; tcpSegment.SetBytes(8, 4, new Byte[] { 0x01, 0x23, 0x45, 0x67 }); tcpSegment.AcknowledgmentNumber.Should().Be(19088743); }
public void Get() { var tcpSegment = new TCPSegment { Bytes = new Byte[32] }; tcpSegment.SetBytes(2, 2, new Byte[] { 0x00, 0x50 }); tcpSegment.DestinationPort.Should().Be(80); }
public void Get() { var tcpSegment = new TCPSegment { Bytes = new Byte[32] }; tcpSegment.SetBytes(14, 2, new Byte[] { 0x00, 0xFF }); tcpSegment.WindowsSize.Should().Be(255); }