Home
last modified time | relevance | path

Searched refs:aInfraIfIndex (Results 1 – 24 of 24) sorted by relevance

/openthread-latest/examples/platforms/simulation/
Dmdns_socket.c92 static void OpenIp4Socket(uint32_t aInfraIfIndex) in OpenIp4Socket() argument
94 OT_UNUSED_VARIABLE(aInfraIfIndex); in OpenIp4Socket()
110 ifname = if_indextoname(aInfraIfIndex, nameBuffer); in OpenIp4Socket()
117 value = aInfraIfIndex; in OpenIp4Socket()
140 mreqn.imr_ifindex = aInfraIfIndex; in OpenIp4Socket()
157 static void JoinOrLeaveIp4MulticastGroup(bool aJoin, uint32_t aInfraIfIndex) in JoinOrLeaveIp4MulticastGroup() argument
164 mreqn.imr_ifindex = aInfraIfIndex; in JoinOrLeaveIp4MulticastGroup()
177 static void OpenIp6Socket(uint32_t aInfraIfIndex) in OpenIp6Socket() argument
179 OT_UNUSED_VARIABLE(aInfraIfIndex); in OpenIp6Socket()
194 ifname = if_indextoname(aInfraIfIndex, nameBuffer); in OpenIp6Socket()
[all …]
Dinfra_if.c175 bool otPlatInfraIfHasAddress(uint32_t aInfraIfIndex, const otIp6Address *aAddress) in otPlatInfraIfHasAddress() argument
177 OT_UNUSED_VARIABLE(aInfraIfIndex); in otPlatInfraIfHasAddress()
182 otError otPlatInfraIfSendIcmp6Nd(uint32_t aInfraIfIndex, in otPlatInfraIfSendIcmp6Nd() argument
195 message->mIfIndex = aInfraIfIndex; in otPlatInfraIfSendIcmp6Nd()
210 otError otPlatInfraIfDiscoverNat64Prefix(uint32_t aInfraIfIndex) in otPlatInfraIfDiscoverNat64Prefix() argument
212 OT_UNUSED_VARIABLE(aInfraIfIndex); in otPlatInfraIfDiscoverNat64Prefix()
324 uint32_t aInfraIfIndex, in otPlatInfraIfRecvIcmp6Nd() argument
330 OT_UNUSED_VARIABLE(aInfraIfIndex); in otPlatInfraIfRecvIcmp6Nd()
/openthread-latest/src/posix/platform/
Dmdns_socket.cpp48 … otError otPlatMdnsSetListeningEnabled(otInstance *aInstance, bool aEnable, uint32_t aInfraIfIndex) in otPlatMdnsSetListeningEnabled() argument
50 return ot::Posix::MdnsSocket::Get().SetListeningEnabled(aInstance, aEnable, aInfraIfIndex); in otPlatMdnsSetListeningEnabled()
53 …C" void otPlatMdnsSendMulticast(otInstance *aInstance, otMessage *aMessage, uint32_t aInfraIfIndex) in otPlatMdnsSendMulticast() argument
56 return ot::Posix::MdnsSocket::Get().SendMulticast(aMessage, aInfraIfIndex); in otPlatMdnsSendMulticast()
184 otError MdnsSocket::SetListeningEnabled(otInstance *aInstance, bool aEnable, uint32_t aInfraIfIndex) in SetListeningEnabled() argument
193 error = Enable(aInfraIfIndex); in SetListeningEnabled()
197 Disable(aInfraIfIndex); in SetListeningEnabled()
204 otError MdnsSocket::Enable(uint32_t aInfraIfIndex) in Enable() argument
208 SuccessOrExit(error = OpenIp4Socket(aInfraIfIndex)); in Enable()
209 SuccessOrExit(error = JoinOrLeaveIp4MulticastGroup(/* aJoin */ true, aInfraIfIndex)); in Enable()
[all …]
Dmdns_socket.hpp104 otError SetListeningEnabled(otInstance *aInstance, bool aEnable, uint32_t aInfraIfIndex);
105 void SendMulticast(otMessage *aMessage, uint32_t aInfraIfIndex);
139 otError Enable(uint32_t aInfraIfIndex);
140 void Disable(uint32_t aInfraIfIndex);
145 otError OpenIp4Socket(uint32_t aInfraIfIndex);
146 otError JoinOrLeaveIp4MulticastGroup(bool aJoin, uint32_t aInfraIfIndex);
148 otError OpenIp6Socket(uint32_t aInfraIfIndex);
149 otError JoinOrLeaveIp6MulticastGroup(bool aJoin, uint32_t aInfraIfIndex);
Dinfra_if.cpp65 bool otPlatInfraIfHasAddress(uint32_t aInfraIfIndex, const otIp6Address *aAddress) in otPlatInfraIfHasAddress() argument
76 if (if_nametoindex(addr->ifa_name) != aInfraIfIndex || addr->ifa_addr == nullptr || in otPlatInfraIfHasAddress()
95 otError otPlatInfraIfSendIcmp6Nd(uint32_t aInfraIfIndex, in otPlatInfraIfSendIcmp6Nd() argument
100 …return ot::Posix::InfraNetif::Get().SendIcmp6Nd(aInfraIfIndex, *aDestAddress, aBuffer, aBufferLeng… in otPlatInfraIfSendIcmp6Nd()
105 otError otPlatInfraIfDiscoverNat64Prefix(uint32_t aInfraIfIndex) in otPlatInfraIfDiscoverNat64Prefix() argument
107 return ot::Posix::InfraNetif::Get().DiscoverNat64Prefix(aInfraIfIndex); in otPlatInfraIfDiscoverNat64Prefix()
214 otError InfraNetif::SendIcmp6Nd(uint32_t aInfraIfIndex, in SendIcmp6Nd() argument
232 VerifyOrExit(aInfraIfIndex == mInfraIfIndex, error = OT_ERROR_DROP); in SendIcmp6Nd()
752 otError InfraNetif::DiscoverNat64Prefix(uint32_t aInfraIfIndex) in DiscoverNat64Prefix() argument
761 VerifyOrExit(aInfraIfIndex == mInfraIfIndex, error = OT_ERROR_DROP); in DiscoverNat64Prefix()
[all …]
Dinfra_if.hpp159 otError SendIcmp6Nd(uint32_t aInfraIfIndex,
174 otError DiscoverNat64Prefix(uint32_t aInfraIfIndex);
/openthread-latest/src/ncp/platform/
Dinfra_if.cpp34 bool otPlatInfraIfHasAddress(uint32_t aInfraIfIndex, const otIp6Address *aAddress) in otPlatInfraIfHasAddress() argument
36 return ot::Ncp::NcpBase::GetNcpInstance()->InfraIfHasAddress(aInfraIfIndex, aAddress); in otPlatInfraIfHasAddress()
39 otError otPlatInfraIfSendIcmp6Nd(uint32_t aInfraIfIndex, in otPlatInfraIfSendIcmp6Nd() argument
46 return ncp->InfraIfSendIcmp6Nd(aInfraIfIndex, aDestAddress, aBuffer, aBufferLength); in otPlatInfraIfSendIcmp6Nd()
49 otError otPlatInfraIfDiscoverNat64Prefix(uint32_t aInfraIfIndex) in otPlatInfraIfDiscoverNat64Prefix() argument
51 OT_UNUSED_VARIABLE(aInfraIfIndex); in otPlatInfraIfDiscoverNat64Prefix()
/openthread-latest/include/openthread/platform/
Dinfra_if.h76 bool otPlatInfraIfHasAddress(uint32_t aInfraIfIndex, const otIp6Address *aAddress);
95 otError otPlatInfraIfSendIcmp6Nd(uint32_t aInfraIfIndex,
116 uint32_t aInfraIfIndex,
139 extern otError otPlatInfraIfStateChanged(otInstance *aInstance, uint32_t aInfraIfIndex, bool aIsRun…
151 otError otPlatInfraIfDiscoverNat64Prefix(uint32_t aInfraIfIndex);
165 uint32_t aInfraIfIndex,
Dmdns_socket.h85 otError otPlatMdnsSetListeningEnabled(otInstance *aInstance, bool aEnable, uint32_t aInfraIfIndex);
107 void otPlatMdnsSendMulticast(otInstance *aInstance, otMessage *aMessage, uint32_t aInfraIfIndex);
/openthread-latest/src/core/border_router/
Dinfra_if.cpp186 uint32_t aInfraIfIndex, in otPlatInfraIfRecvIcmp6Nd() argument
194 …AsCoreType(aInstance).Get<InfraIf>().HandledReceived(aInfraIfIndex, AsCoreType(aSrcAddress), packe… in otPlatInfraIfRecvIcmp6Nd()
197 extern "C" otError otPlatInfraIfStateChanged(otInstance *aInstance, uint32_t aInfraIfIndex, bool aI… in otPlatInfraIfStateChanged() argument
199 return AsCoreType(aInstance).Get<InfraIf>().HandleStateChanged(aInfraIfIndex, aIsRunning); in otPlatInfraIfStateChanged()
203 uint32_t aInfraIfIndex, in otPlatInfraIfDiscoverNat64PrefixDone() argument
206 …AsCoreType(aInstance).Get<InfraIf>().DiscoverNat64PrefixDone(aInfraIfIndex, AsCoreType(aIp6Prefix)… in otPlatInfraIfDiscoverNat64PrefixDone()
Drouting_manager.cpp77 Error RoutingManager::Init(uint32_t aInfraIfIndex, bool aInfraIfIsRunning) in Init() argument
85 LogInfo("Initializing - InfraIfIndex:%lu", ToUlong(aInfraIfIndex)); in Init()
86 SuccessOrExit(error = mInfraIf.Init(aInfraIfIndex)); in Init()
94 else if (aInfraIfIndex != mInfraIf.GetIfIndex()) in Init()
96 …Reinitializing - InfraIfIndex:%lu -> %lu", ToUlong(mInfraIf.GetIfIndex()), ToUlong(aInfraIfIndex)); in Init()
102 mInfraIf.SetIfIndex(aInfraIfIndex); in Init()
Drouting_manager.hpp168 Error Init(uint32_t aInfraIfIndex, bool aInfraIfIsRunning);
/openthread-latest/tests/fuzz/
Dfuzzer_platform.cpp619 otError otPlatMdnsSetListeningEnabled(otInstance *aInstance, bool aEnable, uint32_t aInfraIfIndex) in otPlatMdnsSetListeningEnabled() argument
623 OT_UNUSED_VARIABLE(aInfraIfIndex); in otPlatMdnsSetListeningEnabled()
628 void otPlatMdnsSendMulticast(otInstance *aInstance, otMessage *aMessage, uint32_t aInfraIfIndex) in otPlatMdnsSendMulticast() argument
632 OT_UNUSED_VARIABLE(aInfraIfIndex); in otPlatMdnsSendMulticast()
642 bool otPlatInfraIfHasAddress(uint32_t aInfraIfIndex, const otIp6Address *aAddress) in otPlatInfraIfHasAddress() argument
644 OT_UNUSED_VARIABLE(aInfraIfIndex); in otPlatInfraIfHasAddress()
650 otError otPlatInfraIfSendIcmp6Nd(uint32_t aInfraIfIndex, in otPlatInfraIfSendIcmp6Nd() argument
655 OT_UNUSED_VARIABLE(aInfraIfIndex); in otPlatInfraIfSendIcmp6Nd()
663 otError otPlatInfraIfDiscoverNat64Prefix(uint32_t aInfraIfIndex) in otPlatInfraIfDiscoverNat64Prefix() argument
665 OT_UNUSED_VARIABLE(aInfraIfIndex); in otPlatInfraIfDiscoverNat64Prefix()
/openthread-latest/src/core/api/
Dborder_routing_api.cpp42 otError otBorderRoutingInit(otInstance *aInstance, uint32_t aInfraIfIndex, bool aInfraIfIsRunning) in otBorderRoutingInit() argument
44 …return AsCoreType(aInstance).Get<BorderRouter::RoutingManager>().Init(aInfraIfIndex, aInfraIfIsRun… in otBorderRoutingInit()
Dmdns_api.cpp42 otError otMdnsSetEnabled(otInstance *aInstance, bool aEnable, uint32_t aInfraIfIndex) in otMdnsSetEnabled() argument
44 return AsCoreType(aInstance).Get<Dns::Multicast::Core>().SetEnabled(aEnable, aInfraIfIndex); in otMdnsSetEnabled()
/openthread-latest/tests/unit/
Dtest_platform.cpp587 … otError otPlatMdnsSetListeningEnabled(otInstance *aInstance, bool aEnable, uint32_t aInfraIfIndex) in otPlatMdnsSetListeningEnabled() argument
591 OT_UNUSED_VARIABLE(aInfraIfIndex); in otPlatMdnsSetListeningEnabled()
596 …AK void otPlatMdnsSendMulticast(otInstance *aInstance, otMessage *aMessage, uint32_t aInfraIfIndex) in otPlatMdnsSendMulticast() argument
600 OT_UNUSED_VARIABLE(aInfraIfIndex); in otPlatMdnsSendMulticast()
Dtest_routing_manager.cpp290 bool otPlatInfraIfHasAddress(uint32_t aInfraIfIndex, const otIp6Address *aAddress) in otPlatInfraIfHasAddress() argument
292 VerifyOrQuit(aInfraIfIndex == kInfraIfIndex); in otPlatInfraIfHasAddress()
297 otError otPlatInfraIfSendIcmp6Nd(uint32_t aInfraIfIndex, in otPlatInfraIfSendIcmp6Nd() argument
308 VerifyOrQuit(aInfraIfIndex == kInfraIfIndex); in otPlatInfraIfSendIcmp6Nd()
Dtest_mdns.cpp1566 otError otPlatMdnsSetListeningEnabled(otInstance *aInstance, bool aEnable, uint32_t aInfraIfIndex) in otPlatMdnsSetListeningEnabled() argument
1569 sInfraIfIndex = aInfraIfIndex; in otPlatMdnsSetListeningEnabled()
1576 void otPlatMdnsSendMulticast(otInstance *aInstance, otMessage *aMessage, uint32_t aInfraIfIndex) in otPlatMdnsSendMulticast() argument
1581 VerifyOrQuit(aInfraIfIndex == sInfraIfIndex); in otPlatMdnsSendMulticast()
/openthread-latest/include/openthread/
Dborder_routing.h191 otError otBorderRoutingInit(otInstance *aInstance, uint32_t aInfraIfIndex, bool aInfraIfIsRunning);
Dmdns.h159 otError otMdnsSetEnabled(otInstance *aInstance, bool aEnable, uint32_t aInfraIfIndex);
/openthread-latest/src/ncp/
Dncp_base.hpp227 bool InfraIfHasAddress(uint32_t aInfraIfIndex, const otIp6Address *aAddress);
244 otError InfraIfSendIcmp6Nd(uint32_t aInfraIfIndex,
Dncp_base_ftd.cpp1486 bool NcpBase::InfraIfHasAddress(uint32_t aInfraIfIndex, const otIp6Address *aAddress) in InfraIfHasAddress() argument
1488 return aInfraIfIndex == mInfraIfIndex && InfraIfContainsAddress(*aAddress); in InfraIfHasAddress()
1491 otError NcpBase::InfraIfSendIcmp6Nd(uint32_t aInfraIfIndex, in InfraIfSendIcmp6Nd() argument
1500 SuccessOrExit(error = mEncoder.WriteUint32(aInfraIfIndex)); in InfraIfSendIcmp6Nd()
/openthread-latest/src/core/net/
Dmdns.cpp84 Error Core::SetEnabled(bool aEnable, uint32_t aInfraIfIndex) in SetEnabled() argument
89 SuccessOrExit(error = otPlatMdnsSetListeningEnabled(&GetInstance(), aEnable, aInfraIfIndex)); in SetEnabled()
92 mInfraIfIndex = aInfraIfIndex; in SetEnabled()
6626 … otError otPlatMdnsSetListeningEnabled(otInstance *aInstance, bool aEnable, uint32_t aInfraIfIndex) in otPlatMdnsSetListeningEnabled() argument
6630 OT_UNUSED_VARIABLE(aInfraIfIndex); in otPlatMdnsSetListeningEnabled()
6635 …AK void otPlatMdnsSendMulticast(otInstance *aInstance, otMessage *aMessage, uint32_t aInfraIfIndex) in otPlatMdnsSendMulticast() argument
6639 OT_UNUSED_VARIABLE(aInfraIfIndex); in otPlatMdnsSendMulticast()
Dmdns.hpp157 Error SetEnabled(bool aEnable, uint32_t aInfraIfIndex);