1
0
Fork 0
forked from nuttx/nuttx-update

net/if.h: add definitions associated with IF_OPER_

In order to support the compilation of third-party library, we encounter
some situations where the macro is not defined, refer to the common
implementation of other systems and add relevant definitions.

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
This commit is contained in:
zhanghongyu 2023-07-06 16:45:51 +08:00 committed by Alan Carvalho de Assis
parent 08b92ef7cf
commit 3b186dabe0

View file

@ -126,6 +126,19 @@
# define IFF_IS_IPv4(f) (1)
#endif
/* RFC 2863 operational status */
enum
{
IF_OPER_UNKNOWN,
IF_OPER_NOTPRESENT,
IF_OPER_DOWN,
IF_OPER_LOWERLAYERDOWN,
IF_OPER_TESTING,
IF_OPER_DORMANT,
IF_OPER_UP,
};
/****************************************************************************
* Public Type Definitions
****************************************************************************/