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

   ## Summary
   1. Improve the behavior of the ARP table so that the manually configured
       ARP table has the highest priority, can only be manually modified to
       other values, otherwise will never change again, and will not time out.
       The modified behavior is consistent with that of Linux.
   2.  Improve the behavior of the ARP table so that the manually configured
       ARP table has the highest priority, can only be manually modified to
       other values, otherwise will never change again, and will not time out.
       The modified behavior is consistent with that of Linux.
   
   ## Impact
   net:arp
   
   ## Testing
   sim:matter with ping
   NuttX log:
   ```
   NuttShell (NSH) NuttX-12.12.0-RC0
   MOTD: username=admin password=Administrator
   nsh> ping -c 3 10.0.1.1
   PING 10.0.1.1 56 bytes of data
   56 bytes from 10.0.1.1: icmp_seq=0 time=0.0 ms
   56 bytes from 10.0.1.1: icmp_seq=1 time=0.0 ms
   56 bytes from 10.0.1.1: icmp_seq=2 time=0.0 ms
   3 packets transmitted, 3 received, 0% packet loss, time 3030 ms
   rtt min/avg/max/mdev = 0.000/0.000/0.000/0.000 ms
   nsh> ping -c 3 10.0.1.3
   PING 10.0.1.3 56 bytes of data
   56 bytes from 10.0.1.3: icmp_seq=0 time=20.0 ms
   56 bytes from 10.0.1.3: icmp_seq=1 time=10.0 ms
   56 bytes from 10.0.1.3: icmp_seq=2 time=10.0 ms
   3 packets transmitted, 3 received, 0% packet loss, time 3030 ms
   rtt min/avg/max/mdev = 10.000/13.333/20.000/4.714 ms
   nsh> ping -c 3 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
   3 packets transmitted, 0 received, 100% packet loss, time 3030 ms
   nsh> ping -c 3 10.0.1.3
   PING 10.0.1.3 56 bytes of data
   56 bytes from 10.0.1.3: icmp_seq=0 time=10.0 ms
   56 bytes from 10.0.1.3: icmp_seq=1 time=10.0 ms
   56 bytes from 10.0.1.3: icmp_seq=2 time=10.0 ms
   3 packets transmitted, 3 received, 0% packet loss, time 3030 ms
   rtt min/avg/max/mdev = 10.000/10.000/10.000/0.000 ms
   nsh> poweroff
   [Inferior 1 (process 2446441) exited normally]
   (gdb) q
   nuttx$ cat .config | grep ARP
   # ARP Configuration
   CONFIG_NET_ARP=y
   CONFIG_NET_ARPTAB_SIZE=16
   CONFIG_NET_ARP_MAXAGE=120
   CONFIG_NET_ARP_MAXAGE_UNREACHABLE=1
   # CONFIG_NET_ARP_IPIN is not set
   # CONFIG_NET_ARP_GRATUITOUS is not set
   CONFIG_NET_ARP_SEND=y
   CONFIG_NET_ARP_SEND_QUEUE=y
   CONFIG_ARP_SEND_MAXTRIES=5
   CONFIG_ARP_SEND_DELAYMSEC=20
   # CONFIG_NET_ARP_ACD is not set
   # end of ARP Configuration
   # CONFIG_NSH_DISABLE_ARP is not set
   ```
   


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