raiden00pl opened a new pull request, #4051:
URL: https://github.com/apache/nuttx-apps/pull/4051

   
   ## Summary
   
     ptpd bound its UDP TX socket before `SIOCGIFADDR` filled
     `state->interface_addr`, so the socket was bound to `INADDR_ANY:320`,
     while the info socket already held `224.0.1.129:320`. Since apache/nuttx
     806b05cd316 ("net/udp: fix udp_find_conn to check both local addresses
     for overlap"), that `bind()` fails with `EADDRINUSE` and ptpd exits at
     startup.
     
     Move the TX bind after the interface address is read, so the socket is
     bound to the interface address as intended.
   
   
   ## Impact
   
   bugfix
   
   ## Testing
   
     nuttx-testlab PTP tests (ptpd against linuxptp `ptp4l` and node to node),
     nuttx master e1eca35c2c4:
         
     - Without the fix: ptpd exits with status 1 and the PTP tests fail on sim,
       qemu-armv8a, rv-virt and qemu-intel64.
     - With the fix: 10/10 PTP tests passed on sim, and `client_sync_from_host`
       and `node_to_node` passed on qemu-armv8a.
   
   
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to