/openthread-latest/examples/platforms/simulation/ |
D | mdns_socket.c | 92 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 …]
|
D | infra_if.c | 175 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/ |
D | mdns_socket.cpp | 48 … 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 …]
|
D | mdns_socket.hpp | 104 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);
|
D | infra_if.cpp | 65 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 …]
|
D | infra_if.hpp | 159 otError SendIcmp6Nd(uint32_t aInfraIfIndex, 174 otError DiscoverNat64Prefix(uint32_t aInfraIfIndex);
|
/openthread-latest/src/ncp/platform/ |
D | infra_if.cpp | 34 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/ |
D | infra_if.h | 76 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,
|
D | mdns_socket.h | 85 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/ |
D | infra_if.cpp | 186 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()
|
D | routing_manager.cpp | 77 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()
|
D | routing_manager.hpp | 168 Error Init(uint32_t aInfraIfIndex, bool aInfraIfIsRunning);
|
/openthread-latest/tests/fuzz/ |
D | fuzzer_platform.cpp | 619 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/ |
D | border_routing_api.cpp | 42 otError otBorderRoutingInit(otInstance *aInstance, uint32_t aInfraIfIndex, bool aInfraIfIsRunning) in otBorderRoutingInit() argument 44 …return AsCoreType(aInstance).Get<BorderRouter::RoutingManager>().Init(aInfraIfIndex, aInfraIfIsRun… in otBorderRoutingInit()
|
D | mdns_api.cpp | 42 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/ |
D | test_platform.cpp | 587 … 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()
|
D | test_routing_manager.cpp | 290 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()
|
D | test_mdns.cpp | 1566 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/ |
D | border_routing.h | 191 otError otBorderRoutingInit(otInstance *aInstance, uint32_t aInfraIfIndex, bool aInfraIfIsRunning);
|
D | mdns.h | 159 otError otMdnsSetEnabled(otInstance *aInstance, bool aEnable, uint32_t aInfraIfIndex);
|
/openthread-latest/src/ncp/ |
D | ncp_base.hpp | 227 bool InfraIfHasAddress(uint32_t aInfraIfIndex, const otIp6Address *aAddress); 244 otError InfraIfSendIcmp6Nd(uint32_t aInfraIfIndex,
|
D | ncp_base_ftd.cpp | 1486 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/ |
D | mdns.cpp | 84 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()
|
D | mdns.hpp | 157 Error SetEnabled(bool aEnable, uint32_t aInfraIfIndex);
|