Module: Pio::Dhcp::FieldUtil

Included in:
Frame
Defined in:
lib/pio/dhcp/field_util.rb

Overview

Dhcp Field Read Methods.

Instance Method Summary collapse

Instance Method Details

#bootp_flagsObject



61
62
63
# File 'lib/pio/dhcp/field_util.rb', line 61

def bootp_flags
  dhcp.bootp_flags
end

#client_identifierObject



13
14
15
# File 'lib/pio/dhcp/field_util.rb', line 13

def client_identifier
  get_tlv_field(61)
end

#client_ip_addressObject



65
66
67
# File 'lib/pio/dhcp/field_util.rb', line 65

def client_ip_address
  dhcp.client_ip_address
end

#client_mac_addressObject



81
82
83
# File 'lib/pio/dhcp/field_util.rb', line 81

def client_mac_address
  dhcp.client_mac_address
end

#hopsObject



49
50
51
# File 'lib/pio/dhcp/field_util.rb', line 49

def hops
  dhcp.hops
end

#hw_addr_lenObject



45
46
47
# File 'lib/pio/dhcp/field_util.rb', line 45

def hw_addr_len
  dhcp.hw_addr_len
end

#hw_addr_typeObject



41
42
43
# File 'lib/pio/dhcp/field_util.rb', line 41

def hw_addr_type
  dhcp.hw_addr_type
end

#ip_address_lease_timeObject



25
26
27
# File 'lib/pio/dhcp/field_util.rb', line 25

def ip_address_lease_time
  get_tlv_field(51)
end

#message_typeObject



5
6
7
# File 'lib/pio/dhcp/field_util.rb', line 5

def message_type
  get_tlv_field(53)
end

#next_server_ip_addressObject



73
74
75
# File 'lib/pio/dhcp/field_util.rb', line 73

def next_server_ip_address
  dhcp.next_server_ip_address
end

#parameters_listObject



33
34
35
# File 'lib/pio/dhcp/field_util.rb', line 33

def parameters_list
  get_tlv_field(55)
end

#rebinding_time_valueObject



21
22
23
# File 'lib/pio/dhcp/field_util.rb', line 21

def rebinding_time_value
  get_tlv_field(59)
end

#relay_agent_ip_addressObject



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_valueObject



17
18
19
# File 'lib/pio/dhcp/field_util.rb', line 17

def renewal_time_value
  get_tlv_field(58)
end

#requested_ip_addressObject



29
30
31
# File 'lib/pio/dhcp/field_util.rb', line 29

def requested_ip_address
  get_tlv_field(50)
end

#secondsObject



57
58
59
# File 'lib/pio/dhcp/field_util.rb', line 57

def seconds
  dhcp.seconds
end

#server_identifierObject



9
10
11
# File 'lib/pio/dhcp/field_util.rb', line 9

def server_identifier
  get_tlv_field(54)
end

#subnet_maskObject



37
38
39
# File 'lib/pio/dhcp/field_util.rb', line 37

def subnet_mask
  get_tlv_field(1)
end

#transaction_idObject



53
54
55
# File 'lib/pio/dhcp/field_util.rb', line 53

def transaction_id
  dhcp.transaction_id
end

#your_ip_addressObject



69
70
71
# File 'lib/pio/dhcp/field_util.rb', line 69

def your_ip_address
  dhcp.your_ip_address
end