babeld icon indicating copy to clipboard operation
babeld copied to clipboard

interface marked as down while it is up

Open christf opened this issue 5 years ago • 4 comments

After some run-time I saw interfaces bing marked as down in babeld via dump command. removing the interface and re-adding it again did not make this interface usable again. ifconfig showed the interface as UP. running ip link set device up did not affect the status displayed by dump on the babel socket.

I am not sure yet what is wrong, but the behavior is odd, so I am capturing it and the investigation here.

christf avatar May 21 '19 23:05 christf

Hallo, Ifconfig is bogus and may malicious people to escalate rights. I raised this to CentOS developer last year.

mezgani avatar May 21 '19 23:05 mezgani

thank you for your input. this issue is not about ifconfig. ip link shows the interface as "up" as well. This is about babeld displaying unexpected behavior.

christf avatar May 22 '19 00:05 christf

This is not unlikely — I'm not happy with the code that keeps track of interface status, it feels fragile to me. Rewriting if_up in interface.c might be a good idea.

jech avatar Jun 28 '19 15:06 jech

Note further that this is not going to be changed in the 1.8 branch (which only takes critical bug fixes), so if you intend to work on this issue, please use the current master (1.9 branch).

jech avatar Jul 22 '19 22:07 jech