nuttx/net/socket
Xiang Xiao 90c52e6f8f Squashed commit of the following:
Author: Gregory Nutt <gnutt@nuttx.org>

    Run all .h and .c files modified in last PR through nxstyle.

Author: Xiang Xiao <xiaoxiang@xiaomi.com>

    Net cleanup (#17)

    * Fix the semaphore usage issue found in tcp/udp

    1. The count semaphore need disable priority inheritance
    2. Loop again if net_lockedwait return -EINTR
    3. Call nxsem_trywait to avoid the race condition
    4. Call nxsem_post instead of sem_post

    * Put the work notifier into free list to avoid the heap fragment in the long run.  Since the allocation strategy is encapsulated internally, we can even refine the implementation later.

    * Network stack shouldn't allocate memory in the poll implementation to avoid the heap fragment in the long run, other modification include:

    1. Select MM_IOB automatically since ICMP[v6] socket can't work without the read ahead buffer
    2. Remove the net lock since xxx_callback_free already do the same thing
    3. TCP/UDP poll should work even the read ahead buffer isn't enabled at all

    * Add NET_ prefix for UDP_NOTIFIER and TCP_NOTIFIER option to align with other UDP/TCP option convention

    * Remove the unused _SF_[IDLE|ACCEPT|SEND|RECV|MASK] flags since there are code to set/clear these flags, but nobody check them.
2019-12-31 09:26:14 -06:00
..
accept.c This change implements the SO_ERROR socket option that is used to obtain the last error reported by the network. 2019-12-24 08:09:55 -06:00
bind.c This change implements the SO_ERROR socket option that is used to obtain the last error reported by the network. 2019-12-24 08:09:55 -06:00
connect.c This change implements the SO_ERROR socket option that is used to obtain the last error reported by the network. 2019-12-24 08:09:55 -06:00
getpeername.c This change implements the SO_ERROR socket option that is used to obtain the last error reported by the network. 2019-12-24 08:09:55 -06:00
getsockname.c This change implements the SO_ERROR socket option that is used to obtain the last error reported by the network. 2019-12-24 08:09:55 -06:00
getsockopt.c This change implements the SO_ERROR socket option that is used to obtain the last error reported by the network. 2019-12-24 08:09:55 -06:00
Kconfig Squashed commit of the following: 2019-12-31 09:26:14 -06:00
listen.c This change implements the SO_ERROR socket option that is used to obtain the last error reported by the network. 2019-12-24 08:09:55 -06:00
Make.defs net/ and include/nuttx/net: Add getpeername() support 2018-07-19 07:16:30 -06:00
net_checksd.c CONFIG_NFILE_DESCRIPTORS=0 can no longer be used to disable the file system. NuttX with no file system does not make sense. 2019-02-11 12:09:26 -06:00
net_clone.c net/socket: For consistency in naming, change the name of sock_release() to psock_release(). 2018-11-27 07:50:09 -06:00
net_close.c net/socket: For consistency in naming, change the name of sock_release() to psock_release(). 2018-11-27 07:50:09 -06:00
net_dupsd2.c Fix condition logic: The setup seems to support a network without sockets. That is not the case. 2019-02-11 15:47:25 -06:00
net_dupsd.c Fix condition logic: The setup seems to support a network without sockets. That is not the case. 2019-02-11 15:47:25 -06:00
net_fstat.c net/: Fix alignment and spacing problems found by tools/nxstyle. 2019-07-02 18:02:23 -06:00
net_poll.c Squashed commit of the following: 2019-05-21 18:57:54 -06:00
net_sendfile.c This change implements the SO_ERROR socket option that is used to obtain the last error reported by the network. 2019-12-24 08:09:55 -06:00
net_sockets.c net/: Fix alignment and spacing problems found by tools/nxstyle. 2019-07-02 18:02:23 -06:00
net_sockif.c This commit brings in a fragmentary, experimental implementation of NETLINK sockets. There is not too much to that socket support on this initial commit, just the netlink socketer framework. However, I decided to bring it into master because there is a enough that I would not want to lose what is in place. And since it is dependent on CONFIG_EXPERIMENATL, its presence on master should be innocuous. 2018-08-03 13:22:36 -06:00
net_timeo.c Elimate use of the non-standard type systime_t and replace it the equivalent, standard type clock_t 2018-06-16 12:16:13 -06:00
net_vfcntl.c net/: Run nxstyle against all C files. 2019-10-25 11:31:42 -06:00
recv.c Standardization of some function headers. 2018-03-13 09:52:27 -06:00
recvfrom.c Squashed commit of the following: 2019-12-31 09:26:14 -06:00
send.c This change implements the SO_ERROR socket option that is used to obtain the last error reported by the network. 2019-12-24 08:09:55 -06:00
sendto.c This change implements the SO_ERROR socket option that is used to obtain the last error reported by the network. 2019-12-24 08:09:55 -06:00
setsockopt.c net/inet: Add framework to support IPv4 and IPv6 protocol socket options (i.e., SOL_IP and SOL_IP6). This is build framework only (not actual socket options are yet handled). Handling of these socket options is a necessary step on the way to future ICMPv6 MLD support. 2018-10-31 15:59:05 -06:00
socket.c Squashed commit of the following: 2018-07-07 08:26:13 -06:00
socket.h Squashed commit of the following: 2019-12-31 09:26:14 -06:00