Interfejs infrastruktury
Ten moduł zawiera abstrakcję platformy dla sąsiedniego interfejsu sieci infrastruktury.
Podsumowanie
Funkcje |
|
|---|---|
otPlatInfraIfDiscoverNat64Prefix(uint32_t aInfraIfIndex)
|
Wyślij żądanie wykrywania prefiksu NAT64 w interfejsie infrastruktury za pomocą
aInfraIfIndex. |
otPlatInfraIfDiscoverNat64PrefixDone(otInstance *aInstance, uint32_t aInfraIfIndex, const otIp6Prefix *aIp6Prefix)
|
void
Sterownik interfejsu infrastruktury wywołuje tę metodę, aby powiadamiać OpenThread o zakończeniu wykrywania prefiksu NAT64.
|
otPlatInfraIfHasAddress(uint32_t aInfraIfIndex, const otIp6Address *aAddress)
|
bool
Wskazuje, czy interfejs infrastruktury ma przypisany adres IPv6.
|
otPlatInfraIfRecvIcmp6Nd(otInstance *aInstance, uint32_t aInfraIfIndex, const otIp6Address *aSrcAddress, const uint8_t *aBuffer, uint16_t aBufferLength)
|
void
Sterownik interfejsu infrastruktury wywołuje tę metodę, aby powiadamiać OpenThread o otrzymaniu wiadomości wykrywania sąsiadów ICMPv6.
|
otPlatInfraIfSendIcmp6Nd(uint32_t aInfraIfIndex, const otIp6Address *aDestAddress, const uint8_t *aBuffer, uint16_t aBufferLength)
|
Wysyła komunikat wykrywania sąsiadów ICMPv6 przez dany interfejs infrastruktury.
|
otPlatInfraIfStateChanged(otInstance *aInstance, uint32_t aInfraIfIndex, bool aIsRunning)
|
Sterownik interfejsu infrastruktury wywołuje tę metodę, aby powiadamiać OpenThread o zmianach stanu interfejsu.
|
Funkcje
otPlatInfraIfDiscoverNat64Prefix
otError otPlatInfraIfDiscoverNat64Prefix( uint32_t aInfraIfIndex )
Wyślij żądanie wykrywania prefiksu NAT64 w interfejsie infrastruktury za pomocą aInfraIfIndex.
OpenThread będzie okresowo wywoływać tę metodę, aby monitorować obecność lub zmianę prefiksu NAT64.
| Szczegóły | |||||
|---|---|---|---|---|---|
| Parametry |
|
||||
| Zwracane wartości |
|
||||
otPlatInfraIfDiscoverNat64PrefixDone
void otPlatInfraIfDiscoverNat64PrefixDone( otInstance *aInstance, uint32_t aInfraIfIndex, const otIp6Prefix *aIp6Prefix )
Sterownik interfejsu infrastruktury wywołuje tę metodę, aby powiadamiać OpenThread o zakończeniu wykrywania prefiksu NAT64.
Powinna być wywoływana po wywołaniu otPlatInfraIfDiscoverNat64Prefix. Jeśli nie zostanie wykryty żaden prefiks NAT64, aIp6Prefix powinien wskazywać pusty prefiks o zerowej długości.
| Szczegóły | |||||||
|---|---|---|---|---|---|---|---|
| Parametry |
|
||||||
otPlatInfraIfHasAddress
bool otPlatInfraIfHasAddress( uint32_t aInfraIfIndex, const otIp6Address *aAddress )
Wskazuje, czy interfejs infrastruktury ma przypisany adres IPv6.
| Szczegóły | |||||
|---|---|---|---|---|---|
| Parametry |
|
||||
| Zwroty |
Wartość TRUE, jeśli interfejs infrastruktury podał adres IPv6, w przeciwnym razie ma wartość FALSE.
|
||||
OTPlatInfraIfRecvIcmp6Nd
void otPlatInfraIfRecvIcmp6Nd( otInstance *aInstance, uint32_t aInfraIfIndex, const otIp6Address *aSrcAddress, const uint8_t *aBuffer, uint16_t aBufferLength )
Sterownik interfejsu infrastruktury wywołuje tę metodę, aby powiadamiać OpenThread o otrzymaniu wiadomości wykrywania sąsiadów ICMPv6.
Patrz: RFC 4861: https://tools.ietf.org/html/rfc4861.
| Szczegóły | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Parametry |
|
||||||||||
otPlatInfraIfSendIcmp6Nd
otError otPlatInfraIfSendIcmp6Nd( uint32_t aInfraIfIndex, const otIp6Address *aDestAddress, const uint8_t *aBuffer, uint16_t aBufferLength )
Wysyła komunikat wykrywania sąsiadów ICMPv6 przez dany interfejs infrastruktury.
Patrz: RFC 4861: https://tools.ietf.org/html/rfc4861.
| Szczegóły | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| Parametry |
|
||||||||
| Zwracane wartości |
|
||||||||
otPlatInfraIfStateChanged
otError otPlatInfraIfStateChanged( otInstance *aInstance, uint32_t aInfraIfIndex, bool aIsRunning )
Sterownik interfejsu infrastruktury wywołuje tę metodę, aby powiadamiać OpenThread o zmianach stanu interfejsu.
Platforma może wywoływać metodę nawet wtedy, gdy stan działania interfejsu się nie zmienił. Nie ma to wpływu na stan menedżera routingu.
| Szczegóły | |||||||
|---|---|---|---|---|---|---|---|
| Parametry |
|
||||||
| Zwracane wartości |
|
||||||
Zasoby
Tematy referencyjne interfejsu OpenThread API pochodzą z kodu źródłowego dostępnego w GitHub. Aby dowiedzieć się więcej lub dołączyć do naszej dokumentacji, skorzystaj z sekcji Zasoby.