The code parsing received net pkt to get source or destination sockaddr repeats multiple times in net_context.c. Eliminate the duplication by net_pkt_get_src_addr() and net_pkt_get_dst_addr() which can handle different internet protocol (i.e. ipv4 or ipv6) and transport protocol (i.e. tcp or udp) Fixes: #4421 Signed-off-by: Aska Wu <aska.wu@linaro.org> |
||
|---|---|---|
| .. | ||
| ip | ||
| lib | ||
| buf.c | ||
| hostname.c | ||
| Kconfig | ||
| Kconfig.hostname | ||
| Makefile | ||
| TODO | ||