ICMPv6
該模塊包括控制ICMPv6通信的功能。
概要
枚舉 | |
---|---|
otIcmp6Code { | 枚舉 ICMPv6消息代碼。 |
otIcmp6EchoMode { | 枚舉 ICMPv6迴聲回复模式。 |
otIcmp6Type { | 枚舉 ICMPv6消息類型。 |
類型定義 | |
---|---|
otIcmp6Code | 類型定義enum otIcmp6Code ICMPv6消息代碼。 |
otIcmp6EchoMode | 類型定義enum otIcmp6EchoMode ICMPv6迴聲回复模式。 |
otIcmp6Handler | 類型定義struct otIcmp6Handler 此結構實現ICMPv6消息處理程序。 |
otIcmp6Header | 類型定義struct otIcmp6Header 此類型表示ICMPv6標頭。 |
otIcmp6ReceiveCallback )(void *aContext, otMessage *aMessage, const otMessageInfo *aMessageInfo, const otIcmp6Header *aIcmpHeader) | 類型定義void(* 此回調允許OpenThread通知應用程序收到的ICMPv6消息。 |
otIcmp6Type | 類型定義enum otIcmp6Type ICMPv6消息類型。 |
變數 | |
---|---|
OT_TOOL_PACKED_END |
職能 | |
---|---|
otIcmp6GetEchoMode ( otInstance *aInstance) | 此功能指示是否啟用ICMPv6回顯處理。 |
otIcmp6RegisterHandler ( otInstance *aInstance, otIcmp6Handler *aHandler) | 此函數註冊一個處理程序以提供接收到的ICMPv6消息。 |
otIcmp6SendEchoRequest ( otInstance *aInstance, otMessage *aMessage, const otMessageInfo *aMessageInfo, uint16_t aIdentifier) | 此函數通過Thread接口發送ICMPv6回顯請求。 |
otIcmp6SetEchoMode ( otInstance *aInstance, otIcmp6EchoMode aMode) | void 此功能設置是否啟用ICMPv6回顯處理。 |
結構 | |
---|---|
otIcmp6Handler | 此結構實現ICMPv6消息處理程序。 |
otIcmp6Header | 此結構表示ICMPv6標頭。 |
工會 | |
---|---|
otIcmp6Header :: OT_TOOL_PACKED_FIELD |
枚舉
otIcmp6Code
otIcmp6Code
otIcmp6EchoMode
otIcmp6EchoMode
otIcmp6Type
otIcmp6Type
類型定義
otIcmp6ReceiveCallback
void(* otIcmp6ReceiveCallback)(void *aContext, otMessage *aMessage, const otMessageInfo *aMessageInfo, const otIcmp6Header *aIcmpHeader)
此回調允許OpenThread通知應用程序收到的ICMPv6消息。
細節 | |||||||||
---|---|---|---|---|---|---|---|---|---|
參量 |
|
變數
OT_TOOL_PACKED_END
OT_TOOL_PACKED_BEGIN struct otIcmp6Header OT_TOOL_PACKED_END
職能
otIcmp6GetEchoMode
otIcmp6EchoMode otIcmp6GetEchoMode( otInstance *aInstance )
此功能指示是否啟用ICMPv6回顯處理。
細節 | |||||||||
---|---|---|---|---|---|---|---|---|---|
參量 |
| ||||||||
返回值 |
|
otIcmp6RegisterHandler
otError otIcmp6RegisterHandler( otInstance *aInstance, otIcmp6Handler *aHandler )
此函數註冊一個處理程序以提供接收到的ICMPv6消息。
細節 | |||||
---|---|---|---|---|---|
參量 |
|
otIcmp6SendEchoRequest
otError otIcmp6SendEchoRequest( otInstance *aInstance, otMessage *aMessage, const otMessageInfo *aMessageInfo, uint16_t aIdentifier )
此函數通過Thread接口發送ICMPv6回顯請求。
細節 | |||||||||
---|---|---|---|---|---|---|---|---|---|
參量 |
|
otIcmp6SetEchoMode
void otIcmp6SetEchoMode( otInstance *aInstance, otIcmp6EchoMode aMode )
此功能設置是否啟用ICMPv6回顯處理。
細節 | |||||
---|---|---|---|---|---|
參量 |
|
巨集
OT_ICMP6_HEADER_DATA_SIZE
OT_ICMP6_HEADER_DATA_SIZE 4
ICMPv6標頭的消息特定數據的大小。