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> |
||
|---|---|---|
| .. | ||
| application_development | ||
| benchmarks | ||
| bluetooth | ||
| boards | ||
| booting/stub | ||
| cmsis_rtos_v1 | ||
| cmsis_rtos_v2 | ||
| compliance | ||
| coverage | ||
| crypto | ||
| drivers | ||
| include | ||
| kernel | ||
| lib | ||
| misc | ||
| net | ||
| posix | ||
| shell | ||
| subsys | ||
| unit | ||
| ztest | ||
| CMakeLists.txt | ||
| Kconfig | ||