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

   
   ## Summary
   Wait a fixed number of milliseconds before sending a retry ARP request for 
the same destination if the IP address mapping is not exist to prevent ARP 
flooding
   ## Impact
   arp
   
   
   ## Testing
   change CONFIG_ARP_SEND_MAXTRIES=1
   ping a no exist ip, default limit 1 request per 10 second:
   ```
   nsh> ping -c 22 10.0.1.4
   PING 10.0.1.4 56 bytes of data
   ERROR: sendto failed at seqno 0: 101
   ERROR: sendto failed at seqno 1: 101
   ERROR: sendto failed at seqno 2: 101
   ERROR: sendto failed at seqno 3: 101
   ERROR: sendto failed at seqno 4: 101
   ERROR: sendto failed at seqno 5: 101
   ERROR: sendto failed at seqno 6: 101
   ERROR: sendto failed at seqno 7: 101
   ERROR: sendto failed at seqno 8: 101
   ERROR: sendto failed at seqno 9: 101
   ERROR: sendto failed at seqno 10: 101
   ERROR: sendto failed at seqno 11: 101
   ERROR: sendto failed at seqno 12: 101
   ERROR: sendto failed at seqno 13: 101
   ERROR: sendto failed at seqno 14: 101
   ERROR: sendto failed at seqno 15: 101
   ERROR: sendto failed at seqno 16: 101
   ERROR: sendto failed at seqno 17: 101
   ERROR: sendto failed at seqno 18: 101
   ERROR: sendto failed at seqno 19: 101
   ERROR: sendto failed at seqno 20: 101
   ERROR: sendto failed at seqno 21: 101
   ```
   result:
   ```
   15:19:56.578812 ARP, Request who-has 10.0.1.4 tell 10.0.1.2, length 28
   15:20:06.678675 ARP, Request who-has 10.0.1.4 tell 10.0.1.2, length 28
   15:20:16.778745 ARP, Request who-has 10.0.1.4 tell 10.0.1.2, length 28
   ```
   


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