/[pxelator]/lib/PXElator/dhcpd.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /lib/PXElator/dhcpd.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 27 by dpavlin, Wed Jul 29 00:46:29 2009 UTC revision 28 by dpavlin, Wed Jul 29 00:59:55 2009 UTC
# Line 132  while (1) { Line 132  while (1) {
132                          warn "DHCP REQUEST $requested_ip";                          warn "DHCP REQUEST $requested_ip";
133                          if ( $ip eq $requested_ip ) {                          if ( $ip eq $requested_ip ) {
134                                  $packet->{DHO_DHCP_MESSAGE_TYPE()} = DHCPACK();                                  $packet->{DHO_DHCP_MESSAGE_TYPE()} = DHCPACK();
135                                    $packet->{DHO_DHCP_LEASE_TIME()}   = 100;
136                          } else {                          } else {
137                                  $packet->{DHO_DHCP_MESSAGE_TYPE()} = DHCPNAK();                                  $packet->{DHO_DHCP_MESSAGE_TYPE()} = DHCPNAK();
138                                  $packet->{DHO_DHCP_MESSAGE()} = "Bad request, expected $ip";                                  $packet->{DHO_DHCP_MESSAGE()} = "Bad request, expected $ip";

Legend:
Removed from v.27  
changed lines
  Added in v.28

  ViewVC Help
Powered by ViewVC 1.1.26