TuyaOS
结构体 | 宏定义 | 枚举 | 常量
dhcp6.h 文件参考
#include "lwip/opt.h"
dhcp6.h 的引用(Include)关系图:

浏览源代码.

结构体

struct  dhcp6_msg
 

宏定义

#define DHCP6_ADVERTISE   2
 
#define DHCP6_CLIENT_PORT   546
 
#define DHCP6_CONFIRM   4
 
#define DHCP6_DECLINE   9
 
#define DHCP6_DUID_EN   2 /* EN: Enterprise number */
 
#define DHCP6_DUID_LL   3 /* LL: Link-layer Address */
 
#define DHCP6_DUID_LLT   1 /* LLT: Link-layer Address Plus Time */
 
#define DHCP6_DUID_UUID   4 /* UUID (RFC 6355) */
 
#define DHCP6_INFOREQUEST   11
 
#define DHCP6_OPTION_AUTH   11
 
#define DHCP6_OPTION_CLIENTID   1
 
#define DHCP6_OPTION_DNS_SERVERS   23 /* RFC 3646 */
 
#define DHCP6_OPTION_DOMAIN_LIST   24 /* RFC 3646 */
 
#define DHCP6_OPTION_ELAPSED_TIME   8
 
#define DHCP6_OPTION_IA_NA   3
 
#define DHCP6_OPTION_IA_TA   4
 
#define DHCP6_OPTION_IAADDR   5
 
#define DHCP6_OPTION_INTERFACE_ID   18
 
#define DHCP6_OPTION_ORO   6
 
#define DHCP6_OPTION_PREFERENCE   7
 
#define DHCP6_OPTION_RAPID_COMMIT   14
 
#define DHCP6_OPTION_RECONF_ACCEPT   20
 
#define DHCP6_OPTION_RECONF_MSG   19
 
#define DHCP6_OPTION_RELAY_MSG   9
 
#define DHCP6_OPTION_SERVERID   2
 
#define DHCP6_OPTION_SNTP_SERVERS   31 /* RFC 4075 */
 
#define DHCP6_OPTION_STATUS_CODE   13
 
#define DHCP6_OPTION_UNICAST   12
 
#define DHCP6_OPTION_USER_CLASS   15
 
#define DHCP6_OPTION_VENDOR_CLASS   16
 
#define DHCP6_OPTION_VENDOR_OPTS   17
 
#define DHCP6_REBIND   6
 
#define DHCP6_RECONFIGURE   10
 
#define DHCP6_RELAYFORW   12
 
#define DHCP6_RELAYREPL   13
 
#define DHCP6_RELEASE   8
 
#define DHCP6_RENEW   5
 
#define DHCP6_REPLY   7
 
#define DHCP6_REQUEST   3
 
#define DHCP6_SERVER_PORT   547
 
#define DHCP6_SOLICIT   1
 
#define DHCP6_STATUS_NOADDRSAVAIL   2 /* Server has no addresses available to assign to the IA(s). */
 
#define DHCP6_STATUS_NOBINDING   3 /* Client record (binding) unavailable. */
 
#define DHCP6_STATUS_NOTONLINK   4 /* The prefix for the address is not appropriate for the link to which the client is attached. */
 
#define DHCP6_STATUS_SUCCESS   0 /* Success. */
 
#define DHCP6_STATUS_UNSPECFAIL   1 /* Failure, reason unspecified; this status code is sent by either a client or a server to indicate a failure not explicitly specified in this document. */
 
#define DHCP6_STATUS_USEMULTICAST   5 /* Sent by a server to a client to force the client to send messages to the server using the All_DHCP_Relay_Agents_and_Servers address. */
 
#define DHCP6_TRANSACTION_ID_LEN   3
 

枚举

enum  dhcp6_state_enum_t { DHCP6_STATE_OFF = 0 , DHCP6_STATE_STATELESS_IDLE = 1 , DHCP6_STATE_REQUESTING_CONFIG = 2 }
 

常量

PACK_STRUCT_BEGIN struct dhcp6_msg PACK_STRUCT_STRUCT
 

详细描述

DHCPv6 protocol definitions

宏定义说明

◆ DHCP6_DUID_LLT

#define DHCP6_DUID_LLT   1 /* LLT: Link-layer Address Plus Time */

DHCPv6 DUID types

◆ DHCP6_STATUS_SUCCESS

#define DHCP6_STATUS_SUCCESS   0 /* Success. */

DHCPv6 status codes