diff options
author | Jari Sundell <sundell.software@gmail.com> | 2011-12-06 14:27:14 +0900 |
---|---|---|
committer | Jari Sundell <sundell.software@gmail.com> | 2011-12-06 14:27:14 +0900 |
commit | 2f22e10410a120e0a0f26e9cddc385ea8ea3b2b3 (patch) | |
tree | b2e92f0fce02ac9c8c929bcc28b0cd5304d9b23d | |
parent | 97b84c61a440c468ebe510dcc83165b149d12ac9 (diff) | |
download | net-dhcp-ruby-2f22e10410a120e0a0f26e9cddc385ea8ea3b2b3.tar.gz |
Fixed size of expanded chaddr.
-rw-r--r-- | lib/net/dhcp/core.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net/dhcp/core.rb b/lib/net/dhcp/core.rb index ab8d38a..bb42e52 100644 --- a/lib/net/dhcp/core.rb +++ b/lib/net/dhcp/core.rb @@ -160,7 +160,7 @@ module DHCP if self.chaddr.size >= 16 out << self.chaddr.pack('C16') else - out << (self.chaddr + [0x00]*(19-self.chaddr.size)).pack('C16') + out << (self.chaddr + [0x00]*(16-self.chaddr.size)).pack('C16') end # sname and file |