]> git.proxmox.com Git - pve-common.git/commit
Fix #882: active state of interfaces depends on ipv6
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 10 Feb 2016 09:59:07 +0000 (10:59 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 10 Feb 2016 11:20:21 +0000 (12:20 +0100)
commit12a235d624c04795a542703a48f65d6d1a22c474
tree739f98ead4f7174be59efe807154501beb413f51
parent2701dc74793e1325c177b1829dc9705c0a76ba04
Fix #882: active state of interfaces depends on ipv6

read_etc_network_interfaces used the content of
/proc/net/if_inet6 to decide whether an interface's state is
"active", which means an interface is only active when it
has an ipv6 address, thus using net.ipv6.conf.*.disable_ipv6
on an interface will cause it to show as inactive in the web
interface.

We now filter the interfaces found in /proc/dev/net by their
IFF_UP flag read via an SIOCGIFFLAGS ioctl().
src/PVE/INotify.pm
src/PVE/Network.pm
test/etc_network_interfaces/active_interfaces [new file with mode: 0644]
test/etc_network_interfaces/proc_net_if_inet6 [deleted file]
test/etc_network_interfaces/runtest.pl