mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-05-14 00:59:17 +08:00
libbsd.txt: Move network interface driver hints
This commit is contained in:
parent
e56945817f
commit
a3172c7f26
@ -416,3 +416,17 @@ within interrupt context is not allowed, so the Board Support Package (BSP)
|
||||
should support the
|
||||
`Interrupt Manager <https://docs.rtems.org/branches/master/c-user/interrupt/directives.html#rtems-interrupt-server-handler-install>`_
|
||||
in general.
|
||||
|
||||
Network Interface Drivers Hints
|
||||
===============================
|
||||
|
||||
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``.
|
||||
|
11
libbsd.txt
11
libbsd.txt
@ -7,17 +7,6 @@ RTEMS BSD Library Guide
|
||||
|
||||
== Getting Started
|
||||
|
||||
== 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.
|
||||
|
||||
== Qemu
|
||||
|
||||
Use the following script to set up a virtual network with three tap devices
|
||||
|
Loading…
x
Reference in New Issue
Block a user