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
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_sendfile.c net/inet: move socket error into socket_conn_s 2022-02-10 15:04:33 -03:00
net_sockif.c
net_timeo.c
recv.c
recvfrom.c
recvmsg.c
send.c
sendmsg.c
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