mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-24 20:01:35 +08:00
If only PF_IEEE802154 socket family is enabled, then must use SOCK_DGRAM.
This commit is contained in:
@@ -65,10 +65,14 @@
|
|||||||
* if UDP is disabled.
|
* if UDP is disabled.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_NET_UDP
|
#if defined(CONFIG_NET_UDP)
|
||||||
# define NETLIB_SOCK_IOCTL SOCK_DGRAM
|
# define NETLIB_SOCK_IOCTL SOCK_DGRAM
|
||||||
#else
|
#elif defined(CONFIG_NET_TCP)
|
||||||
# define NETLIB_SOCK_IOCTL SOCK_STREAM
|
# define NETLIB_SOCK_IOCTL SOCK_STREAM
|
||||||
|
#elif defined(CONFIG_NET_IEEE802154)
|
||||||
|
# define NETLIB_SOCK_IOCTL SOCK_DGRAM
|
||||||
|
#elif defined(CONFIG_NET_PKT)
|
||||||
|
# define NETLIB_SOCK_IOCTL SOCK_RAW
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
|||||||
Reference in New Issue
Block a user