Router Backbone
Modul ini menyertakan fungsi untuk Layanan Openbone Router BackThread.
Ringkasan
Enumerasi |
|
---|---|
otBackboneRouterDomainPrefixEvent{
|
enum Merepresentasikan peristiwa Domain Prefix. |
otBackboneRouterMulticastListenerEvent{
|
enum Mewakili peristiwa Pemroses Multicast. |
otBackboneRouterNdProxyEvent{
|
enum Mewakili peristiwa Proxy ND. |
otBackboneRouterState{
|
enum Mewakili Status Backbone Router. |
Typedef |
|
---|---|
otBackboneRouterConfig
|
typedefstruct otBackboneRouterConfig
Mewakili konfigurasi Backbone Router. |
otBackboneRouterDomainPrefixCallback)(void *aContext, otBackboneRouterDomainPrefixEvent aEvent, const otIp6Prefix *aDomainPrefix)
|
typedefvoid(*
Pointer dipanggil setiap kali Awalan Domain berubah. |
otBackboneRouterMulticastListenerCallback)(void *aContext, otBackboneRouterMulticastListenerEvent aEvent, const otIp6Address *aAddress)
|
typedefvoid(*
Pointer dipanggil setiap kali Pemroses Multicast berubah. |
otBackboneRouterMulticastListenerInfo
|
typedef Merepresentasikan info Pemroses Multicast Router Backbone. |
otBackboneRouterMulticastListenerIterator
|
typedefuint16_t
Digunakan untuk melakukan iterasi melalui Pemroses Multicast. |
otBackboneRouterNdProxyCallback)(void *aContext, otBackboneRouterNdProxyEvent aEvent, const otIp6Address *aDua)
|
typedefvoid(*
Pointer dipanggil setiap kali Proxy Nd berubah. |
otBackboneRouterNdProxyInfo
|
typedefstruct otBackboneRouterNdProxyInfo
Merepresentasikan info Backbone Router ND Proxy. |
Fungsi |
|
---|---|
otBackboneRouterConfigNextDuaRegistrationResponse(otInstance *aInstance, const otIp6InterfaceIdentifier *aMlIid, uint8_t aStatus)
|
void
Mengonfigurasi status respons untuk pendaftaran DUA berikutnya.
|
otBackboneRouterConfigNextMulticastListenerRegistrationResponse(otInstance *aInstance, uint8_t aStatus)
|
void
Mengonfigurasi status respons untuk Pendaftaran Pemroses Multicast berikutnya.
|
otBackboneRouterGetConfig(otInstance *aInstance, otBackboneRouterConfig *aConfig)
|
void
Mendapatkan konfigurasi Backbone Router lokal.
|
otBackboneRouterGetDomainPrefix(otInstance *aInstance, otBorderRouterConfig *aConfig)
|
Mendapatkan konfigurasi Awalan Domain lokal.
|
otBackboneRouterGetNdProxyInfo(otInstance *aInstance, const otIp6Address *aDua, otBackboneRouterNdProxyInfo *aNdProxyInfo)
|
Mendapatkan info Backbone Router ND Proxy.
|
otBackboneRouterGetPrimary(otInstance *aInstance, otBackboneRouterConfig *aConfig)
|
Mendapatkan informasi Router Backbone Utama di Jaringan Thread.
|
otBackboneRouterGetRegistrationJitter(otInstance *aInstance)
|
uint8_t
Menampilkan nilai jitter pendaftaran Router Backbone.
|
otBackboneRouterGetState(otInstance *aInstance)
|
Mendapatkan bBackboneRouterState Router Backbone.
|
otBackboneRouterMulticastListenerAdd(otInstance *aInstance, const otIp6Address *aAddress, uint32_t aTimeout)
|
Menambahkan Pemroses Multicast dengan nilai waktu tunggu, dalam detik.
|
otBackboneRouterMulticastListenerClear(otInstance *aInstance)
|
void
Menghapus Pemroses Multicast.
|
otBackboneRouterMulticastListenerGetNext(otInstance *aInstance, otBackboneRouterMulticastListenerIterator *aIterator, otBackboneRouterMulticastListenerInfo *aListenerInfo)
|
Mendapatkan info Pemroses Multicast berikutnya (menggunakan iterator).
|
otBackboneRouterRegister(otInstance *aInstance)
|
Mendaftarkan konfigurasi Backbone Router lokal secara eksplisit.
|
otBackboneRouterSetConfig(otInstance *aInstance, const otBackboneRouterConfig *aConfig)
|
Menetapkan konfigurasi Backbone Router lokal otBackboneRouterConfig.
|
otBackboneRouterSetDomainPrefixCallback(otInstance *aInstance, otBackboneRouterDomainPrefixCallback aCallback, void *aContext)
|
void
Menetapkan callback Backbone Router Prefix.
|
otBackboneRouterSetEnabled(otInstance *aInstance, bool aEnable)
|
void
Mengaktifkan atau menonaktifkan fungsionalitas Backbone.
|
otBackboneRouterSetMulticastListenerCallback(otInstance *aInstance, otBackboneRouterMulticastListenerCallback aCallback, void *aContext)
|
void
Menetapkan callback Pemroses Multicast Router Backbone.
|
otBackboneRouterSetNdProxyCallback(otInstance *aInstance, otBackboneRouterNdProxyCallback aCallback, void *aContext)
|
void
Menetapkan callback Backbone Router ND Proxy.
|
otBackboneRouterSetRegistrationJitter(otInstance *aInstance, uint8_t aJitter)
|
void
Menetapkan nilai jitter pendaftaran Router Backbone.
|
Struct |
|
---|---|
otBackboneRouterConfig |
Mewakili konfigurasi Backbone Router. |
otBackboneRouterMulticastListenerInfo |
Merepresentasikan info Pemroses Multicast Router Backbone. |
otBackboneRouterNdProxyInfo |
Merepresentasikan info Backbone Router ND Proxy. |
Enumerasi
OTBackboneRouterDomainPrefixEvent
otBackboneRouterDomainPrefixEvent
Merepresentasikan peristiwa Domain Prefix.
Properti | |
---|---|
OT_BACKBONE_ROUTER_DOMAIN_PREFIX_ADDED
|
Awalan Domain telah ditambahkan. |
OT_BACKBONE_ROUTER_DOMAIN_PREFIX_CHANGED
|
Awalan Domain telah diubah. |
OT_BACKBONE_ROUTER_DOMAIN_PREFIX_REMOVED
|
Awalan Domain telah dihapus. |
OTBackboneRouterMulticastListenerEvent
otBackboneRouterMulticastListenerEvent
Mewakili peristiwa Pemroses Multicast.
Properti | |
---|---|
OT_BACKBONE_ROUTER_MULTICAST_LISTENER_ADDED
|
Pemroses Multicast telah ditambahkan. |
OT_BACKBONE_ROUTER_MULTICAST_LISTENER_REMOVED
|
Pemroses Multicast telah dihapus atau habis masa berlakunya. |
OTBackboneRouterNdProxyEvent
otBackboneRouterNdProxyEvent
Mewakili peristiwa Proxy ND.
Properti | |
---|---|
OT_BACKBONE_ROUTER_NDPROXY_ADDED
|
Proxy ND telah ditambahkan. |
OT_BACKBONE_ROUTER_NDPROXY_CLEARED
|
Semua ND Proxies dihapus. |
OT_BACKBONE_ROUTER_NDPROXY_REMOVED
|
Proxy ND telah dihapus. |
OT_BACKBONE_ROUTER_NDPROXY_RENEWED
|
Proxy ND telah diperpanjang. |
OTBackboneRouterState
otBackboneRouterState
Mewakili Status Backbone Router.
Properti | |
---|---|
OT_BACKBONE_ROUTER_STATE_DISABLED
|
Fungsi backbone dinonaktifkan. |
OT_BACKBONE_ROUTER_STATE_PRIMARY
|
Router Backbone Utama. |
OT_BACKBONE_ROUTER_STATE_SECONDARY
|
Router Backbone Sekunder. |
Typedef
OTBackboneRouterConfig
struct otBackboneRouterConfig otBackboneRouterConfig
Mewakili konfigurasi Backbone Router.
OTBackboneRouterDomainPrefixCallback
void(* otBackboneRouterDomainPrefixCallback)(void *aContext, otBackboneRouterDomainPrefixEvent aEvent, const otIp6Prefix *aDomainPrefix)
Pointer dipanggil setiap kali Awalan Domain berubah.
Detail | |||||||
---|---|---|---|---|---|---|---|
Parameter |
|
OTBackboneRouterMulticastListenerCallback
void(* otBackboneRouterMulticastListenerCallback)(void *aContext, otBackboneRouterMulticastListenerEvent aEvent, const otIp6Address *aAddress)
Pointer dipanggil setiap kali Pemroses Multicast berubah.
Detail | |||||||
---|---|---|---|---|---|---|---|
Parameter |
|
OTBackboneRouterMulticastListenerInfo
struct otBackboneRouterMulticastListenerInfo otBackboneRouterMulticastListenerInfo
Merepresentasikan info Pemroses Multicast Router Backbone.
OTBackboneRouterMulticastListenerIterator
uint16_t otBackboneRouterMulticastListenerIterator
Digunakan untuk melakukan iterasi melalui Pemroses Multicast.
OTBackboneRouterNdProxyCallback
void(* otBackboneRouterNdProxyCallback)(void *aContext, otBackboneRouterNdProxyEvent aEvent, const otIp6Address *aDua)
Pointer dipanggil setiap kali Proxy Nd berubah.
Detail | |||||||
---|---|---|---|---|---|---|---|
Parameter |
|
OTBackboneRouterNdProxyInfo
struct otBackboneRouterNdProxyInfo otBackboneRouterNdProxyInfo
Merepresentasikan info Backbone Router ND Proxy.
Fungsi
OTBackboneRouterConfigNextDuaRegistrationResponse
void otBackboneRouterConfigNextDuaRegistrationResponse( otInstance *aInstance, const otIp6InterfaceIdentifier *aMlIid, uint8_t aStatus )
Mengonfigurasi status respons untuk pendaftaran DUA berikutnya.
Catatan: hanya tersedia jika OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE
diaktifkan. Hanya digunakan untuk pengujian dan sertifikasi.
TODO: (DUA) mendukung kode error coap dan proses yang sesuai untuk tujuan sertifikasi.
Detail | |||||||
---|---|---|---|---|---|---|---|
Parameter |
|
OTBackboneRouterConfigNextMulticastListenerRegistrationResponse
void otBackboneRouterConfigNextMulticastListenerRegistrationResponse( otInstance *aInstance, uint8_t aStatus )
Mengonfigurasi status respons untuk Pendaftaran Pemroses Multicast berikutnya.
Tersedia saat OPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE
, OPENTHREAD_CONFIG_BACKBONE_ROUTER_MULTICAST_ROUTING_ENABLE
, dan OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE
diaktifkan.
Detail | |||||
---|---|---|---|---|---|
Parameter |
|
OTBackboneRouterGetConfig
void otBackboneRouterGetConfig( otInstance *aInstance, otBackboneRouterConfig *aConfig )
Mendapatkan konfigurasi Backbone Router lokal.
Tersedia saat OPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE
diaktifkan.
Detail | |||||
---|---|---|---|---|---|
Parameter |
|
otBackboneRouterSetEnabled
otBackboneRouterGetState
otBackboneRouterSetConfig
otBackboneRouterRegister
OTBackboneRouterGetDomainPrefix
otError otBackboneRouterGetDomainPrefix( otInstance *aInstance, otBorderRouterConfig *aConfig )
Mendapatkan konfigurasi Awalan Domain lokal.
Detail | |||||
---|---|---|---|---|---|
Parameter |
|
||||
Nilai yang Ditampilkan |
|
OTBackboneRouterGetNdProxyInfo
otError otBackboneRouterGetNdProxyInfo( otInstance *aInstance, const otIp6Address *aDua, otBackboneRouterNdProxyInfo *aNdProxyInfo )
Mendapatkan info Backbone Router ND Proxy.
Detail | |||||||
---|---|---|---|---|---|---|---|
Parameter |
|
||||||
Nilai yang Ditampilkan |
|
OTBackboneRouterGetPrimary
otError otBackboneRouterGetPrimary( otInstance *aInstance, otBackboneRouterConfig *aConfig )
Mendapatkan informasi Router Backbone Utama di Jaringan Thread.
Detail | |||||
---|---|---|---|---|---|
Parameter |
|
||||
Nilai yang Ditampilkan |
|
OTBackboneRouterGetRegistrationJitter
uint8_t otBackboneRouterGetRegistrationJitter( otInstance *aInstance )
Menampilkan nilai jitter pendaftaran Router Backbone.
Detail | |
---|---|
Pengembalian |
Nilai jitter pendaftaran Router Backbone.
|
otBackboneRouterSetRegistrationJitter
OTBackboneRouterGetState
otBackboneRouterState otBackboneRouterGetState( otInstance *aInstance )
Mendapatkan bBackboneRouterState Router Backbone.
Detail | |||||||
---|---|---|---|---|---|---|---|
Parameter |
|
||||||
Nilai yang Ditampilkan |
|
otBackboneRouterSetEnabled
otBackboneRouterGetConfig
otBackboneRouterSetConfig
otBackboneRouterRegister
OTBackboneRouterMulticastListenerTambahkan
otError otBackboneRouterMulticastListenerAdd( otInstance *aInstance, const otIp6Address *aAddress, uint32_t aTimeout )
Menambahkan Pemroses Multicast dengan nilai waktu tunggu, dalam detik.
Teruskan 0
untuk menggunakan waktu tunggu MLR default.
Tersedia saat OPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE
, OPENTHREAD_CONFIG_BACKBONE_ROUTER_MULTICAST_ROUTING_ENABLE
, dan OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE
diaktifkan.
Detail | |||||||
---|---|---|---|---|---|---|---|
Parameter |
|
||||||
Nilai yang Ditampilkan |
|
otBackboneRouterMulticastListenerClear
otBackboneRouterMulticastListenerGetNext
OTBackboneRouterMulticastListenerClear
void otBackboneRouterMulticastListenerClear( otInstance *aInstance )
Menghapus Pemroses Multicast.
Tersedia saat OPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE
, OPENTHREAD_CONFIG_BACKBONE_ROUTER_MULTICAST_ROUTING_ENABLE
, dan OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE
diaktifkan.
Detail | |||
---|---|---|---|
Parameter |
|
otBackboneRouterMulticastListenerAdd
otBackboneRouterMulticastListenerGetNext
OTBackboneRouterMulticastListenerGetNext
otError otBackboneRouterMulticastListenerGetNext( otInstance *aInstance, otBackboneRouterMulticastListenerIterator *aIterator, otBackboneRouterMulticastListenerInfo *aListenerInfo )
Mendapatkan info Pemroses Multicast berikutnya (menggunakan iterator).
Detail | |||||||
---|---|---|---|---|---|---|---|
Parameter |
|
||||||
Nilai yang Ditampilkan |
|
otBackboneRouterMulticastListenerClear
otBackboneRouterMulticastListenerAdd
OTBackboneRouterDaftar
otError otBackboneRouterRegister( otInstance *aInstance )
Mendaftarkan konfigurasi Backbone Router lokal secara eksplisit.
Pesan Permintaan Data Server SRV_DATA.ntf
dipicu untuk perangkat yang terpasang.
Tersedia saat OPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE
diaktifkan.
Detail | |||||
---|---|---|---|---|---|
Parameter |
|
||||
Nilai yang Ditampilkan |
|
otBackboneRouterSetEnabled
otBackboneRouterGetState
otBackboneRouterGetConfig
otBackboneRouterSetConfig
OTBackboneRouterSetConfig
otError otBackboneRouterSetConfig( otInstance *aInstance, const otBackboneRouterConfig *aConfig )
Menetapkan konfigurasi Backbone Router lokal otBackboneRouterConfig.
Pesan Permintaan Data Server SRV_DATA.ntf
dimulai secara otomatis jika Set Data BBR berubah untuk Router Backbone Utama.
Tersedia saat OPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE
diaktifkan.
Detail | |||||
---|---|---|---|---|---|
Parameter |
|
||||
Nilai yang Ditampilkan |
|
otBackboneRouterSetEnabled
otBackboneRouterGetState
otBackboneRouterGetConfig
otBackboneRouterRegister
OTBackboneRouterSetDomainPrefixCallback
void otBackboneRouterSetDomainPrefixCallback( otInstance *aInstance, otBackboneRouterDomainPrefixCallback aCallback, void *aContext )
Menetapkan callback Backbone Router Prefix.
Detail | |||||||
---|---|---|---|---|---|---|---|
Parameter |
|
OTBackboneRouterSetEnabled
void otBackboneRouterSetEnabled( otInstance *aInstance, bool aEnable )
Mengaktifkan atau menonaktifkan fungsionalitas Backbone.
Jika diaktifkan, pesan Permintaan Data Server SRV_DATA.ntf
dipicu untuk perangkat yang terpasang jika tidak ada Backbone Router Service di Data Jaringan Thread.
Jika dinonaktifkan, SRV_DATA.ntf
akan dipicu jika Router Backbone berada dalam status Utama.
Tersedia saat OPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE
diaktifkan.
Detail | |||||
---|---|---|---|---|---|
Parameter |
|
otBackboneRouterGetState
otBackboneRouterGetConfig
otBackboneRouterSetConfig
otBackboneRouterRegister
OTBackboneRouterSetMulticastListenerCallback
void otBackboneRouterSetMulticastListenerCallback( otInstance *aInstance, otBackboneRouterMulticastListenerCallback aCallback, void *aContext )
Menetapkan callback Pemroses Multicast Router Backbone.
Detail | |||||||
---|---|---|---|---|---|---|---|
Parameter |
|
OTBackboneRouterSetNdProxyCallback
void otBackboneRouterSetNdProxyCallback( otInstance *aInstance, otBackboneRouterNdProxyCallback aCallback, void *aContext )
Menetapkan callback Backbone Router ND Proxy.
Detail | |||||||
---|---|---|---|---|---|---|---|
Parameter |
|
OTBackboneRouterSetRegistrationJitter
void otBackboneRouterSetRegistrationJitter( otInstance *aInstance, uint8_t aJitter )
Menetapkan nilai jitter pendaftaran Router Backbone.
Detail | |||
---|---|---|---|
Parameter |
|
otBackboneRouterGetRegistrationJitter
Makro
OT_BACKBONE_ROUTER_MULTICAST_LISTENER_ITERATOR_INIT
OT_BACKBONE_ROUTER_MULTICAST_LISTENER_ITERATOR_INIT 0
Penginisialisasi otBackboneRouterMulticastListenerIterator.
Resource
Topik Referensi OpenThread API berasal dari kode sumber, yang tersedia di GitHub. Untuk informasi selengkapnya, atau untuk berkontribusi pada dokumentasi kami, lihat Referensi.