Home
last modified time | relevance | path

Searched refs:Udp (Results 1 – 25 of 33) sorted by relevance

12

/openthread-3.4.0/src/core/net/
Dudp6.cpp50 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 …]
Dudp6.hpp53 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);
Dip6.hpp439 Udp mUdp;
578 const Udp::Header &GetUdpHeader(void) const { return mHeader.mUdp; } in GetUdpHeader()
628 Udp::Header mUdp;
Dchecksum.cpp172 headerOffset = Ip6::Udp::Header::kChecksumFieldOffset; in UpdateMessageChecksum()
207 headerOffset = Ip4::Udp::Header::kChecksumFieldOffset; in UpdateMessageChecksum()
Ddnssd_server.hpp428 … void Finalize(Header::Response aResponseMessage, Ip6::Udp::Socket &aSocket);
486 Ip6::Udp::Socket &aSocket);
543 Ip6::Udp::Socket mSocket;
Dip4_types.hpp706 using Udp = Ip6::Udp; // UDP in IPv4 is the same as UDP in IPv6 typedef
Ddhcp6_client.hpp143 Ip6::Udp::Socket mSocket;
Ddhcp6_server.hpp217 Ip6::Udp::Socket mSocket;
Dsrp_server.hpp921 static constexpr uint16_t kUdpPayloadSize = Ip6::kMaxDatagramLength - sizeof(Ip6::Udp::Header);
992 Ip6::Udp::Socket &GetSocket(void);
1067 Ip6::Udp::Socket mSocket;
Dsrp_client.hpp806 static constexpr uint16_t kUdpPayloadSize = Ip6::kMaxDatagramLength - sizeof(Ip6::Udp::Header);
1085 Ip6::Udp::Socket mSocket;
Dsntp_client.hpp534 Ip6::Udp::Socket mSocket;
Dip6.cpp1008 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()
Dsrp_server.cpp579 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/
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()
101 AsCoreType(aInstance).Get<Ip6::Udp>().HandlePayload(AsCoreType(aMessage), messageInfo); in otUdpForwardReceive()
[all …]
/openthread-3.4.0/src/posix/platform/
Dudp.hpp37 class Udp : public Mainloop::Source, private NonCopyable class
40 static Udp &Get(void);
Dsystem.cpp164 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()
Dudp.cpp537 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/
Dtest_checksum.cpp172 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()
Dtest_lowpan.hpp268 Ip6::Udp::Header mUdpHeader;
/openthread-3.4.0/src/core/meshcop/
Djoiner_router.hpp123 Ip6::Udp::Socket mSocket;
Dborder_agent.cpp192 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()
Dborder_agent.hpp195 …Ip6::Udp::Receiver mUdpReceiver; ///< The UDP receiver to receive packets from external co…
Ddtls.hpp502 Ip6::Udp::Socket mSocket;
/openthread-3.4.0/src/core/thread/
Dlowpan.cpp515 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()
Dlowpan.hpp189 Error DecompressUdpHeader(Ip6::Udp::Header &aUdpHeader, FrameData &aFrameData);

12