[erlang-bugs] inet:getifaddrs always returns running
Mon Feb 17 12:48:17 CET 2014
On Fri, Feb 14, 2014 at 12:16:05PM -0600, Anders Nygren wrote:
> I am not sure if this is a bug, or if I misunderstand something.
> On at least R15B01 and R16B03-1 on Linux, inet:getifaddrs always returns
> RUNNING in the flags even if the network cable is disconnected, and
> ifconfig does not show RUNNING.
This seems to be an old (pre-R13) workaround of unknown origin that
emulates RUNNING when UP, so the real IFF_RUNNING flag is ignored.
I consider it a bug, and if IFF_RUNNING is not working or not present
on some platform, that should be worked around instead of working
around a working normal case.
It is now on our interna ToDo list but without priority yet.
> Is there any other way of getting the operational state of an interface?
> erlang-bugs mailing list
/ Raimo Niskanen, Erlang/OTP, Ericsson AB
More information about the erlang-bugs