public void Get() { var dhcp = new DHCP { Bytes = new Byte[32] }; dhcp.SetByte(8, 0xAB); dhcp.SetByte(9, 0xCD); dhcp.Seconds.Should().Be(0xABCD); }
public void Get() { var dhcp = new DHCP { Bytes = new Byte[32] }; dhcp.SetByte(10, 0xAB); dhcp.SetByte(11, 0xCD); dhcp.Flags.Should().Be(0xABCD); }
public void Get() { var dhcp = new DHCP { Bytes = new Byte[32] }; dhcp.SetByte(24, 192); dhcp.SetByte(25, 168); dhcp.SetByte(26, 0); dhcp.SetByte(27, 1); dhcp.GatewayIPAddress.ToString().Should().Be("192.168.0.1"); }
public void Get() { var dhcp = new DHCP { Bytes = new Byte[32] }; dhcp.SetByte(16, 192); dhcp.SetByte(17, 168); dhcp.SetByte(18, 0); dhcp.SetByte(19, 1); dhcp.YourClientIPAddress.ToString().Should().Be("192.168.0.1"); }
public void Get() { var dhcp = new DHCP { Bytes = new Byte[32] }; dhcp.SetByte(4, 0x12); dhcp.SetByte(5, 0x34); dhcp.SetByte(6, 0x56); dhcp.SetByte(7, 0x78); dhcp.TransactionId.Should().Be(0x12345678); }
public void Get() { var dhcp = new DHCP { Bytes = new Byte[32] }; dhcp.SetByte(20, 192); dhcp.SetByte(21, 168); dhcp.SetByte(22, 0); dhcp.SetByte(23, 1); dhcp.ServerIPAddress.ToString().Should().Be("192.168.0.1"); }
public void Get() { var dhcp = new DHCP { Bytes = new Byte[32] }; dhcp.SetByte(12, 192); dhcp.SetByte(13, 168); dhcp.SetByte(14, 0); dhcp.SetByte(15, 1); dhcp.ClientIPAddress.ToString().Should().Be("192.168.0.1"); }
public void Get() { var dhcp = new DHCP { Bytes = new Byte[32] }; dhcp.SetByte(1, 1); dhcp.HardwareType.Should().Be(1); }
public void Get() { var dhcp = new DHCP { Bytes = new Byte[32] }; dhcp.SetByte(0, 1); dhcp.OperationCode.Should().Be(1); }
public void Get() { var dhcp = new DHCP { Bytes = new Byte[32] }; dhcp.SetByte(2, 6); dhcp.HardwareLength.Should().Be(6); }
public void Get() { var dhcp = new DHCP { Bytes = new Byte[64] }; dhcp.SetByte(28, 0x12); dhcp.SetByte(29, 0x34); dhcp.SetByte(30, 0x56); dhcp.SetByte(31, 0x78); dhcp.SetByte(32, 0x9A); dhcp.SetByte(33, 0xBC); dhcp.ClientHardwareAddress.ToString().Should().Be("12:34:56:78:9A:BC"); }