xiaoxiang781216 commented on code in PR #15877:
URL: https://github.com/apache/nuttx/pull/15877#discussion_r1964065587


##########
net/devif/ipv6_input.c:
##########
@@ -463,9 +463,15 @@ 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))
           {
+            /* Let 6LoWPAN handle the TCP output, the TCP output can be
+             * updated in dev->d_iob so we get this first.
+             */
+
+            FAR struct ipv6_hdr_s *ipv6r = IPv6BUF;
+
             /* Let 6LoWPAN handle the TCP output */
 
-            sixlowpan_tcp_send(dev, dev, ipv6);
+            sixlowpan_tcp_send(dev, dev, ipv6r);

Review Comment:
   Ok, but it may more clear to reassign IPv6BUF to ipv6 instead ipv6r.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to