raiden00pl opened a new pull request, #3815:
URL: https://github.com/apache/nuttx-apps/pull/3815
## Summary
The filter was set with level IPPROTO_ICMP, which is 1, the same value
as SOL_SOCKET, so psock_setsockopt() handled it as the socket level
option 1, SO_BROADCAST, and the ICMP filter was never set. ping then
received unrelated ICMP messages (e.g. port unreachable), stopped
waiting for the echo reply of that sequence and counted it as lost:
with port unreachable messages arriving at 50/s, ping -c 20 lost 19
of 20 replies on sim.
The ICMP socket expects ICMP_FILTER at SOL_RAW, as on Linux.
## Impact
bug fix
## Testing
detected by automate tests from https://github.com/railab/nuttx-testlab
--
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]