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:
parent
08b92ef7cf
commit
3b186dabe0
1 changed files with 13 additions and 0 deletions
|
@ -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
|
||||
****************************************************************************/
|
||||
|
|
Loading…
Reference in a new issue