zephyr/samples/net
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
..
coaps_client net: Fix LLVM compiler warnings 2017-08-09 12:50:50 -04:00
coaps_server net: Fix LLVM compiler warnings 2017-08-09 12:50:50 -04:00
common net: common: Don't build ipss.c 2017-08-17 10:24:05 -04:00
dhcpv4_client doc: qemu target was deprecated, use 'run' 2017-08-03 11:48:55 -04:00
dns_resolve samples: dns_resolve: unify prj.conf 2017-08-02 07:31:22 -04:00
echo_client Bluetooth: Kconfig: Rename CONFIG_BLUETOOTH_* to CONFIG_BT_* 2017-08-09 11:14:19 +03:00
echo_server net: app: Add IP header to packets received by TLS/DTLS tunnel 2017-08-30 08:12:10 -04:00
http_client Bluetooth: Kconfig: Rename CONFIG_BLUETOOTH_* to CONFIG_BT_* 2017-08-09 11:14:19 +03:00
http_server Bluetooth: Kconfig: Rename CONFIG_BLUETOOTH_* to CONFIG_BT_* 2017-08-09 11:14:19 +03:00
https_client Bluetooth: Kconfig: Rename CONFIG_BLUETOOTH_* to CONFIG_BT_* 2017-08-09 11:14:19 +03:00
ieee802154 samples: net: ieee802154: Fix compile error 2017-08-09 14:21:02 +03:00
irc_bot net: struct sockaddr should have field "sa_family" 2017-08-18 16:34:51 -04:00
leds_demo samples: leds_demo: Fix null pointer dereference when adding IP address 2017-08-22 16:32:35 -04:00
lwm2m_client samples: net: add sample documentation for lwm2m-client 2017-08-21 08:37:15 -04:00
mbedtls_dtlsclient samples: fixed tc syntax 2017-08-07 21:43:51 -04:00
mbedtls_dtlsserver net: Fix LLVM compiler warnings 2017-08-09 12:50:50 -04:00
mbedtls_sslclient net: struct sockaddr should have field "sa_family" 2017-08-18 16:34:51 -04:00
mqtt_publisher samples: net: mqtt: Define the stack properly 2017-08-22 16:29:51 -04:00
nats samples: nats: Fix NULL pointer dereference when publishing 2017-08-22 08:19:54 -04:00
sockets samples: net: echo_async: Add IPv6 support 2017-08-21 08:40:46 -04:00
telnet doc: spelling fixes in docs 2017-08-02 15:14:13 -04:00
wpan_serial samples: mark samples that require usb_device support 2017-07-07 09:01:01 -05:00
wpanusb samples: mark samples that require usb_device support 2017-07-07 09:01:01 -05:00
zoap_client Bluetooth: Kconfig: Rename CONFIG_BLUETOOTH_* to CONFIG_BT_* 2017-08-09 11:14:19 +03:00
zoap_server net: samples: Fix unchecked return value in zoap_server 2017-08-30 08:07:56 -04:00
zperf Bluetooth: Kconfig: Rename CONFIG_BLUETOOTH_* to CONFIG_BT_* 2017-08-09 11:14:19 +03:00
net.rst doc: add labels to net sample docs for linking 2017-04-04 19:52:06 +00:00