mirror of
https://github.com/webmin/webmin.git
synced 2026-05-26 16:10:29 +01:00
Handle aliases without broadcast on FreeBSD
This commit is contained in:
@@ -36,3 +36,4 @@ Added support for VLANs and channel bonding on Debian, thanks to Tim Oberfoell.
|
||||
Boot-time network interfaces can have comments on Redhat-based systems.
|
||||
The list of interfaces is now separated into active and boot time using tabs.
|
||||
The Apply Configuration button on FreeBSD now properly deletes virtual interfaces that should no longer exist.
|
||||
Handle alias interfaces with no broadcast address on FreeBSD.
|
||||
|
||||
@@ -53,11 +53,11 @@ foreach $l (@lines) {
|
||||
local %vtaken = map { $_->{'virtual'}, 1 }
|
||||
grep { $_->{'name'} eq $vifc{'name'} &&
|
||||
$_->{'virtual'} ne "" } @boot;
|
||||
while($l =~ s/inet\s+(\S+)\s+netmask\s+(\S+)\s+broadcast\s+(\S+)//) {
|
||||
while($l =~ s/inet\s+(\S+)\s+netmask\s+(\S+)(\s+broadcast\s+(\S+))?//) {
|
||||
local %vifc = %ifc;
|
||||
$vifc{'address'} = $1;
|
||||
$vifc{'netmask'} = &parse_hex($2);
|
||||
$vifc{'broadcast'} = $3;
|
||||
$vifc{'broadcast'} = $4;
|
||||
$vifc{'up'} = 1;
|
||||
$vifc{'edit'} = $ifc{'edit'};
|
||||
local $boot = $boot{$vifc{'address'}};
|
||||
|
||||
Reference in New Issue
Block a user