/[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 6 by dpavlin, Sun Jul 26 15:16:52 2009 UTC revision 8 by dpavlin, Mon Jul 27 11:46:44 2009 UTC
# Line 38  sub client_ip { Line 38  sub client_ip {
38          my $ip = $_mac2ip->{$mac};          my $ip = $_mac2ip->{$mac};
39          return $ip if $ip;          return $ip if $ip;
40    
41          $ip = "10.0.0.$_ip";          $ip = $server_ip;
42            $ip =~ s{\.\d+$}{.$_ip};
43          $_mac2ip->{$mac} = $ip;          $_mac2ip->{$mac} = $ip;
44    
45          $_ip++;          $_ip++;

Legend:
Removed from v.6  
changed lines
  Added in v.8

  ViewVC Help
Powered by ViewVC 1.1.26