Home
last modified time | relevance | path

Searched refs:Nat64 (Results 1 – 8 of 8) sorted by relevance

/openthread-3.5.0/tests/unit/
Dtest_nat64.cpp93 Nat64::Translator::Result aResult, in TestCase6To4()
106 VerifyOrQuit(sInstance->Get<Nat64::Translator>().TranslateFromIp6(*msg) == aResult); in TestCase6To4()
120 Nat64::Translator::Result aResult, in TestCase4To6()
133 VerifyOrQuit(sInstance->Get<Nat64::Translator>().TranslateToIp6(*msg) == aResult); in TestCase4To6()
160 SuccessOrQuit(sInstance->Get<Nat64::Translator>().SetIp4Cidr(nat64cidr)); in TestNat64()
161 sInstance->Get<Nat64::Translator>().SetNat64Prefix(nat64prefix); in TestNat64()
176 …TestCase6To4("good v6 udp datagram", kIp6Packet, Nat64::Translator::kForward, kIp4Packet, sizeof(k… in TestNat64()
191 …TestCase4To6("good v4 udp datagram", kIp4Packet, Nat64::Translator::kForward, kIp6Packet, sizeof(k… in TestNat64()
208 …TestCase6To4("good v6 tcp datagram", kIp6Packet, Nat64::Translator::kForward, kIp4Packet, sizeof(k… in TestNat64()
225 …TestCase4To6("good v4 tcp datagram", kIp4Packet, Nat64::Translator::kForward, kIp6Packet, sizeof(k… in TestNat64()
[all …]
/openthread-3.5.0/src/core/api/
Dnat64_api.cpp58 return AsCoreType(aInstance).Get<Nat64::Translator>().SetIp4Cidr(AsCoreType(aCidr)); in otNat64SetIp4Cidr()
63 …return AsCoreType(aInstance).Get<Nat64::Translator>().NewIp4Message(Message::Settings::From(aSetti… in otIp4NewMessage()
68 return AsCoreType(aInstance).Get<Nat64::Translator>().SendMessage(AsCoreType(aMessage)); in otNat64Send()
80 AsCoreType(aInstance).Get<Nat64::Translator>().InitAddressMappingIterator(*aIterator); in otNat64InitAddressMappingIterator()
90 …return AsCoreType(aInstance).Get<Nat64::Translator>().GetNextAddressMapping(*aIterator, *aMapping); in otNat64GetNextAddressMapping()
95 AsCoreType(aInstance).Get<Nat64::Translator>().GetCounters(AsCoreType(aCounters)); in otNat64GetCounters()
100 AsCoreType(aInstance).Get<Nat64::Translator>().GetErrorCounters(AsCoreType(aCounters)); in otNat64GetErrorCounters()
105 return AsCoreType(aInstance).Get<Nat64::Translator>().GetIp4Cidr(AsCoreType(aCidr)); in otNat64GetCidr()
110 return MapEnum(AsCoreType(aInstance).Get<Nat64::Translator>().GetState()); in otNat64GetTranslatorState()
128 AsCoreType(aInstance).Get<Nat64::Translator>().SetEnabled(aEnabled); in otNat64SetEnabled()
/openthread-3.5.0/src/core/net/
Dnat64_translator.hpp49 namespace Nat64 { namespace
406 DefineMapEnum(otNat64State, Nat64::State);
408 DefineCoreType(otNat64ProtocolCounters, Nat64::Translator::ProtocolCounters);
409 DefineCoreType(otNat64ErrorCounters, Nat64::Translator::ErrorCounters);
Dip6.cpp1050 switch (Get<Nat64::Translator>().TranslateFromIp6(aMessage)) in PassToHost()
1052 case Nat64::Translator::kNotTranslated: in PassToHost()
1055 case Nat64::Translator::kDrop: in PassToHost()
1058 case Nat64::Translator::kForward: in PassToHost()
Dnat64_translator.cpp49 namespace Nat64 { namespace
/openthread-3.5.0/src/core/border_router/
Drouting_manager.cpp3037 Get<Nat64::Translator>().ClearNat64Prefix(); in Stop()
3119 Get<Nat64::Translator>().SetNat64Prefix(mLocalPrefix); in Evaluate()
3123 Get<Nat64::Translator>().ClearNat64Prefix(); in Evaluate()
3181 Nat64::State RoutingManager::Nat64PrefixManager::GetState(void) const in GetState()
3183 Nat64::State state = Nat64::kStateDisabled; in GetState()
3186 VerifyOrExit(Get<RoutingManager>().IsRunning(), state = Nat64::kStateNotRunning); in GetState()
3187 VerifyOrExit(mPublishedPrefix.IsValidNat64(), state = Nat64::kStateIdle); in GetState()
3188 state = Nat64::kStateActive; in GetState()
Drouting_manager.hpp351 Nat64::State GetNat64PrefixManagerState(void) const { return mNat64PrefixManager.GetState(); } in GetNat64PrefixManagerState()
952 Nat64::State GetState(void) const;
/openthread-3.5.0/src/core/common/
Dinstance.hpp635 Nat64::Translator mNat64Translator;
984 template <> inline Nat64::Translator &Instance::Get(void) { return mNat64Translator; } in Get()