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
63 64 65 |
# File 'lib/pio/dhcp/field_util.rb', line 63 def bootp_flags dhcp.bootp_flags end |
#client_identifier ⇒ Object
15 16 17 |
# File 'lib/pio/dhcp/field_util.rb', line 15 def client_identifier get_tlv_field(61) end |
#client_ip_address ⇒ Object
67 68 69 |
# File 'lib/pio/dhcp/field_util.rb', line 67 def client_ip_address dhcp.client_ip_address end |
#client_mac_address ⇒ Object
83 84 85 |
# File 'lib/pio/dhcp/field_util.rb', line 83 def client_mac_address dhcp.client_mac_address end |
#hops ⇒ Object
51 52 53 |
# File 'lib/pio/dhcp/field_util.rb', line 51 def hops dhcp.hops end |
#hw_addr_len ⇒ Object
47 48 49 |
# File 'lib/pio/dhcp/field_util.rb', line 47 def hw_addr_len dhcp.hw_addr_len end |
#hw_addr_type ⇒ Object
43 44 45 |
# File 'lib/pio/dhcp/field_util.rb', line 43 def hw_addr_type dhcp.hw_addr_type end |
#ip_address_lease_time ⇒ Object
27 28 29 |
# File 'lib/pio/dhcp/field_util.rb', line 27 def ip_address_lease_time get_tlv_field(51) end |
#message_type ⇒ Object
7 8 9 |
# File 'lib/pio/dhcp/field_util.rb', line 7 def get_tlv_field(53) end |
#next_server_ip_address ⇒ Object
75 76 77 |
# File 'lib/pio/dhcp/field_util.rb', line 75 def next_server_ip_address dhcp.next_server_ip_address end |
#parameters_list ⇒ Object
35 36 37 |
# File 'lib/pio/dhcp/field_util.rb', line 35 def parameters_list get_tlv_field(55) end |
#rebinding_time_value ⇒ Object
23 24 25 |
# File 'lib/pio/dhcp/field_util.rb', line 23 def rebinding_time_value get_tlv_field(59) end |
#relay_agent_ip_address ⇒ Object
79 80 81 |
# File 'lib/pio/dhcp/field_util.rb', line 79 def relay_agent_ip_address dhcp.relay_agent_ip_address end |
#renewal_time_value ⇒ Object
19 20 21 |
# File 'lib/pio/dhcp/field_util.rb', line 19 def renewal_time_value get_tlv_field(58) end |
#requested_ip_address ⇒ Object
31 32 33 |
# File 'lib/pio/dhcp/field_util.rb', line 31 def requested_ip_address get_tlv_field(50) end |
#seconds ⇒ Object
59 60 61 |
# File 'lib/pio/dhcp/field_util.rb', line 59 def seconds dhcp.seconds end |
#server_identifier ⇒ Object
11 12 13 |
# File 'lib/pio/dhcp/field_util.rb', line 11 def server_identifier get_tlv_field(54) end |
#subnet_mask ⇒ Object
39 40 41 |
# File 'lib/pio/dhcp/field_util.rb', line 39 def subnet_mask get_tlv_field(1) end |
#transaction_id ⇒ Object
55 56 57 |
# File 'lib/pio/dhcp/field_util.rb', line 55 def transaction_id dhcp.transaction_id end |
#your_ip_address ⇒ Object
71 72 73 |
# File 'lib/pio/dhcp/field_util.rb', line 71 def your_ip_address dhcp.your_ip_address end |