mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-08 10:55:22 +00: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> |
||
---|---|---|
.. | ||
src | ||
CMakeLists.txt | ||
prj.conf | ||
testcase.yaml |