Am 31.03.2020 um 22:47 schrieb Massimiliano Cialdi:
> On Tue, Mar 31, 2020 at 10:11 PM Simon Goldschmidt <goldsi...@gmx.de> wrote:
>> You're mixing link state with admin state here. That might work, but
>> might not work in some situations.
> It's not so clear to me.
> Which pattern should I adopt to keep the link status under control?
> What do you mean by 'admin state'?

"Admin state" is "netif_set_up()".

> How should the admin state be affected by the link state?

Not at all. Just call "netif_set_link_up()" or down when you found out a
state change. Leave "netif_set_up()" as it is.

Regards,
Simon

_______________________________________________
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to