From ae1771454a7350837a0fddc9b751483fc4ba89a2 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 30 Jun 2017 16:07:51 -0600 Subject: [PATCH] 6LoWPAN: TCP send logic was returning a failure in one case when, in fact, the send was successful. --- configs/clicker2-stm32/README.txt | 5 ++++- net/sixlowpan/sixlowpan_tcpsend.c | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/configs/clicker2-stm32/README.txt b/configs/clicker2-stm32/README.txt index 110180f74cb..b2dc89257c6 100644 --- a/configs/clicker2-stm32/README.txt +++ b/configs/clicker2-stm32/README.txt @@ -682,7 +682,10 @@ Configurations uncompressed UDP packet has a bad checksum. This required a change to assure that the destination IPv6 address - is not elided in the case of the star endpoint configuration. + is not elided in the case of the star endpoint configuration. After + some additional fixes for byte ordering in 16-bit and 64-bit + compressed IPv6 addresses, the all tests are working as expectedd: + TCP, UDP, Telnet. nsh: diff --git a/net/sixlowpan/sixlowpan_tcpsend.c b/net/sixlowpan/sixlowpan_tcpsend.c index cc7d902b0f3..be1f04055b1 100644 --- a/net/sixlowpan/sixlowpan_tcpsend.c +++ b/net/sixlowpan/sixlowpan_tcpsend.c @@ -417,6 +417,7 @@ static uint16_t tcp_send_interrupt(FAR struct net_driver_s *dev, * actually sent. */ + sinfo->s_result = sinfo->s_sent; goto end_wait; }