mirror of
https://github.com/espressif/openthread.git
synced 2026-08-08 11:47:46 +00:00
Update otNewUdpMessage() to allow user to enable/disable layer 2 security (#812)
This commit is contained in:
committed by
Jonathan Hui
parent
86deb6e868
commit
5dbf96833e
@@ -2244,13 +2244,14 @@ uint8_t otIp6PrefixMatch(const otIp6Address *aFirst, const otIp6Address *aSecond
|
||||
/**
|
||||
* Allocate a new message buffer for sending a UDP message.
|
||||
*
|
||||
* @param[in] aInstance A pointer to an OpenThread instance.
|
||||
* @param[in] aInstance A pointer to an OpenThread instance.
|
||||
* @param[in] aLinkSecurityEnabled TRUE if the message should be secured at Layer 2.
|
||||
*
|
||||
* @returns A pointer to the message buffer or NULL if no message buffers are available.
|
||||
*
|
||||
* @sa otFreeMessage
|
||||
*/
|
||||
otMessage otNewUdpMessage(otInstance *aInstance);
|
||||
otMessage otNewUdpMessage(otInstance *aInstance, bool aLinkSecurityEnabled);
|
||||
|
||||
/**
|
||||
* Open a UDP/IPv6 socket.
|
||||
|
||||
Reference in New Issue
Block a user