zephyr/samples/net/echo_server/src
Jukka Rissanen 4fea5b18ab net: app: Add IP header to packets received by TLS/DTLS tunnel
The IP header was stripped by _net_app_ssl_mux() when it received
IP packet. This is fine but if the application expects the get
the IP header, then there is a problem. Fix this by saving IP
header to ssl_context and then putting it back in front of the
packet when the data is passed to application.
Note that this IP header is not used by net_app when the packet
is sent because TLS/DTLS creates a tunnel for transferring packets
and user can only sent packets via this tunnel.

Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2017-08-30 08:12:10 -04:00
..
common.h net: samples: Convert echo-server to use network app API 2017-06-30 06:13:09 -04:00
echo-server.c net: app: Fix for net_app_get_net_buf() 2017-08-14 10:04:03 +03:00
Makefile net: samples: Convert echo-server to use network app API 2017-06-30 06:13:09 -04: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