nuttx/net/udp
chao an 2afa1b3b64 net/udp: correct linger timeout
UDP linger timeout will be wrongly converted to UINT_MAX by _SO_TIMEOUT() when it is set to 0,

net/socket/socket.h:
|
| #  define _SO_TIMEOUT(t) ((t) ? (t) * MSEC_PER_DSEC : UINT_MAX)

net/udp/udp_close.c:
|
| if (_SO_GETOPT(conn->sconn.s_options, SO_LINGER))
|   {
|     timeout = _SO_TIMEOUT(conn->sconn.s_linger);
|   }

this change will correct this behavior, if the linger is set to 0, the timeout value should be 0

Signed-off-by: chao an <anchao@xiaomi.com>
2023-01-18 02:47:12 +08:00
..
Kconfig net/udp: NET_BROADCAST shouldn't configurable if NET_UDP_NO_STACK enable 2022-11-22 20:45:26 +09:00
Make.defs net/inet: add support of FIONREAD 2021-07-05 06:20:52 -05:00
udp_callback.c net/l2/l3/l4: add support of iob offload 2022-12-03 11:47:04 +08:00
udp_close.c net/udp: correct linger timeout 2023-01-18 02:47:12 +08:00
udp_conn.c net/nat: Add UDP support 2022-11-11 14:36:55 +08:00
udp_devpoll.c net/devif_poll: optimize device buffer alloc in txpoll 2023-01-13 16:41:10 +08:00
udp_finddev.c tcp: find bound device when laddr is ANY 2022-11-12 18:36:09 +08:00
udp_input.c net: move device buffer define to common header 2022-10-28 00:32:16 -04:00
udp_ioctl.c net: Align the prototype of sock_intf_s::si_ioctl with file_operations::ioctl 2022-09-06 22:46:37 +08:00
udp_ipselect.c net: move device buffer define to common header 2022-10-28 00:32:16 -04:00
udp_netpoll.c poll: add poll_notify() api and call it in all drivers 2022-09-26 12:06:32 +08:00
udp_notifier.c sched/wqueue: Change the return type of work_notifier_teardown to void 2022-05-14 00:35:29 +03:00
udp_recvfrom.c net: consistent the net sem wait naming conversion 2023-01-15 12:31:30 -03:00
udp_send.c net/l2/l3/l4: add support of iob offload 2022-12-03 11:47:04 +08:00
udp_sendto_buffered.c net: consistent the net sem wait naming conversion 2023-01-15 12:31:30 -03:00
udp_sendto_unbuffered.c net: consistent the net sem wait naming conversion 2023-01-15 12:31:30 -03:00
udp_setsockopt.c net/sockopt: move BINDTODEVICE to socket level 2022-08-25 17:56:52 +08:00
udp_txdrain.c net: consistent the net sem wait naming conversion 2023-01-15 12:31:30 -03:00
udp_wrbuffer_dump.c net: Author Gregory Nutt: update licenses to Apache 2021-02-20 00:38:18 -08:00
udp_wrbuffer.c net: consistent the net sem wait naming conversion 2023-01-15 12:31:30 -03:00
udp.h net/l2/l3/l4: add support of iob offload 2022-12-03 11:47:04 +08:00