public DhcpTestPacket( string hexBytes, uint transactionId, DhcpOperation operation, ClientHardwareAddressType clientHardwareAddressType, byte[] clientHardwareAddressBytes, uint hops, uint secs, bool isBroadcast, IPAddress clientIp, IPAddress yourIp, IPAddress serverIp, IPAddress gatewayIp, string serverName, string bootFile, IReadOnlyList <IDhcpOption> options) { Bytes = hexBytes.AsHexBytes(); TransactionId = transactionId; Operation = operation; ClientHardwareAddressType = clientHardwareAddressType; ClientHardwareAddressBytes = clientHardwareAddressBytes; Hops = hops; Secs = secs; IsBroadcast = isBroadcast; ClientIp = clientIp; YourIp = yourIp; ServerIp = serverIp; GatewayIp = gatewayIp; ServerName = serverName; BootFile = bootFile; Options = options; }
public DhcpPacketBuilder WithClientHardwareAddress(ClientHardwareAddressType addressType, byte[] addressBytes) { _clientHardwareAddress = new ClientHardwareAddress(addressType, addressBytes); return(this); }
public ClientHardwareAddress(ClientHardwareAddressType type, byte[] addressBytes) { Type = type; AddressBytes = addressBytes; }