jlaitine opened a new pull request, #14337:
URL: https://github.com/apache/nuttx/pull/14337

   This PR fixes two issues with socketcan
   
   1. Don't select netdevices without an IP as "default" netdevs (e.g. in 
netdev_findbyaddr()). This causes sending IP data to socket can drivers (and 
other socket devices which are not IP devices).
   
   2 Fix cmsg data (timeout timestamp) appending to socket can messages. This 
has broken at some point, I am not sure how/why:
   
   - First, copy the cmsg (timeout time stamp) data into IOB together with the 
data in can_sendmsg.c/psock_send_eventhandler . Set the d_sndlen to 
message+timestamp length, and d_len to the actual data length.
   
   - Second, in devif_poll, iob_copyout the max of (d_len, d_sndlen) to pass 
the data to the can drivers.
   


-- 
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