diff options
author | Jari Sundell <sundell.software@gmail.com> | 2011-12-05 21:11:20 +0900 |
---|---|---|
committer | Jari Sundell <sundell.software@gmail.com> | 2011-12-05 21:11:20 +0900 |
commit | 37cf9201f2e34f89f228d952768f10461911d314 (patch) | |
tree | de123370c027859d89ac56ce2a74ff769716cfc3 | |
parent | a4e1f43b715d11cab4a3f35977caa2f79525aace (diff) | |
download | net-dhcp-ruby-37cf9201f2e34f89f228d952768f10461911d314.tar.gz |
Force chaddr to 16 byte length.
-rw-r--r-- | lib/net/dhcp/core.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/net/dhcp/core.rb b/lib/net/dhcp/core.rb index 5ed844c..9a97f51 100644 --- a/lib/net/dhcp/core.rb +++ b/lib/net/dhcp/core.rb @@ -157,7 +157,7 @@ module DHCP self.giaddr ].pack('C4Nn2N4') - out << self.chaddr.pack('C*') + out << self.chaddr.pack('C16') # sname and file @@ -319,4 +319,4 @@ module DHCP } -end
\ No newline at end of file +end |