Class: Pio::Dhcp::OptionalTlv

Inherits:
BinData::Record show all
Defined in:
lib/pio/dhcp/optional_tlv.rb

Overview

DHCP Optional TLV

Constant Summary collapse

DEFAULT =
'default'

Instance Method Summary collapse

Instance Method Details

#chooserObject



38
39
40
41
42
43
44
# File 'lib/pio/dhcp/optional_tlv.rb', line 38

def chooser
  if valid_optional_tlv?
    tlv_type
  else
    DEFAULT
  end
end

#end_of_dhcpdu?Boolean

Returns:

  • (Boolean)


46
47
48
# File 'lib/pio/dhcp/optional_tlv.rb', line 46

def end_of_dhcpdu?
  tlv_type == Dhcp::END_OF_TLV
end

#end_of_dhcptlv?Boolean

Returns:

  • (Boolean)


34
35
36
# File 'lib/pio/dhcp/optional_tlv.rb', line 34

def end_of_dhcptlv?
  tlv_type == Dhcp::END_OF_TLV
end