projects
/
pxelator
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3fbe333
)
added dhcp lease time to make ISC's dhclient happy
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 29 Jul 2009 00:59:55 +0000
(
00:59
+0000)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 29 Jul 2009 00:59:55 +0000
(
00:59
+0000)
bin/dhcpd.pl
patch
|
blob
|
history
diff --git
a/bin/dhcpd.pl
b/bin/dhcpd.pl
index
6c90066
..
9c40878
100755
(executable)
--- a/
bin/dhcpd.pl
+++ b/
bin/dhcpd.pl
@@
-132,6
+132,7
@@
while (1) {
warn "DHCP REQUEST $requested_ip";
if ( $ip eq $requested_ip ) {
$packet->{DHO_DHCP_MESSAGE_TYPE()} = DHCPACK();
+ $packet->{DHO_DHCP_LEASE_TIME()} = 100;
} else {
$packet->{DHO_DHCP_MESSAGE_TYPE()} = DHCPNAK();
$packet->{DHO_DHCP_MESSAGE()} = "Bad request, expected $ip";