dhcp 0.0.1 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,24 @@
1
+ #!/usr/bin/env ruby
2
+ # encoding: ASCII-8BIT
3
+
4
+ require_relative 'packet'
5
+
6
+ module DHCP # :nodoc:
7
+ class Client
8
+ def initialize(opt={})
9
+ @mac = opt[:mac]
10
+ @sock = opt[:sock]
11
+ @lease = nil
12
+ end
13
+ attr_accessor :mac
14
+
15
+ def _parse_packet(data)
16
+ pk = DHCP::Packet.new(data)
17
+ data
18
+ end
19
+
20
+ def run
21
+ end
22
+ end
23
+ end
24
+