projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba5c6ed
)
Compute broadcast if missing
author
Jamie Cameron
<jcameron@webmin.com>
Sun, 3 Jan 2010 20:50:15 +0000
(12:50 -0800)
committer
Jamie Cameron
<jcameron@webmin.com>
Sun, 3 Jan 2010 20:50:15 +0000
(12:50 -0800)
net/redhat-linux-lib.pl
patch
|
blob
|
history
diff --git
a/net/redhat-linux-lib.pl
b/net/redhat-linux-lib.pl
index
f3333c7
..
f48a546
100755
(executable)
--- a/
net/redhat-linux-lib.pl
+++ b/
net/redhat-linux-lib.pl
@@
-94,7
+94,8
@@
while($f = readdir(CONF)) {
($conf{'ONBOOT'} eq 'yes');
$b->{'address'} = $conf{'IPADDR'};
$b->{'netmask'} = $conf{'NETMASK'};
- $b->{'broadcast'} = $conf{'BROADCAST'};
+ $b->{'broadcast'} = $conf{'BROADCAST'} ||
+ &compute_broadcast($b->{'address'}, $b->{'netmask'});
$b->{'gateway'} = $conf{'GATEWAY'};
$b->{'mtu'} = $conf{'MTU'};
$b->{'ether'} = $conf{'MACADDR'};