diff options
Diffstat (limited to 'dhcp_wizard')
-rwxr-xr-x | dhcp_wizard/Dhcp.pm | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/dhcp_wizard/Dhcp.pm b/dhcp_wizard/Dhcp.pm index 72a413f1..055dd055 100755 --- a/dhcp_wizard/Dhcp.pm +++ b/dhcp_wizard/Dhcp.pm @@ -142,18 +142,26 @@ $o->{pages} = { sub compute_range { my ($d, $s) = @_; my $n; - if ($d <= 64) { $n = "65" } - elsif ($d <= 128) { $n = "129" } - else { $n = "1" } + if ($d <= 64) { + $n = "65"; + } elsif ($d <= 128) { + $n = "129"; + } else { + $n = "1"; + } "$s.$n"; } sub compute_range2 { my ($d, $s) = @_; my $n; - if ($d <= 128) { $n = "254" } - elsif ($d > 192) { $n = "192" } - else { $n = "128" } + if ($d <= 128) { + $n = "254"; + } elsif ($d > 192) { + $n = "192"; + } else { + $n = "128"; + } "$s.$n"; } |