zephyr/subsys/net/lib/sockets
Tomasz Bursztyka 024a7e0502 net/sockets: Adapt net_pkt_get_src_addr to new net_pkt API
This function is only used in sockets, thus making it a private function
of socket library and renaming it relevantly.

Note that sockets should be reviewed at some point to avoid using such
function: zsock_received_cb() already get the ip header and the protocol
header, so it could grab the src addr/port from there. It would be way
more optimized to do so, since net_pkt_get_src_addr is costly as it
parses all over again the ip/protocol headers.

utils unit test is updated and the test of the former
net_pkt_get_src_addr/net_pkt_get_dst_addr are removed.

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
2019-02-12 20:24:02 -05:00
..
CMakeLists.txt net: sockets: Add gethostname() call 2019-02-08 10:39:30 +02:00
getaddrinfo.c net: Clarify logging in networking code 2018-12-07 12:00:04 +02:00
Kconfig net: sockets: Remove extra "default n" setting from config 2019-02-08 16:01:49 +02:00
socket_offload.c net: sockets: Add fcntl to socket offloading API 2019-01-18 17:25:01 +02:00
sockets_can.c net: socket: can: Add getsockopt() and setsockopt() support 2019-02-07 18:08:27 +02:00
sockets_internal.h net: socket: can: Add socket CAN support 2019-02-07 18:08:27 +02:00
sockets_misc.c net: sockets: Add gethostname() call 2019-02-08 10:39:30 +02:00
sockets_packet.c net: sockets: Add socket api to support AF_PACKET 2019-02-07 14:43:30 +02:00
sockets_select.c net: sockets_select: Fix build without CONFIG_NET_SOCKETS_POSIX_NAMES 2019-01-29 09:19:54 +02:00
sockets_tls.c net: subsys: fixed comments CONFIG_NET* 2019-02-08 13:57:55 +02:00
sockets.c net/sockets: Adapt net_pkt_get_src_addr to new net_pkt API 2019-02-12 20:24:02 -05:00