Class: Pio::Dhcp::OptionalTlv
- Inherits:
-
BinData::Record
- Object
- BinData::Record
- Pio::Dhcp::OptionalTlv
- Defined in:
- lib/pio/dhcp/optional_tlv.rb
Overview
DHCP Optional TLV
Constant Summary collapse
- DEFAULT =
'default'
Instance Method Summary collapse
Instance Method Details
#chooser ⇒ Object
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
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
34 35 36 |
# File 'lib/pio/dhcp/optional_tlv.rb', line 34 def end_of_dhcptlv? tlv_type == Dhcp::END_OF_TLV end |