mirror of
https://github.com/Dasharo/zephyr.git
synced 2026-03-06 14:57:20 -08:00
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>