This is an automated email from the ASF dual-hosted git repository. acassis pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push: new 34aa17b7a0 sixlowpan: improve tcp support. 34aa17b7a0 is described below commit 34aa17b7a06fb53ab4fc68b523450aa9f3517ab9 Author: Laczen JMS <laczen...@gmail.com> AuthorDate: Thu Feb 20 09:27:59 2025 +0100 sixlowpan: improve tcp support. Update the handling of tcp packets over sixlowpan. `tcp_ipv6_input()` can update the dev->d_iob. Assigning ipv6 to IPv6BUF makes sure that the correct buffer is used. Signed-off-by: Laczen JMS <laczen...@gmail.com> --- net/devif/ipv6_input.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/net/devif/ipv6_input.c b/net/devif/ipv6_input.c index 6216c9d1e0..af9d9cdbee 100644 --- a/net/devif/ipv6_input.c +++ b/net/devif/ipv6_input.c @@ -463,6 +463,12 @@ static int ipv6_in(FAR struct net_driver_s *dev) if ((dev->d_len > 0 && dev->d_lltype == NET_LL_IEEE802154) || (dev->d_len > 0 && dev->d_lltype == NET_LL_PKTRADIO)) { + /* tcp_ipv6_input() can update dev->d_iob. Update ipv6 to ensure + * using the correct data. + */ + + ipv6 = IPv6BUF; + /* Let 6LoWPAN handle the TCP output */ sixlowpan_tcp_send(dev, dev, ipv6);