summaryrefslogtreecommitdiffstats
path: root/libbsd.txt
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-10-16 07:29:37 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-10-16 07:29:37 +0200
commit43dc972cbc261ebafc8ebea5d08fc07ba74fdf34 (patch)
tree0187a993ed250a611b5b608e69527002f60b4fb1 /libbsd.txt
parentSYSLOG(3): Replace implementation (diff)
downloadrtems-libbsd-43dc972cbc261ebafc8ebea5d08fc07ba74fdf34.tar.bz2
doc: Add network interface link up/down hint
Diffstat (limited to 'libbsd.txt')
-rw-r--r--libbsd.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/libbsd.txt b/libbsd.txt
index be2aed19..96173e88 100644
--- a/libbsd.txt
+++ b/libbsd.txt
@@ -274,6 +274,17 @@ http://www.freebsd.org/cgi/man.cgi?query=resolver&sektion=3&apropos=0&manpath=Fr
http://www.freebsd.org/cgi/man.cgi?query=gethostbyname&sektion=3&apropos=0&manpath=FreeBSD+9.2-RELEASE[GETHOSTBYNAME(3)]:: Get network host entry
+== Network Interface Drivers
+
+=== Link Up/Down Events
+
+You can notifiy the application space of link up/down events in your network
+interface driver via the if_link_state_change(LINK_STATE_UP/LINK_STATE_DOWN)
+function. The DHCPCD(8) client is a consumer of these events for example.
+Make sure that the interface flag IFF_UP and the interface driver flag
+IFF_DRV_RUNNING is set in case the link is up, otherwise ether_output() will
+return the error status ENETDOWN.
+
== Issues and TODO
* Per-CPU data should be enabled once the new stack is ready for SMP.