public void Get() { var ipv6Packet = new IPv6Packet { Bytes = new Byte[60] }; ipv6Packet.SetBytes(4, 2, new Byte[] { 0x00, 0x10 }); ipv6Packet.PayloadLength.Should().Be(16); }
public void Get() { var ipv6Packet = new IPv6Packet { Bytes = new Byte[40] }; ipv6Packet.SetBytes(24, 16, new Byte[] { 0xff, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02 }); ipv6Packet.DestinationIPAddress.ToString().Should().Be("FF:02:00:00:00:00:00:00:00:00:00:00:00:00:00:02"); }
public void Get() { var ipv6Packet = new IPv6Packet { Bytes = new Byte[40] }; ipv6Packet.SetBytes(8, 16, new Byte[] { 0xfe, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x15, 0x5d, 0xff, 0xfe, 0x02, 0x02, 0x45 }); ipv6Packet.SourceIPAddress.ToString().Should().Be("FE:80:00:00:00:00:00:00:02:15:5D:FF:FE:02:02:45"); }