zephyr/subsys/net
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
..
ip cmake: Don't have users call zephyr_link_interface on mbedTLS 2019-05-11 08:35:26 -04:00
l2 net: arp: Drop request where src hw address is our address 2019-05-14 12:36:07 +03:00
lib net: sockets: implement getsockname function 2019-05-17 22:49:32 +03:00
buf.c all: Add 'U' suffix when using unsigned variables 2019-03-28 17:15:58 -05:00
CMakeLists.txt license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
hostname.c net: Clarify logging in networking code 2018-12-07 12:00:04 +02:00
Kconfig net: buf: Use proper Kconfig log level template 2018-10-24 15:10:33 +03:00
Kconfig.hostname net: hostname: Fix Kconfig option help 2019-02-20 19:42:13 -05:00
Kconfig.template.log_config.default.net
Kconfig.template.log_config.net net: Clarify logging in networking code 2018-12-07 12:00:04 +02:00