Home
last modified time | relevance | path

Searched refs:Ip6 (Results 1 – 25 of 192) sorted by relevance

12345678

/openthread-3.5.0/src/core/backbone_router/
Dbbr_manager.hpp99 void ConfigNextDuaRegistrationResponse(const Ip6::InterfaceIdentifier *aMlIid, uint8_t aStatus);
135 bool ShouldForwardDuaToBackbone(const Ip6::Address &aAddress);
157 Error SendBackboneQuery(const Ip6::Address &aDua, uint16_t aRloc16 = Mac::kShortAddrInvalid);
170 Error SendProactiveBackboneNotification(const Ip6::Address &aDua,
171 const Ip6::InterfaceIdentifier &aMeshLocalIid,
178 … template <Uri kUri> void HandleTmf(Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo);
181 …void HandleMulticastListenerRegistration(const Coap::Message &aMessage, const Ip6::MessageInfo &aM…
184 const Ip6::MessageInfo &aMessageInfo,
186 Ip6::Address *aFailedAddresses,
188 void SendBackboneMulticastListenerRegistration(const Ip6::Address *aAddresses,
[all …]
Dndproxy_table.hpp95 const Ip6::InterfaceIdentifier &GetMeshLocalIid(void) const { return mMeshLocalIid; } in GetMeshLocalIid()
129 void Init(const Ip6::InterfaceIdentifier &aAddressIid,
130 const Ip6::InterfaceIdentifier &aMeshLocalIid,
138 Ip6::InterfaceIdentifier mAddressIid;
139 Ip6::InterfaceIdentifier mMeshLocalIid;
174 Error Register(const Ip6::InterfaceIdentifier &aAddressIid,
175 const Ip6::InterfaceIdentifier &aMeshLocalIid,
188 …bool IsRegistered(const Ip6::InterfaceIdentifier &aAddressIid) { return FindByAddressIid(aAddressI… in IsRegistered()
212 NdProxy *ResolveDua(const Ip6::Address &aDua);
250 Error GetInfo(const Ip6::Address &aDua, otBackboneRouterNdProxyInfo &aNdProxyInfo);
[all …]
Dbackbone_tmf.cpp57 SuccessOrExit(error = Coap::Start(kBackboneUdpPort, Ip6::kNetifBackbone)); in Start()
68 const Ip6::MessageInfo &aMessageInfo) in HandleResource()
75 const Ip6::MessageInfo &aMessageInfo) in HandleResource()
105 Error BackboneTmfAgent::Filter(const ot::Coap::Message &aMessage, const Ip6::MessageInfo &aMessageI… in Filter()
112 bool BackboneTmfAgent::IsBackboneTmfMessage(const Ip6::MessageInfo &aMessageInfo) const in IsBackboneTmfMessage()
114 const Ip6::Address &dst = aMessageInfo.GetSockAddr(); in IsBackboneTmfMessage()
115 const Ip6::Address &src = aMessageInfo.GetPeerAddr(); in IsBackboneTmfMessage()
128 void BackboneTmfAgent::SubscribeMulticast(const Ip6::Address &aAddress) in SubscribeMulticast()
130 Error error = mSocket.JoinNetifMulticastGroup(Ip6::kNetifBackbone, aAddress); in SubscribeMulticast()
135 void BackboneTmfAgent::UnsubscribeMulticast(const Ip6::Address &aAddress) in UnsubscribeMulticast()
[all …]
Dbackbone_tmf.hpp80 bool IsBackboneTmfMessage(const Ip6::MessageInfo &aMessageInfo) const;
88 void SubscribeMulticast(const Ip6::Address &aAddress);
96 void UnsubscribeMulticast(const Ip6::Address &aAddress);
102 const Ip6::MessageInfo &aMessageInfo);
103 …bool HandleResource(const char *aUriPath, ot::Coap::Message &aMessage, const Ip6::MessageIn…
104 void LogError(const char *aText, const Ip6::Address &aAddress, Error aError) const;
105 …static Error Filter(const ot::Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo, void …
Dbbr_manager.cpp135 template <> void Manager::HandleTmf<kUriMlr>(Coap::Message &aMessage, const Ip6::MessageInfo &aMess… in HandleTmf()
144 void Manager::HandleMulticastListenerRegistration(const Coap::Message &aMessage, const Ip6::Message… in HandleMulticastListenerRegistration()
152 Ip6::Address address; in HandleMulticastListenerRegistration()
153 Ip6::Address addresses[Ip6AddressesTlv::kMaxAddresses]; in HandleMulticastListenerRegistration()
194 …VerifyOrExit(addressesLength % sizeof(Ip6::Address) == 0, status = ThreadStatusTlv::kMlrGeneralFai… in HandleMulticastListenerRegistration()
195 VerifyOrExit(addressesLength / sizeof(Ip6::Address) <= Ip6AddressesTlv::kMaxAddresses, in HandleMulticastListenerRegistration()
223 for (uint16_t offset = 0; offset < addressesLength; offset += sizeof(Ip6::Address)) in HandleMulticastListenerRegistration()
285 const Ip6::MessageInfo &aMessageInfo, in SendMulticastListenerRegistrationResponse()
287 Ip6::Address *aFailedAddresses, in SendMulticastListenerRegistrationResponse()
303 addressesTlv.SetLength(sizeof(Ip6::Address) * aFailedAddressNum); in SendMulticastListenerRegistrationResponse()
[all …]
/openthread-3.5.0/src/core/border_router/
Drouting_manager.hpp276 Error GetOmrPrefix(Ip6::Prefix &aPrefix) const;
309 Error GetFavoredOmrPrefix(Ip6::Prefix &aPrefix, RoutePreference &aPreference) const;
324 Error GetOnLinkPrefix(Ip6::Prefix &aPrefix) const;
337 Error GetFavoredOnLinkPrefix(Ip6::Prefix &aPrefix) const;
370 Error GetNat64Prefix(Ip6::Prefix &aPrefix);
384 Error GetFavoredNat64Prefix(Ip6::Prefix &aPrefix, RoutePreference &aRoutePreference);
393 …void HandleDiscoverNat64PrefixDone(const Ip6::Prefix &aPrefix) { mNat64PrefixManager.HandleDiscove… in HandleDiscoverNat64PrefixDone()
406 void HandleReceived(const InfraIf::Icmp6Packet &aPacket, const Ip6::Address &aSrcAddress);
434 static bool IsValidOmrPrefix(const Ip6::Prefix &aPrefix);
602 void ProcessRouterAdvertMessage(const Ip6::Nd::RouterAdvertMessage &aRaMessage,
[all …]
Drouting_manager.cpp196 Error RoutingManager::GetOmrPrefix(Ip6::Prefix &aPrefix) const in GetOmrPrefix()
220 Error RoutingManager::GetFavoredOmrPrefix(Ip6::Prefix &aPrefix, RoutePreference &aPreference) const in GetFavoredOmrPrefix()
232 Error RoutingManager::GetOnLinkPrefix(Ip6::Prefix &aPrefix) const in GetOnLinkPrefix()
243 Error RoutingManager::GetFavoredOnLinkPrefix(Ip6::Prefix &aPrefix) const in GetFavoredOnLinkPrefix()
266 Error RoutingManager::GetNat64Prefix(Ip6::Prefix &aPrefix) in GetNat64Prefix()
277 Error RoutingManager::GetFavoredNat64Prefix(Ip6::Prefix &aPrefix, RoutePreference &aRoutePreference) in GetFavoredNat64Prefix()
296 Ip6::NetworkPrefix randomUlaPrefix; in LoadOrGenerateRandomBrUlaPrefix()
412 void RoutingManager::HandleReceived(const InfraIf::Icmp6Packet &aPacket, const Ip6::Address &aSrcAd… in HandleReceived()
414 const Ip6::Icmp::Header *icmp6Header; in HandleReceived()
418 icmp6Header = reinterpret_cast<const Ip6::Icmp::Header *>(aPacket.GetBytes()); in HandleReceived()
[all …]
/openthread-3.5.0/src/posix/platform/
Dmulticast_routing.hpp95 …void Set(const Ip6::Address &aSrcAddr, const Ip6::Address &aGroupAddr, MifIndex aIif, MifIndex aOi…
99 Ip6::Address mSrcAddr;
100 Ip6::Address mGroupAddr;
109 void Add(const Ip6::Address &aAddress);
110 void Remove(const Ip6::Address &aAddress);
111 void UpdateMldReport(const Ip6::Address &aAddress, bool isAdd);
112 bool HasMulticastListener(const Ip6::Address &aAddress) const;
117 …otError AddMulticastForwardingCache(const Ip6::Address &aSrcAddr, const Ip6::Address &aGroupAddr, …
118 void SaveMulticastForwardingCache(const Ip6::Address &aSrcAddr,
119 const Ip6::Address &aGroupAddr,
[all …]
/openthread-3.5.0/src/core/thread/
Dchild.hpp101 …explicit AddressIterator(const Child &aChild, Ip6::Address::TypeFilter aFilter = Ip6::Address::kTy… in AddressIterator()
114 …AddressIterator(const Child &aChild, Index aIndex, Ip6::Address::TypeFilter aFilter = Ip6::Address… in AddressIterator()
144 const Ip6::Address *GetAddress(void) const;
182 const Ip6::Address &operator*(void) const { return *GetAddress(); } in operator *()
214 Ip6::Address::TypeFilter mFilter;
216 Ip6::Address mMeshLocalAddress;
256 Error GetMeshLocalIp6Address(Ip6::Address &aAddress) const;
264 const Ip6::InterfaceIdentifier &GetMeshLocalIid(void) const { return mMeshLocalIid; } in GetMeshLocalIid()
283 …AddressIteratorBuilder IterateIp6Addresses(Ip6::Address::TypeFilter aFilter = Ip6::Address::kTypeA… in IterateIp6Addresses()
299 Error AddIp6Address(const Ip6::Address &aAddress);
[all …]
Daddress_resolver.hpp158 void RemoveEntryForAddress(const Ip6::Address &aEid);
180 …void UpdateSnoopedCacheEntry(const Ip6::Address &aEid, Mac::ShortAddress aRloc16, Mac::ShortAddres…
194 Error Resolve(const Ip6::Address &aEid, Mac::ShortAddress &aRloc16) in Resolve()
207 Mac::ShortAddress LookUp(const Ip6::Address &aEid);
227 void SendAddressQueryResponse(const Ip6::Address &aTarget,
228 const Ip6::InterfaceIdentifier &aMeshLocalIid,
230 const Ip6::Address &aDestination);
240 void SendAddressError(const Ip6::Address &aTarget,
241 const Ip6::InterfaceIdentifier &aMeshLocalIid,
242 const Ip6::Address *aDestination);
[all …]
Dtmf.hpp58 …template <> void Type::HandleTmf<kUri>(Coap::Message & aMessage, const Ip6::MessageInfo &aMessageI…
70 class MessageInfo : public InstanceLocator, public Ip6::MessageInfo
139 void SetSockAddrToRlocPeerAddrTo(const Ip6::Address &aPeerAddress);
183 …bool IsTmfMessage(const Ip6::Address &aSourceAddress, const Ip6::Address &aDestAddress, uint16_t a…
206 template <Uri kUri> void HandleTmf(Message &aMessage, const Ip6::MessageInfo &aMessageInfo);
211 const Ip6::MessageInfo &aMessageInfo);
212 …bool HandleResource(const char *aUriPath, Message &aMessage, const Ip6::MessageInfo &aMessa…
214 …static Error Filter(const Message &aMessage, const Ip6::MessageInfo &aMessageInfo, void *aContext);
238 const Ip6::MessageInfo &aMessageInfo);
239 …bool HandleResource(const char *aUriPath, Message &aMessage, const Ip6::MessageInfo &aMessa…
Dmlr_manager.hpp103 …typedef Array<Ip6::Address, kMaxMlrAddresses> MlrAddressArray; ///< Registered MLR addresses array.
160 const Ip6::MessageInfo *aMessageInfo,
165 Ip6::Address *aFailedAddresses,
180 bool IsAddressMlrRegisteredByNetif(const Ip6::Address &aAddress) const;
184 bool IsAddressMlrRegisteredByAnyChild(const Ip6::Address &aAddress) const in IsAddressMlrRegisteredByAnyChild()
188 …bool IsAddressMlrRegisteredByAnyChildExcept(const Ip6::Address &aAddress, const Child *aExceptChil…
193 const Ip6::Address *aFailedAddresses,
196 … void AppendToUniqueAddressList(Ip6::Address (&aAddresses)[Ip6AddressesTlv::kMaxAddresses],
198 const Ip6::Address &aAddress);
199 static bool AddressListContains(const Ip6::Address *aAddressList,
[all …]
Dmlr_manager.cpp95 for (Ip6::Netif::ExternalMulticastAddress &addr : in UpdateLocalSubscriptions()
96 …Get<ThreadNetif>().IterateExternalMulticastAddresses(Ip6::Address::kTypeMulticastLargerThanRealmLo… in UpdateLocalSubscriptions()
109 bool MlrManager::IsAddressMlrRegisteredByNetif(const Ip6::Address &aAddress) const in IsAddressMlrRegisteredByNetif()
115 …for (const Ip6::Netif::ExternalMulticastAddress &addr : Get<ThreadNetif>().IterateExternalMulticas… in IsAddressMlrRegisteredByNetif()
131 bool MlrManager::IsAddressMlrRegisteredByAnyChildExcept(const Ip6::Address &aAddress, const Child *… in IsAddressMlrRegisteredByAnyChildExcept()
154 …for (const Ip6::Address &address : aChild.IterateIp6Addresses(Ip6::Address::kTypeMulticastLargerTh… in UpdateProxiedSubscriptions()
217 Ip6::Address addresses[Ip6AddressesTlv::kMaxAddresses]; in SendMulticastListenerRegistration()
227 for (Ip6::Netif::ExternalMulticastAddress &addr : in SendMulticastListenerRegistration()
228 …Get<ThreadNetif>().IterateExternalMulticastAddresses(Ip6::Address::kTypeMulticastLargerThanRealmLo… in SendMulticastListenerRegistration()
257 …for (const Ip6::Address &address : child.IterateIp6Addresses(Ip6::Address::kTypeMulticastLargerTha… in SendMulticastListenerRegistration()
[all …]
Dmle.hpp355 …const Ip6::NetworkPrefix &GetMeshLocalPrefix(void) const { return mMeshLocal16.GetAddress().GetPre… in GetMeshLocalPrefix()
363 void SetMeshLocalPrefix(const Ip6::NetworkPrefix &aMeshLocalPrefix);
377 Error SetMeshLocalIid(const Ip6::InterfaceIdentifier &aMlIid);
394 const Ip6::Address &GetLinkLocalAddress(void) const { return mLinkLocal64.GetAddress(); } in GetLinkLocalAddress()
410 …const Ip6::Address &GetLinkLocalAllThreadNodesAddress(void) const { return mLinkLocalAllThreadNode… in GetLinkLocalAllThreadNodesAddress()
418 const Ip6::Address &GetRealmLocalAllThreadNodesAddress(void) const in GetRealmLocalAllThreadNodesAddress()
475 bool IsRoutingLocator(const Ip6::Address &aAddress) const;
484 bool IsAnycastLocator(const Ip6::Address &aAddress) const;
493 bool IsMeshLocalAddress(const Ip6::Address &aAddress) const;
525 const Ip6::Address &GetMeshLocal16(void) const { return mMeshLocal16.GetAddress(); } in GetMeshLocal16()
[all …]
Dchild.cpp78 const Ip6::Address *Child::AddressIterator::GetAddress(void) const in GetAddress()
90 const Ip6::Address *address; in Update()
142 Error Child::GetMeshLocalIp6Address(Ip6::Address &aAddress) const in GetMeshLocalIp6Address()
155 Error Child::AddIp6Address(const Ip6::Address &aAddress) in AddIp6Address()
168 for (Ip6::Address &ip6Address : mIp6Address) in AddIp6Address()
185 Error Child::RemoveIp6Address(const Ip6::Address &aAddress) in RemoveIp6Address()
227 bool Child::HasIp6Address(const Ip6::Address &aAddress) const in HasIp6Address()
239 for (const Ip6::Address &ip6Address : mIp6Address) in HasIp6Address()
254 const Ip6::Address *Child::GetDomainUnicastAddress(void) const in GetDomainUnicastAddress()
256 const Ip6::Address *addr = nullptr; in GetDomainUnicastAddress()
[all …]
Dnetwork_data_publisher.hpp156 void PublishDnsSrpServiceUnicast(const Ip6::Address &aAddress, uint16_t aPort) in PublishDnsSrpServiceUnicast()
302 Error ReplacePublishedExternalRoute(const Ip6::Prefix &aPrefix,
316 bool IsPrefixAdded(const Ip6::Prefix &aPrefix) const;
327 Error UnpublishPrefix(const Ip6::Prefix &aPrefix);
389 void PublishUnicast(const Ip6::Address &aAddress, uint16_t aPort);
416 const Ip6::Address &GetAddress(void) const { return mAddress; } in GetAddress()
417 void SetAddress(const Ip6::Address &aAddress) { mAddress = aAddress; } in SetAddress()
420 static Info InfoUnicast(Type aType, const Ip6::Address &aAddress, uint16_t aPort) in InfoUnicast()
426 Info(Type aType, uint16_t aPortOrSeqNumber, const Ip6::Address *aAddress = nullptr);
428 Ip6::Address mAddress;
[all …]
/openthread-3.5.0/src/core/coap/
Dcoap.hpp178 void HandleRequest(Message &aMessage, const Ip6::MessageInfo &aMessageInfo) const in HandleRequest()
272 void HandleRequest(Message &aMessage, const Ip6::MessageInfo &aMessageInfo) const in HandleRequest()
307 …void EnqueueResponse(Message &aMessage, const Ip6::MessageInfo &aMessageInfo, const TxParameters &…
327 …Error GetMatchedResponseCopy(const Message &aRequest, const Ip6::MessageInfo &aMessageInfo, Messag…
346 Ip6::MessageInfo mMessageInfo;
349 …const Message *FindMatchedResponse(const Message &aRequest, const Ip6::MessageInfo &aMessageInfo) …
385 …typedef Error (*Interceptor)(const Message &aMessage, const Ip6::MessageInfo &aMessageInfo, void *…
399 void ClearRequests(const Ip6::Address &aAddress);
580 const Ip6::MessageInfo &aMessageInfo,
606 const Ip6::MessageInfo &aMessageInfo,
[all …]
/openthread-3.5.0/src/core/net/
Ddhcp6_server.hpp102 …bool IsPrefixMatch(const Ip6::Address &aAddress) const { return aAddress.MatchesPrefix(GetPrefix()… in IsPrefixMatch()
133 Ip6::Netif::UnicastAddress &GetAloc(void) { return mAloc; } in GetAloc()
141 const Ip6::Prefix &GetPrefix(void) const { return mPrefix; } in GetPrefix()
149 Ip6::Prefix &GetPrefix(void) { return mPrefix; } in GetPrefix()
157 const Ip6::Address &GetPrefixAsAddress(void) const in GetPrefixAsAddress()
159 return static_cast<const Ip6::Address &>(mPrefix.mPrefix); in GetPrefixAsAddress()
170 …void Set(const Ip6::Prefix &aPrefix, const Ip6::NetworkPrefix &aMeshLocalPrefix, uint8_t aContextI… in Set()
175 …mAloc.GetAddress().SetToAnycastLocator(aMeshLocalPrefix, (Ip6::Address::kAloc16Mask << 8) + aConte… in Set()
179 Ip6::Netif::UnicastAddress mAloc;
180 Ip6::Prefix mPrefix;
[all …]
Dchecksum.cpp93 void Checksum::Calculate(const Ip6::Address &aSource, in Calculate()
94 const Ip6::Address &aDestination, in Calculate()
103 AddData(aSource.GetBytes(), sizeof(Ip6::Address)); in Calculate()
104 AddData(aDestination.GetBytes(), sizeof(Ip6::Address)); in Calculate()
148 Error Checksum::VerifyMessageChecksum(const Message &aMessage, const Ip6::MessageInfo &aMessageInfo… in VerifyMessageChecksum()
158 const Ip6::Address &aSource, in UpdateMessageChecksum()
159 const Ip6::Address &aDestination, in UpdateMessageChecksum()
167 case Ip6::kProtoTcp: in UpdateMessageChecksum()
168 headerOffset = Ip6::Tcp::Header::kChecksumFieldOffset; in UpdateMessageChecksum()
171 case Ip6::kProtoUdp: in UpdateMessageChecksum()
[all …]
/openthread-3.5.0/src/core/api/
Dudp_api.cpp45 return AsCoreType(aInstance).Get<Ip6::Udp>().NewMessage(0, Message::Settings::From(aSettings)); in otUdpNewMessage()
50 return AsCoreType(aInstance).Get<Ip6::Udp>().Open(AsCoreType(aSocket), aCallback, aContext); in otUdpOpen()
55 return AsCoreType(aInstance).Get<Ip6::Udp>().IsOpen(AsCoreType(aSocket)); in otUdpIsOpen()
60 return AsCoreType(aInstance).Get<Ip6::Udp>().Close(AsCoreType(aSocket)); in otUdpClose()
65 …return AsCoreType(aInstance).Get<Ip6::Udp>().Bind(AsCoreType(aSocket), AsCoreType(aSockName), MapE… in otUdpBind()
70 … return AsCoreType(aInstance).Get<Ip6::Udp>().Connect(AsCoreType(aSocket), AsCoreType(aSockName)); in otUdpConnect()
75 return AsCoreType(aInstance).Get<Ip6::Udp>().SendTo(AsCoreType(aSocket), AsCoreType(aMessage), in otUdpSend()
79 otUdpSocket *otUdpGetSockets(otInstance *aInstance) { return AsCoreType(aInstance).Get<Ip6::Udp>().… in otUdpGetSockets()
84 AsCoreType(aInstance).Get<Ip6::Udp>().SetUdpForwarder(aForwarder, aContext); in otUdpForwardSetForwarder()
93 Ip6::MessageInfo messageInfo; in otUdpForwardReceive()
[all …]
Dip6_api.cpp115 AsCoreType(aInstance).Get<Ip6::Ip6>().SetReceiveDatagramCallback(aCallback, aCallbackContext); in otIp6SetReceiveCallback()
125 return AsCoreType(aInstance).Get<Ip6::Ip6>().IsReceiveIp6FilterEnabled(); in otIp6IsReceiveFilterEnabled()
130 AsCoreType(aInstance).Get<Ip6::Ip6>().SetReceiveIp6FilterEnabled(aEnabled); in otIp6SetReceiveFilterEnabled()
135 return AsCoreType(aInstance).Get<Ip6::Ip6>().SendRaw(AsCoreType(aMessage), in otIp6Send()
141 return AsCoreType(aInstance).Get<Ip6::Ip6>().NewMessage(0, Message::Settings::From(aSettings)); in otIp6NewMessage()
149 return AsCoreType(aInstance).Get<Ip6::Ip6>().NewMessageFromData(aData, aDataLength, in otIp6NewMessageFromBuffer()
155 return AsCoreType(aInstance).Get<Ip6::Filter>().AddUnsecurePort(aPort); in otIp6AddUnsecurePort()
160 return AsCoreType(aInstance).Get<Ip6::Filter>().RemoveUnsecurePort(aPort); in otIp6RemoveUnsecurePort()
165 AsCoreType(aInstance).Get<Ip6::Filter>().RemoveAllUnsecurePorts(); in otIp6RemoveAllUnsecurePorts()
172 return AsCoreType(aInstance).Get<Ip6::Filter>().GetUnsecurePorts(*aNumEntries); in otIp6GetUnsecurePorts()
[all …]
/openthread-3.5.0/tests/unit/
Dtest_routing_manager.cpp124 using Icmp6Packet = Ip6::Nd::RouterAdvertMessage::Icmp6Packet;
137 DeprecatingPrefix(const Ip6::Prefix &aPrefix, uint32_t aLifetime) in DeprecatingPrefix()
143 bool Matches(const Ip6::Prefix &aPrefix) const { return mPrefix == aPrefix; } in Matches()
145 Ip6::Prefix mPrefix; // Old on-link prefix being deprecated.
149 static Ip6::Address sInfraIfAddress;
167 explicit RioPrefix(const Ip6::Prefix &aPrefix) in RioPrefix()
175 Ip6::Prefix mPrefix; // The RIO prefix.
182 void Add(const Ip6::Prefix &aPrefix) { SuccessOrQuit(PushBack(RioPrefix(aPrefix))); } in Add()
211 void SendRouterAdvert(const Ip6::Address &aAddress, const Icmp6Packet &aPacket);
212 void SendNeighborAdvert(const Ip6::Address &aAddress, const Ip6::Nd::NeighborAdvertMessage &…
[all …]
Dtest_checksum.cpp73 uint16_t CalculateChecksum(const Ip6::Address &aSource, in CalculateChecksum()
74 const Ip6::Address &aDestination, in CalculateChecksum()
84 Ip6::Address mSource; in CalculateChecksum()
85 Ip6::Address mDestination; in CalculateChecksum()
172 constexpr uint16_t kMinSize = sizeof(Ip6::Udp::Header); in TestUdpMessageChecksum()
184 Message *message = instance->Get<Ip6::Ip6>().NewMessage(sizeof(Ip6::Udp::Header)); in TestUdpMessageChecksum()
185 Ip6::Udp::Header udpHeader; in TestUdpMessageChecksum()
186 Ip6::MessageInfo messageInfo; in TestUdpMessageChecksum()
212 …ateMessageChecksum(*message, messageInfo.GetSockAddr(), messageInfo.GetPeerAddr(), Ip6::kProtoUdp); in TestUdpMessageChecksum()
219 …VerifyOrQuit(CalculateChecksum(messageInfo.GetSockAddr(), messageInfo.GetPeerAddr(), Ip6::kProtoUd… in TestUdpMessageChecksum()
[all …]
Dtest_ndproxy_table.cpp49 Ip6::InterfaceIdentifier generateRandomIid(uint16_t aIndex) in generateRandomIid()
51 Ip6::InterfaceIdentifier iid; in generateRandomIid()
68 Ip6::InterfaceIdentifier existedAddressIid = generateRandomIid(0); in TestNdProxyTable()
69 Ip6::InterfaceIdentifier existedMeshLocalIid = generateRandomIid(0); in TestNdProxyTable()
70Ip6::InterfaceIdentifier notExistAddressIid = generateRandomIid(OPENTHREAD_CONFIG_NDPROXY_TABLE_… in TestNdProxyTable()
71Ip6::InterfaceIdentifier notExistMeshLocalIid = generateRandomIid(OPENTHREAD_CONFIG_NDPROXY_TABLE_… in TestNdProxyTable()
80 Ip6::InterfaceIdentifier addressIid = generateRandomIid(i); in TestNdProxyTable()
81 Ip6::InterfaceIdentifier meshLocalIid = generateRandomIid(i); in TestNdProxyTable()
/openthread-3.5.0/src/core/meshcop/
Djoiner_router.hpp95 Ip6::MessageInfo mMessageInfo; // Message info of the message to send.
103 void HandleUdpReceive(Message &aMessage, const Ip6::MessageInfo &aMessageInfo);
105 … template <Uri kUri> void HandleTmf(Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo);
111 …void HandleJoinerEntrustResponse(Coap::Message *aMessage, const Ip6::MessageInfo *aMessageInfo, Er…
116 void DelaySendingJoinerEntrust(const Ip6::MessageInfo &aMessageInfo, const Kek &aKek);
118 Error SendJoinerEntrust(const Ip6::MessageInfo &aMessageInfo);
123 Ip6::Udp::Socket mSocket;

12345678