mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-26 15:03:53 +01:00
sys/net: Add NETOPT_ACTIVE for netif on/off state
Similar to forcing interface up/down on Linux. In lwIP this is separate to link state.
This commit is contained in:
parent
7bc783e7af
commit
4f6b2759be
@ -299,6 +299,16 @@ typedef enum {
|
||||
*/
|
||||
NETOPT_LINK,
|
||||
|
||||
/**
|
||||
* @brief (@ref netopt_enable_t) network interface status.
|
||||
*
|
||||
* This option is used check state or to enable/disable the interface,
|
||||
* regardless of link status.
|
||||
*
|
||||
* @note On error this option should return a negative number.
|
||||
*/
|
||||
NETOPT_ACTIVE,
|
||||
|
||||
/**
|
||||
* @brief (@ref netopt_enable_t) CSMA/CA support
|
||||
*
|
||||
|
||||
@ -63,6 +63,7 @@ static const char *_netopt_strmap[] = {
|
||||
[NETOPT_MAC_NO_SLEEP] = "NETOPT_MAC_NO_SLEEP",
|
||||
[NETOPT_IS_WIRED] = "NETOPT_IS_WIRED",
|
||||
[NETOPT_LINK] = "NETOPT_LINK",
|
||||
[NETOPT_ACTIVE] = "NETOPT_ACTIVE",
|
||||
[NETOPT_DEVICE_TYPE] = "NETOPT_DEVICE_TYPE",
|
||||
[NETOPT_CHANNEL_PAGE] = "NETOPT_CHANNEL_PAGE",
|
||||
[NETOPT_CCA_THRESHOLD] = "NETOPT_CCA_THRESHOLD",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user