ICMPv6
이 모듈에는 ICMPv6 통신을 제어하는 기능이 포함되어 있습니다.
요약
열거 형 | |
---|---|
otIcmp6Code { | 열거 형 ICMPv6 메시지 코드. |
otIcmp6EchoMode { | 열거 형 ICMPv6 에코 응답 모드. |
otIcmp6Type { | 열거 형 ICMPv6 메시지 유형. |
Typedef | |
---|---|
otIcmp6Code | typedefenum otIcmp6Code ICMPv6 메시지 코드. |
otIcmp6EchoMode | typedefenum otIcmp6EchoMode ICMPv6 에코 응답 모드. |
otIcmp6Handler | typedefstruct otIcmp6Handler 이 구조는 ICMPv6 메시지 처리기를 구현합니다. |
otIcmp6Header | typedefstruct otIcmp6Header 이 유형은 ICMPv6 헤더를 나타냅니다. |
otIcmp6ReceiveCallback )(void *aContext, otMessage *aMessage, const otMessageInfo *aMessageInfo, const otIcmp6Header *aIcmpHeader) | typedefvoid(* 이 콜백을 통해 OpenThread는 수신 된 ICMPv6 메시지를 응용 프로그램에 알릴 수 있습니다. |
otIcmp6Type | typedefenum 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) | 이 함수는 스레드 인터페이스를 통해 ICMPv6 에코 요청을 보냅니다. |
otIcmp6SetEchoMode ( otInstance *aInstance, otIcmp6EchoMode aMode) | void 이 기능은 ICMPv6 에코 처리의 활성화 여부를 설정합니다. |
구조체 | |
---|---|
otIcmp6Handler | 이 구조는 ICMPv6 메시지 처리기를 구현합니다. |
otIcmp6Header | 이 구조는 ICMPv6 헤더를 나타냅니다. |
연합 | |
---|---|
otIcmp6Header :: OT_TOOL_PACKED_FIELD |
열거 형
otIcmp6Code
otIcmp6Code
otIcmp6EchoMode
otIcmp6EchoMode
otIcmp6Type
otIcmp6Type
ICMPv6 메시지 유형.
Typedef
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 )
이 함수는 스레드 인터페이스를 통해 ICMPv6 에코 요청을 보냅니다.
세부 | |||||||||
---|---|---|---|---|---|---|---|---|---|
매개 변수 |
|
otIcmp6SetEchoMode
void otIcmp6SetEchoMode( otInstance *aInstance, otIcmp6EchoMode aMode )
이 기능은 ICMPv6 에코 처리의 활성화 여부를 설정합니다.
세부 | |||||
---|---|---|---|---|---|
매개 변수 |
|
매크로
OT_ICMP6_HEADER_DATA_SIZE
OT_ICMP6_HEADER_DATA_SIZE 4
ICMPv6 헤더의 메시지 특정 데이터 크기입니다.