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



63
64
65
# File 'lib/pio/dhcp/field_util.rb', line 63

def bootp_flags
  dhcp.bootp_flags
end

#client_identifierObject



15
16
17
# File 'lib/pio/dhcp/field_util.rb', line 15

def client_identifier
  get_tlv_field(61)
end

#client_ip_addressObject



67
68
69
# File 'lib/pio/dhcp/field_util.rb', line 67

def client_ip_address
  dhcp.client_ip_address
end

#client_mac_addressObject



83
84
85
# File 'lib/pio/dhcp/field_util.rb', line 83

def client_mac_address
  dhcp.client_mac_address
end

#hopsObject



51
52
53
# File 'lib/pio/dhcp/field_util.rb', line 51

def hops
  dhcp.hops
end

#hw_addr_lenObject



47
48
49
# File 'lib/pio/dhcp/field_util.rb', line 47

def hw_addr_len
  dhcp.hw_addr_len
end

#hw_addr_typeObject



43
44
45
# File 'lib/pio/dhcp/field_util.rb', line 43

def hw_addr_type
  dhcp.hw_addr_type
end

#ip_address_lease_timeObject



27
28
29
# File 'lib/pio/dhcp/field_util.rb', line 27

def ip_address_lease_time
  get_tlv_field(51)
end

#message_typeObject



7
8
9
# File 'lib/pio/dhcp/field_util.rb', line 7

def message_type
  get_tlv_field(53)
end

#next_server_ip_addressObject



75
76
77
# File 'lib/pio/dhcp/field_util.rb', line 75

def next_server_ip_address
  dhcp.next_server_ip_address
end

#parameters_listObject



35
36
37
# File 'lib/pio/dhcp/field_util.rb', line 35

def parameters_list
  get_tlv_field(55)
end

#rebinding_time_valueObject



23
24
25
# File 'lib/pio/dhcp/field_util.rb', line 23

def rebinding_time_value
  get_tlv_field(59)
end

#relay_agent_ip_addressObject



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_valueObject



19
20
21
# File 'lib/pio/dhcp/field_util.rb', line 19

def renewal_time_value
  get_tlv_field(58)
end

#requested_ip_addressObject



31
32
33
# File 'lib/pio/dhcp/field_util.rb', line 31

def requested_ip_address
  get_tlv_field(50)
end

#secondsObject



59
60
61
# File 'lib/pio/dhcp/field_util.rb', line 59

def seconds
  dhcp.seconds
end

#server_identifierObject



11
12
13
# File 'lib/pio/dhcp/field_util.rb', line 11

def server_identifier
  get_tlv_field(54)
end

#subnet_maskObject



39
40
41
# File 'lib/pio/dhcp/field_util.rb', line 39

def subnet_mask
  get_tlv_field(1)
end

#transaction_idObject



55
56
57
# File 'lib/pio/dhcp/field_util.rb', line 55

def transaction_id
  dhcp.transaction_id
end

#your_ip_addressObject



71
72
73
# File 'lib/pio/dhcp/field_util.rb', line 71

def your_ip_address
  dhcp.your_ip_address
end