nuttxs commented on code in PR #13010: URL: https://github.com/apache/nuttx/pull/13010#discussion_r1724254218
########## net/pkt/pkt_sendmsg.c: ########## @@ -113,7 +113,7 @@ static uint16_t psock_send_eventhandler(FAR struct net_driver_s *dev, goto end_wait; } - dev->d_len = dev->d_sndlen -= NET_LL_HDRLEN(dev); + dev->d_len = dev->d_sndlen; Review Comment: This length (dev->d_len) is to ensure that the data length sent by the network card driver in the lower half is valid. Do you have any suggestions for changes here? -- 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