TuyaOS
结构体 | 宏定义 | 常量
nd6.h 文件参考
#include "lwip/arch.h"
#include "lwip/ip6_addr.h"
#include "lwip/prot/ip6.h"
nd6.h 的引用(Include)关系图:

浏览源代码.

结构体

struct  rdnss_option
 

宏定义

#define ND6_FLAG_OVERRIDE   (0x20)
 
#define ND6_FLAG_ROUTER   (0x80)
 
#define ND6_FLAG_SOLICITED   (0x40)
 
#define ND6_OPTION_TYPE_MTU   (0x05)
 
#define ND6_OPTION_TYPE_PREFIX_INFO   (0x03)
 
#define ND6_OPTION_TYPE_RDNSS   (25)
 
#define ND6_OPTION_TYPE_REDIR_HDR   (0x04)
 
#define ND6_OPTION_TYPE_ROUTE_INFO   (24)
 
#define ND6_OPTION_TYPE_SOURCE_LLADDR   (0x01)
 
#define ND6_OPTION_TYPE_TARGET_LLADDR   (0x02)
 
#define ND6_PREFIX_FLAG_AUTONOMOUS   (0x40)
 
#define ND6_PREFIX_FLAG_ON_LINK   (0x80)
 
#define ND6_PREFIX_FLAG_ROUTER_ADDRESS   (0x20)
 
#define ND6_PREFIX_FLAG_SITE_PREFIX   (0x10)
 
#define ND6_RA_FLAG_HOME_AGENT   (0x20)
 
#define ND6_RA_FLAG_MANAGED_ADDR_CONFIG   (0x80)
 
#define ND6_RA_FLAG_OTHER_CONFIG   (0x40)
 
#define ND6_RA_PREFERENCE_DISABLED   (0x10)
 
#define ND6_RA_PREFERENCE_HIGH   (0x08)
 
#define ND6_RA_PREFERENCE_LOW   (0x18)
 
#define ND6_RA_PREFERENCE_MASK   (0x18)
 
#define ND6_RA_PREFERENCE_MEDIUM   (0x00)
 
#define SIZEOF_RDNSS_OPTION_BASE   8 /* size without addresses */
 

常量

PACK_STRUCT_BEGIN struct ns_header PACK_STRUCT_STRUCT
 

详细描述

ND6 protocol definitions

宏定义说明

◆ ND6_OPTION_TYPE_MTU

#define ND6_OPTION_TYPE_MTU   (0x05)

MTU option.

◆ ND6_OPTION_TYPE_PREFIX_INFO

#define ND6_OPTION_TYPE_PREFIX_INFO   (0x03)

Prefix information option.

◆ ND6_OPTION_TYPE_RDNSS

#define ND6_OPTION_TYPE_RDNSS   (25)

Recursive DNS Server Option.

◆ ND6_OPTION_TYPE_REDIR_HDR

#define ND6_OPTION_TYPE_REDIR_HDR   (0x04)

Redirected header option.

◆ ND6_OPTION_TYPE_ROUTE_INFO

#define ND6_OPTION_TYPE_ROUTE_INFO   (24)

Route information option.

◆ ND6_OPTION_TYPE_SOURCE_LLADDR

#define ND6_OPTION_TYPE_SOURCE_LLADDR   (0x01)

Link-layer address option.

◆ ND6_RA_FLAG_MANAGED_ADDR_CONFIG

#define ND6_RA_FLAG_MANAGED_ADDR_CONFIG   (0x80)

Router advertisement message header.