Class: DHCP::ClientNetworkDeviceInterfaceOption
- Defined in:
- lib/net/dhcp/options.rb
Overview
Octet “t” encodes a network interface type. For now the only supported value is 1 for Universal Network Device Interface (UNDI). Octets “M” and “m” describe the interface revision. To encode the UNDI revision of 2.11, “M” would be set to 2, and “m” would be set to 11 (0x0B).
See rfc4578 for full details
The code for this option is 94, and its length is 3.
The default payload for this option is 0,0x69,0x69
Instance Attribute Summary
Attributes inherited from Option
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ ClientNetworkDeviceInterfaceOption
constructor
A new instance of ClientNetworkDeviceInterfaceOption.
- #to_s ⇒ Object
Methods inherited from Option
Constructor Details
#initialize(params = {}) ⇒ ClientNetworkDeviceInterfaceOption
Returns a new instance of ClientNetworkDeviceInterfaceOption.
450 451 452 453 454 |
# File 'lib/net/dhcp/options.rb', line 450 def initialize(params={}) params[:type] = $DHCP_CLIENTNDI params[:payload] = params.fetch(:payload, [0]+[0x69]*2) super(params) end |
Instance Method Details
#to_s ⇒ Object
455 456 457 458 |
# File 'lib/net/dhcp/options.rb', line 455 def to_s uuid = self.payload.pack('n').unpack('C*') "Client Network Device Interface = #{uuid}" end |