lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-users] Behavior of netif_set_link_down


From: Richner Simon
Subject: [lwip-users] Behavior of netif_set_link_down
Date: Wed, 1 May 2013 10:18:30 +0200

Hi,

In my driver I call <netif_set_link_up> and <netif_set_link_down> when I
detect that a cable was connected to / removed from my device. However,
I noticed, that only setting the link up triggers <dhcp_network_changed>
and not setting link down. So when a cable gets removed, the
NETIF_FLAG_UP stays true.

In my application, I send some data periodically to a predefined IP.
When now the cable gets disconnected, the application doesn't get
informed about this, neighter gets the netif set down. So my application
continues to spam my hardware and sooner or later I get a buffer
overflow on my hardware!

=> What is calling <netif_set_link_down> good for, when it doesn't bring
the interface down?

=> What would be the best way to tell my application to stop streaming?



Best Regards
Simon



reply via email to

[Prev in Thread] Current Thread [Next in Thread]