dhcp 0.0.1 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
+