mirror of
https://github.com/apache/nuttx.git
synced 2026-05-20 04:16:35 +08:00
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:
committed by
Alan Carvalho de Assis
parent
08b92ef7cf
commit
3b186dabe0
@@ -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
|
||||
****************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user