/openthread-3.4.0/src/core/net/ |
D | udp6.cpp | 50 bool Udp::SocketHandle::Matches(const MessageInfo &aMessageInfo) const in Matches() 74 Udp::Socket::Socket(Instance &aInstance) in Socket() 80 Message *Udp::Socket::NewMessage(void) { return NewMessage(0); } in NewMessage() 82 Message *Udp::Socket::NewMessage(uint16_t aReserved) { return NewMessage(aReserved, Message::Settin… in NewMessage() 84 Message *Udp::Socket::NewMessage(uint16_t aReserved, const Message::Settings &aSettings) in NewMessage() 86 return Get<Udp>().NewMessage(aReserved, aSettings); in NewMessage() 89 Error Udp::Socket::Open(otUdpReceive aHandler, void *aContext) { return Get<Udp>().Open(*this, aHan… in Open() 91 bool Udp::Socket::IsOpen(void) const { return Get<Udp>().IsOpen(*this); } in IsOpen() 93 Error Udp::Socket::Bind(const SockAddr &aSockAddr, NetifIdentifier aNetifIdentifier) in Bind() 95 return Get<Udp>().Bind(*this, aSockAddr, aNetifIdentifier); in Bind() [all …]
|
D | udp6.hpp | 53 class Udp; 84 class Udp : public InstanceLocator, private NonCopyable class 93 friend class Udp; 153 friend class Udp; 333 friend class Udp; 448 explicit Udp(Instance &aInstance); 699 DefineCoreType(otUdpSocket, Ip6::Udp::SocketHandle); 700 DefineCoreType(otUdpReceiver, Ip6::Udp::Receiver);
|
D | ip6.hpp | 439 Udp mUdp; 578 const Udp::Header &GetUdpHeader(void) const { return mHeader.mUdp; } in GetUdpHeader() 628 Udp::Header mUdp;
|
D | checksum.cpp | 172 headerOffset = Ip6::Udp::Header::kChecksumFieldOffset; in UpdateMessageChecksum() 207 headerOffset = Ip4::Udp::Header::kChecksumFieldOffset; in UpdateMessageChecksum()
|
D | dnssd_server.hpp | 428 … void Finalize(Header::Response aResponseMessage, Ip6::Udp::Socket &aSocket); 486 Ip6::Udp::Socket &aSocket); 543 Ip6::Udp::Socket mSocket;
|
D | ip4_types.hpp | 706 using Udp = Ip6::Udp; // UDP in IPv4 is the same as UDP in IPv6 typedef
|
D | dhcp6_client.hpp | 143 Ip6::Udp::Socket mSocket;
|
D | dhcp6_server.hpp | 217 Ip6::Udp::Socket mSocket;
|
D | srp_server.hpp | 921 static constexpr uint16_t kUdpPayloadSize = Ip6::kMaxDatagramLength - sizeof(Ip6::Udp::Header); 992 Ip6::Udp::Socket &GetSocket(void); 1067 Ip6::Udp::Socket mSocket;
|
D | srp_client.hpp | 806 static constexpr uint16_t kUdpPayloadSize = Ip6::kMaxDatagramLength - sizeof(Ip6::Udp::Header); 1085 Ip6::Udp::Socket mSocket;
|
D | sntp_client.hpp | 534 Ip6::Udp::Socket mSocket;
|
D | ip6.cpp | 1008 Udp::Header udp; in PassToHost() 1011 VerifyOrExit(Get<Udp>().ShouldUsePlatformUdp(udp.GetDestinationPort()) && in PassToHost() 1012 !Get<Udp>().IsPortInUse(udp.GetDestinationPort()), in PassToHost() 1275 …SuccessOrExit(error = aMessage.Read(aMessage.GetOffset() + Udp::Header::kDestPortFieldOffset, dest… in HandleDatagram() 1280 VerifyOrExit(Get<Udp>().ShouldUsePlatformUdp(destPort), error = kErrorDrop); in HandleDatagram()
|
D | srp_server.cpp | 579 Ip6::Udp::Socket &dnsSocket = Get<Dns::ServiceDiscovery::Server>().mSocket; in PrepareSocket() 604 Ip6::Udp::Socket &Server::GetSocket(void) in GetSocket() 606 Ip6::Udp::Socket *socket = &mSocket; in GetSocket() 609 Ip6::Udp::Socket &dnsSocket = Get<Dns::ServiceDiscovery::Server>().mSocket; in GetSocket() 1205 signerNameMessage = Get<Ip6::Udp>().NewMessage(); in VerifySignature()
|
/openthread-3.4.0/src/core/api/ |
D | udp_api.cpp | 45 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() 101 AsCoreType(aInstance).Get<Ip6::Udp>().HandlePayload(AsCoreType(aMessage), messageInfo); in otUdpForwardReceive() [all …]
|
/openthread-3.4.0/src/posix/platform/ |
D | udp.hpp | 37 class Udp : public Mainloop::Source, private NonCopyable class 40 static Udp &Get(void);
|
D | system.cpp | 164 ot::Posix::Udp::Get().Init(otSysGetThreadNetifName()); in platformInit() 166 ot::Posix::Udp::Get().Init(aPlatformConfig->mInterfaceName); in platformInit() 191 ot::Posix::Udp::Get().SetUp(); in platformSetUp() 230 ot::Posix::Udp::Get().TearDown(); in platformTearDown() 260 ot::Posix::Udp::Get().Deinit(); in platformDeinit()
|
D | udp.cpp | 537 void Udp::Update(otSysMainloopContext &aContext) in Update() 563 void Udp::Init(const char *aIfName) in Init() 582 void Udp::SetUp(void) { Mainloop::Manager::Get().Add(*this); } in SetUp() 584 void Udp::TearDown(void) { Mainloop::Manager::Get().Remove(*this); } in TearDown() 586 void Udp::Deinit(void) in Deinit() 591 Udp &Udp::Get(void) in Get() 593 static Udp sInstance; in Get() 598 void Udp::Process(const otSysMainloopContext &aContext) in Process()
|
/openthread-3.4.0/tests/unit/ |
D | test_checksum.cpp | 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() 364 constexpr uint16_t kMinSize = sizeof(Ip4::Udp::Header); in TestUdp4MessageChecksum() 382 Message *message = instance->Get<Ip6::Ip6>().NewMessage(sizeof(Ip4::Udp::Header)); in TestUdp4MessageChecksum() 383 Ip4::Udp::Header udpHeader; in TestUdp4MessageChecksum()
|
D | test_lowpan.hpp | 268 Ip6::Udp::Header mUdpHeader;
|
/openthread-3.4.0/src/core/meshcop/ |
D | joiner_router.hpp | 123 Ip6::Udp::Socket mSocket;
|
D | border_agent.cpp | 192 IgnoreError(Get<Ip6::Udp>().AddReceiver(mUdpReceiver)); in HandleCoapResponse() 303 VerifyOrExit((message = Get<Ip6::Udp>().NewMessage()) != nullptr, error = kErrorNoBufs); in HandleTmf() 312 SuccessOrExit(error = Get<Ip6::Udp>().SendDatagram(*message, messageInfo, Ip6::kProtoUdp)); in HandleTmf() 574 IgnoreError(Get<Ip6::Udp>().RemoveReceiver(mUdpReceiver)); in HandleConnected()
|
D | border_agent.hpp | 195 …Ip6::Udp::Receiver mUdpReceiver; ///< The UDP receiver to receive packets from external co…
|
D | dtls.hpp | 502 Ip6::Udp::Socket mSocket;
|
/openthread-3.4.0/src/core/thread/ |
D | lowpan.cpp | 515 Ip6::Udp::Header udpHeader; in CompressUdp() 544 …SuccessOrExit(error = aFrameBuilder.AppendBytes(&udpHeader, Ip6::Udp::Header::kLengthFieldOffset)); in CompressUdp() 887 Error Lowpan::DecompressUdpHeader(Ip6::Udp::Header &aUdpHeader, FrameData &aFrameData) in DecompressUdpHeader() 951 Ip6::Udp::Header udpHeader; in DecompressUdpHeader()
|
D | lowpan.hpp | 189 Error DecompressUdpHeader(Ip6::Udp::Header &aUdpHeader, FrameData &aFrameData);
|