Module: Pio::Dhcp::FieldUtil
- Included in:
- Frame
- Defined in:
- lib/pio/dhcp/field_util.rb
Overview
Dhcp Field Read Methods.
Instance Method Summary collapse
- #bootp_flags ⇒ Object
- #client_identifier ⇒ Object
- #client_ip_address ⇒ Object
- #client_mac_address ⇒ Object
- #hops ⇒ Object
- #hw_addr_len ⇒ Object
- #hw_addr_type ⇒ Object
- #ip_address_lease_time ⇒ Object
- #message_type ⇒ Object
- #next_server_ip_address ⇒ Object
- #parameters_list ⇒ Object
- #rebinding_time_value ⇒ Object
- #relay_agent_ip_address ⇒ Object
- #renewal_time_value ⇒ Object
- #requested_ip_address ⇒ Object
- #seconds ⇒ Object
- #server_identifier ⇒ Object
- #subnet_mask ⇒ Object
- #transaction_id ⇒ Object
- #your_ip_address ⇒ Object
Instance Method Details
#bootp_flags ⇒ Object
61 62 63 |
# File 'lib/pio/dhcp/field_util.rb', line 61 def bootp_flags dhcp.bootp_flags end |
#client_identifier ⇒ Object
13 14 15 |
# File 'lib/pio/dhcp/field_util.rb', line 13 def client_identifier get_tlv_field(61) end |
#client_ip_address ⇒ Object
65 66 67 |
# File 'lib/pio/dhcp/field_util.rb', line 65 def client_ip_address dhcp.client_ip_address end |
#client_mac_address ⇒ Object
81 82 83 |
# File 'lib/pio/dhcp/field_util.rb', line 81 def client_mac_address dhcp.client_mac_address end |
#hops ⇒ Object
49 50 51 |
# File 'lib/pio/dhcp/field_util.rb', line 49 def hops dhcp.hops end |
#hw_addr_len ⇒ Object
45 46 47 |
# File 'lib/pio/dhcp/field_util.rb', line 45 def hw_addr_len dhcp.hw_addr_len end |
#hw_addr_type ⇒ Object
41 42 43 |
# File 'lib/pio/dhcp/field_util.rb', line 41 def hw_addr_type dhcp.hw_addr_type end |
#ip_address_lease_time ⇒ Object
25 26 27 |
# File 'lib/pio/dhcp/field_util.rb', line 25 def ip_address_lease_time get_tlv_field(51) end |
#message_type ⇒ Object
5 6 7 |
# File 'lib/pio/dhcp/field_util.rb', line 5 def get_tlv_field(53) end |
#next_server_ip_address ⇒ Object
73 74 75 |
# File 'lib/pio/dhcp/field_util.rb', line 73 def next_server_ip_address dhcp.next_server_ip_address end |
#parameters_list ⇒ Object
33 34 35 |
# File 'lib/pio/dhcp/field_util.rb', line 33 def parameters_list get_tlv_field(55) end |
#rebinding_time_value ⇒ Object
21 22 23 |
# File 'lib/pio/dhcp/field_util.rb', line 21 def rebinding_time_value get_tlv_field(59) end |
#relay_agent_ip_address ⇒ Object
77 78 79 |
# File 'lib/pio/dhcp/field_util.rb', line 77 def relay_agent_ip_address dhcp.relay_agent_ip_address end |
#renewal_time_value ⇒ Object
17 18 19 |
# File 'lib/pio/dhcp/field_util.rb', line 17 def renewal_time_value get_tlv_field(58) end |
#requested_ip_address ⇒ Object
29 30 31 |
# File 'lib/pio/dhcp/field_util.rb', line 29 def requested_ip_address get_tlv_field(50) end |
#seconds ⇒ Object
57 58 59 |
# File 'lib/pio/dhcp/field_util.rb', line 57 def seconds dhcp.seconds end |
#server_identifier ⇒ Object
9 10 11 |
# File 'lib/pio/dhcp/field_util.rb', line 9 def server_identifier get_tlv_field(54) end |
#subnet_mask ⇒ Object
37 38 39 |
# File 'lib/pio/dhcp/field_util.rb', line 37 def subnet_mask get_tlv_field(1) end |
#transaction_id ⇒ Object
53 54 55 |
# File 'lib/pio/dhcp/field_util.rb', line 53 def transaction_id dhcp.transaction_id end |
#your_ip_address ⇒ Object
69 70 71 |
# File 'lib/pio/dhcp/field_util.rb', line 69 def your_ip_address dhcp.your_ip_address end |