From 37cf9201f2e34f89f228d952768f10461911d314 Mon Sep 17 00:00:00 2001 From: Jari Sundell Date: Mon, 5 Dec 2011 21:11:20 +0900 Subject: Force chaddr to 16 byte length. --- lib/net/dhcp/core.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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 -- cgit v1.2.1