There is no need for appdata pointer: net_pkt's cursor is already at the right position, i.e. the beginning of the payload right after all IP/TCP headers. Also, when reading the actual data, let's use net_pkt_read_new() relevantly instead of going through the buffer by ourselves. Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com> |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| getaddrinfo.c | ||
| Kconfig | ||
| socket_offload.c | ||
| sockets_can.c | ||
| sockets_internal.h | ||
| sockets_misc.c | ||
| sockets_packet.c | ||
| sockets_select.c | ||
| sockets_tls.c | ||
| sockets.c | ||