zephyr/subsys/net/lib/sockets
Tomasz Gorochowik c0b30355fb net: sockets: implement getsockname function
From POSIX.1-2017:

The getsockname() function shall retrieve the locally-bound name of the
specified socket, store this address in the sockaddr structure pointed
to by the address argument, and store the length of this address in the
object pointed to by the address_len argument.

The address_len argument points to a socklen_t object which on input
specifies the length of the supplied sockaddr structure, and on output
specifies the length of the stored address. If the actual length of the
address is greater than the length of the supplied sockaddr structure,
the stored address shall be truncated.

If the socket has not been bound to a local name, the value stored in
the object pointed to by address is unspecified.

Signed-off-by: Tomasz Gorochowik <tgorochowik@antmicro.com>
2019-05-17 22:49:32 +03:00
..
CMakeLists.txt cmake: Don't have users call zephyr_link_interface on mbedTLS 2019-05-11 08:35:26 -04:00
Kconfig net: sockets: Make sure that getaddrinfo() cannot hang forever 2019-04-11 18:01:08 -04:00
getaddrinfo.c net: getaddrinfo: Implement initial handling of host == NULL 2019-05-16 16:11:10 +03:00
getnameinfo.c
socket_offload.c net: sockets: move fcntl back to socket_offload.c 2019-03-20 11:36:18 -05:00
sockets.c net: sockets: implement getsockname function 2019-05-17 22:49:32 +03:00
sockets_can.c net: sockets: can: Register handler for AF_CAN 2019-05-10 22:43:27 +03:00
sockets_internal.h net: sockets: can: Register handler for AF_CAN 2019-05-10 22:43:27 +03:00
sockets_misc.c net: add missing syscall for gethostname() 2019-04-06 14:30:42 -04:00
sockets_packet.c net: sockets: packet: Register handler for AF_PACKET 2019-05-10 22:43:27 +03:00
sockets_select.c all: Add 'U' suffix when using unsigned variables 2019-03-28 17:15:58 -05:00
sockets_tls.c net: sockets: implement getsockname function 2019-05-17 22:49:32 +03:00