zephyr/samples/net/echo_server/src
Ravi kumar Veeramally 6cadd380b7 samples: net: Fix echo_server reply packet preparation
If the incoming packet fragments doesn't have any link layer
header then build_reply_pkt() will set reply packet fragment's link
layer header space to zero. Which is causing issue in case of IPv4.
ARP layer is trying to fill Ethernet headers, but fragments
ll header length is set to zero.

Just use net_pkt_copy_all() to copy payload. That should be enough.

Fixes #6564

Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@linux.intel.com>
2018-05-16 16:40:27 +03:00
..
common.h net: samples: Convert echo-server to use network app API 2017-06-30 06:13:09 -04:00
echo-server.c samples: net: Fix echo_server reply packet preparation 2018-05-16 16:40:27 +03:00
tcp.c samples: net: Fix compile error in echo-server when using TLS 2017-08-25 15:50:41 -04:00
test_certs.h net: samples: Convert echo-server to use network app API 2017-06-30 06:13:09 -04:00
udp.c net: app: Add IP header to packets received by TLS/DTLS tunnel 2017-08-30 08:12:10 -04:00