zephyr/subsys/net
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
..
ip net/sockets: Adapt net_pkt_get_src_addr to new net_pkt API 2019-02-12 20:24:02 -05:00
l2 net: canbus: Set link address type correctly 2019-02-08 16:01:49 +02:00
lib net/sockets: Adapt net_pkt_get_src_addr to new net_pkt API 2019-02-12 20:24:02 -05:00
buf.c net: buf: Add net_buf_pull_mem() API 2019-01-28 15:21:23 +02:00
CMakeLists.txt net: l2: Move the layer 2 code into subsys/net/ 2018-06-27 17:02:59 +03: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: Convert core IP stack to use log levels 2018-10-04 14:13:57 +03:00
Kconfig.template.log_config.default.net net: Convert core IP stack to use log levels 2018-10-04 14:13:57 +03:00
Kconfig.template.log_config.net net: Clarify logging in networking code 2018-12-07 12:00:04 +02:00
TODO