Lines Matching refs:aInstance

47 otError otIp6SetEnabled(otInstance *aInstance, bool aEnabled)  in otIp6SetEnabled()  argument
50 Instance &instance = AsCoreType(aInstance); in otIp6SetEnabled()
71 bool otIp6IsEnabled(otInstance *aInstance) { return AsCoreType(aInstance).Get<ThreadNetif>().IsUp()… in otIp6IsEnabled() argument
73 const otNetifAddress *otIp6GetUnicastAddresses(otInstance *aInstance) in otIp6GetUnicastAddresses() argument
75 return AsCoreType(aInstance).Get<ThreadNetif>().GetUnicastAddresses().GetHead(); in otIp6GetUnicastAddresses()
78 otError otIp6AddUnicastAddress(otInstance *aInstance, const otNetifAddress *aAddress) in otIp6AddUnicastAddress() argument
80 return AsCoreType(aInstance).Get<ThreadNetif>().AddExternalUnicastAddress(AsCoreType(aAddress)); in otIp6AddUnicastAddress()
83 otError otIp6RemoveUnicastAddress(otInstance *aInstance, const otIp6Address *aAddress) in otIp6RemoveUnicastAddress() argument
85 …return AsCoreType(aInstance).Get<ThreadNetif>().RemoveExternalUnicastAddress(AsCoreType(aAddress)); in otIp6RemoveUnicastAddress()
88 const otNetifMulticastAddress *otIp6GetMulticastAddresses(otInstance *aInstance) in otIp6GetMulticastAddresses() argument
90 return AsCoreType(aInstance).Get<ThreadNetif>().GetMulticastAddresses().GetHead(); in otIp6GetMulticastAddresses()
93 otError otIp6SubscribeMulticastAddress(otInstance *aInstance, const otIp6Address *aAddress) in otIp6SubscribeMulticastAddress() argument
95 … return AsCoreType(aInstance).Get<ThreadNetif>().SubscribeExternalMulticast(AsCoreType(aAddress)); in otIp6SubscribeMulticastAddress()
98 otError otIp6UnsubscribeMulticastAddress(otInstance *aInstance, const otIp6Address *aAddress) in otIp6UnsubscribeMulticastAddress() argument
100 …return AsCoreType(aInstance).Get<ThreadNetif>().UnsubscribeExternalMulticast(AsCoreType(aAddress)); in otIp6UnsubscribeMulticastAddress()
103 bool otIp6IsMulticastPromiscuousEnabled(otInstance *aInstance) in otIp6IsMulticastPromiscuousEnabled() argument
105 return AsCoreType(aInstance).Get<ThreadNetif>().IsMulticastPromiscuousEnabled(); in otIp6IsMulticastPromiscuousEnabled()
108 void otIp6SetMulticastPromiscuousEnabled(otInstance *aInstance, bool aEnabled) in otIp6SetMulticastPromiscuousEnabled() argument
110 AsCoreType(aInstance).Get<ThreadNetif>().SetMulticastPromiscuous(aEnabled); in otIp6SetMulticastPromiscuousEnabled()
113 void otIp6SetReceiveCallback(otInstance *aInstance, otIp6ReceiveCallback aCallback, void *aCallback… in otIp6SetReceiveCallback() argument
115 AsCoreType(aInstance).Get<Ip6::Ip6>().SetReceiveDatagramCallback(aCallback, aCallbackContext); in otIp6SetReceiveCallback()
118 void otIp6SetAddressCallback(otInstance *aInstance, otIp6AddressCallback aCallback, void *aCallback… in otIp6SetAddressCallback() argument
120 AsCoreType(aInstance).Get<ThreadNetif>().SetAddressCallback(aCallback, aCallbackContext); in otIp6SetAddressCallback()
123 bool otIp6IsReceiveFilterEnabled(otInstance *aInstance) in otIp6IsReceiveFilterEnabled() argument
125 return AsCoreType(aInstance).Get<Ip6::Ip6>().IsReceiveIp6FilterEnabled(); in otIp6IsReceiveFilterEnabled()
128 void otIp6SetReceiveFilterEnabled(otInstance *aInstance, bool aEnabled) in otIp6SetReceiveFilterEnabled() argument
130 AsCoreType(aInstance).Get<Ip6::Ip6>().SetReceiveIp6FilterEnabled(aEnabled); in otIp6SetReceiveFilterEnabled()
133 otError otIp6Send(otInstance *aInstance, otMessage *aMessage) in otIp6Send() argument
135 return AsCoreType(aInstance).Get<Ip6::Ip6>().SendRaw(AsCoreType(aMessage), in otIp6Send()
139 otMessage *otIp6NewMessage(otInstance *aInstance, const otMessageSettings *aSettings) in otIp6NewMessage() argument
141 return AsCoreType(aInstance).Get<Ip6::Ip6>().NewMessage(0, Message::Settings::From(aSettings)); in otIp6NewMessage()
144 otMessage *otIp6NewMessageFromBuffer(otInstance *aInstance, in otIp6NewMessageFromBuffer() argument
149 return AsCoreType(aInstance).Get<Ip6::Ip6>().NewMessageFromData(aData, aDataLength, in otIp6NewMessageFromBuffer()
153 otError otIp6AddUnsecurePort(otInstance *aInstance, uint16_t aPort) in otIp6AddUnsecurePort() argument
155 return AsCoreType(aInstance).Get<Ip6::Filter>().AddUnsecurePort(aPort); in otIp6AddUnsecurePort()
158 otError otIp6RemoveUnsecurePort(otInstance *aInstance, uint16_t aPort) in otIp6RemoveUnsecurePort() argument
160 return AsCoreType(aInstance).Get<Ip6::Filter>().RemoveUnsecurePort(aPort); in otIp6RemoveUnsecurePort()
163 void otIp6RemoveAllUnsecurePorts(otInstance *aInstance) in otIp6RemoveAllUnsecurePorts() argument
165 AsCoreType(aInstance).Get<Ip6::Filter>().RemoveAllUnsecurePorts(); in otIp6RemoveAllUnsecurePorts()
168 const uint16_t *otIp6GetUnsecurePorts(otInstance *aInstance, uint8_t *aNumEntries) in otIp6GetUnsecurePorts() argument
172 return AsCoreType(aInstance).Get<Ip6::Filter>().GetUnsecurePorts(*aNumEntries); in otIp6GetUnsecurePorts()
228 otError otIp6SelectSourceAddress(otInstance *aInstance, otMessageInfo *aMessageInfo) in otIp6SelectSourceAddress() argument
230 return AsCoreType(aInstance).Get<Ip6::Ip6>().SelectSourceAddress(AsCoreType(aMessageInfo)); in otIp6SelectSourceAddress()
234 otError otIp6RegisterMulticastListeners(otInstance *aInstance, in otIp6RegisterMulticastListeners() argument
241 …return AsCoreType(aInstance).Get<MlrManager>().RegisterMulticastListeners(aAddresses, aAddressNum,… in otIp6RegisterMulticastListeners()
248 bool otIp6IsSlaacEnabled(otInstance *aInstance) { return AsCoreType(aInstance).Get<Utils::Slaac>().… in otIp6IsSlaacEnabled() argument
250 void otIp6SetSlaacEnabled(otInstance *aInstance, bool aEnabled) in otIp6SetSlaacEnabled() argument
252 Instance &instance = AsCoreType(aInstance); in otIp6SetSlaacEnabled()
264 void otIp6SetSlaacPrefixFilter(otInstance *aInstance, otIp6SlaacPrefixFilter aFilter) in otIp6SetSlaacPrefixFilter() argument
266 AsCoreType(aInstance).Get<Utils::Slaac>().SetFilter(aFilter); in otIp6SetSlaacPrefixFilter()
273 otError otIp6SetMeshLocalIid(otInstance *aInstance, const otIp6InterfaceIdentifier *aIid) in otIp6SetMeshLocalIid() argument
275 return AsCoreType(aInstance).Get<Mle::MleRouter>().SetMeshLocalIid(AsCoreType(aIid)); in otIp6SetMeshLocalIid()
283 const otBorderRoutingCounters *otIp6GetBorderRoutingCounters(otInstance *aInstance) in otIp6GetBorderRoutingCounters() argument
285 return &AsCoreType(aInstance).Get<Ip6::Ip6>().GetBorderRoutingCounters(); in otIp6GetBorderRoutingCounters()
288 void otIp6ResetBorderRoutingCounters(otInstance *aInstance) in otIp6ResetBorderRoutingCounters() argument
290 AsCoreType(aInstance).Get<Ip6::Ip6>().ResetBorderRoutingCounters(); in otIp6ResetBorderRoutingCounters()