wangchen61698 opened a new pull request, #17662: URL: https://github.com/apache/nuttx/pull/17662
*Note: Please adhere to [Contributing Guidelines](https://github.com/apache/nuttx/blob/master/CONTRIBUTING.md).* ## Summary When SOL_SOCKET options (e.g., SO_BINDTODEVICE via ping -I) hit ICMP sockets, icmp_{get,set}sockopt logged “Unrecognized ICMP option: 17” before fallback. Handle SOL_SOCKET explicitly by returning -ENOPROTOOPT so psock_* routes to the socket-level handler. Removes noisy logs without changing behavior (invalid devices still return -ENODEV). ## Impact icmp log ## Testing Please verify this PR together with another PR https://github.com/apache/nuttx-apps/pull/3263 **After patch** <img width="613" height="401" alt="image" src="https://github.com/user-attachments/assets/70450953-0a38-4034-b1f2-7e32b6f27d00" /> **Before patch** <img width="922" height="441" alt="image" src="https://github.com/user-attachments/assets/0185dab7-423b-4c0c-ba93-7dda1f2fce35" /> -- 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]
