nuttx/net/socket
chao an fe7badf2ac net/getsockname: small addrlen should be a valid value
fix usrsock getsockname fail

nsh> usrsocktest
...
Testing group "basic_getsockname" =>
	[TEST ASSERT FAILED!]
		In function "basic_getsockname_open":
		line 170: Assertion `(ssize_t)((ret)) == (ssize_t)((0))' failed.
			got value: -1
			should be: 0
	Group "basic_getsockname": [FAILED]
...

Reference:

GETSOCKNAME(2)

NAME
       getsockname - get socket name
...
DESCRIPTION
...
       The returned address is truncated if the buffer provided is too small;
       in this case, addrlen will return a value greater than was supplied to the call.

Signed-off-by: chao an <anchao@xiaomi.com>
2022-09-01 01:19:09 +08:00
..
accept.c net/inet: move socket flags into socket_conn_s 2022-02-10 15:04:33 -03:00
bind.c net/inet: move socket flags into socket_conn_s 2022-02-10 15:04:33 -03:00
connect.c net:fix coverity warning 2022-04-03 14:37:53 +03:00
getpeername.c sourcefiles: Fix relative path in file header 2021-03-09 23:18:28 +08:00
getsockname.c net/getsockname: small addrlen should be a valid value 2022-09-01 01:19:09 +08:00
getsockopt.c net/inet: move socket timestamp into socket_conn_s 2022-02-10 15:04:33 -03:00
Kconfig net/sockopt: move BINDTODEVICE to socket level 2022-08-25 17:56:52 +08:00
listen.c net/inet: move socket flags into socket_conn_s 2022-02-10 15:04:33 -03:00
Make.defs net: Remove psock_fcntl related code 2022-03-04 22:03:55 +02:00
net_close.c net/inet: move socket flags into socket_conn_s 2022-02-10 15:04:33 -03:00
net_dup2.c net/tcp/monitor: do not migrate the state to close 2022-02-11 18:56:40 +09:00
net_fstat.c net/inet: move socket flags into socket_conn_s 2022-02-10 15:04:33 -03:00
net_poll.c net: unify socket into file descriptor 2021-03-03 19:01:41 -08:00
net_sendfile.c net/inet: move socket error into socket_conn_s 2022-02-10 15:04:33 -03:00
net_sockif.c net/socket_rpmsg: add net socket rpmsg support 2021-03-07 01:45:51 -08:00
net_timeo.c net: Author Gregory Nutt: update licenses to Apache 2021-02-20 00:38:18 -08:00
recv.c net: Author Gregory Nutt: update licenses to Apache 2021-02-20 00:38:18 -08:00
recvfrom.c net/socket: move si_send/recv into sendmsg/recvmsg 2021-03-05 04:46:13 -08:00
recvmsg.c net/socket: move si_send/recv into sendmsg/recvmsg 2021-03-05 04:46:13 -08:00
send.c net/socket: move si_send/recv into sendmsg/recvmsg 2021-03-05 04:46:13 -08:00
sendmsg.c net/socket: move si_send/recv into sendmsg/recvmsg 2021-03-05 04:46:13 -08:00
sendto.c net/socket: Fix bug that sendto did not return an error 2021-08-19 01:31:05 -07:00
setsockopt.c net/sockopt: move BINDTODEVICE to socket level 2022-08-25 17:56:52 +08:00
socket.c net/inet: move socket flags into socket_conn_s 2022-02-10 15:04:33 -03:00
socket.h net/sockopt: move BINDTODEVICE to socket level 2022-08-25 17:56:52 +08:00
socketpair.c net/socketpair: move socketpair implement into socket internal 2021-07-08 03:05:43 -05:00