Class: DHCP::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/dhcp/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opt = {}) ⇒ Client

Returns a new instance of Client.



8
9
10
11
12
# File 'lib/dhcp/client.rb', line 8

def initialize(opt={})
  @mac   = opt[:mac]
  @sock  = opt[:sock]
  @lease = nil
end

Instance Attribute Details

#macObject

Returns the value of attribute mac.



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

def mac
  @mac
end

Instance Method Details

#_parse_packet(data) ⇒ Object



15
16
17
18
# File 'lib/dhcp/client.rb', line 15

def _parse_packet(data)
  pk = DHCP::Packet.new(data)
  data
end

#runObject



20
21
# File 'lib/dhcp/client.rb', line 20

def run
end