Skip to content

Conversation

@HedongGao
Copy link
Contributor

Summary

Nuttx use IFF_NOARP as a packet config, this is illogical and no longer in line with user habits.
Referring to the ARP configuration method of Linux, Nuttx has added the ability to configure ARP on interface.

Impact

Referring to the custom of configuring ARP on Linux interfaces, the 'arp/- app' parameter has been added to the ifconfig command.
When the ARP function of an interface is turned off, the net stack will discard ARP messages received from that interface, and the protocol stack will not send messages to the outside through that interface.

Testing

When compiling nuttx, open the ping tool for functional testing.

Set up a SIM environment, sim and host can ping each other successfully.
After using the command 'ifconfig eth0 -arp', the ping between sim and host failed. The packet capture shows that sim cannot process APR request messages or send ARP request messages.
Then use 'ifconfig eth0 arp' to enable arp fuction for eth0, sim and host can ping each other again.

@HedongGao
Copy link
Contributor Author

This PR depends on another PR

@xiaoxiang781216
Copy link
Contributor

@HedongGao please fix:

    1: .codespellrc
/home/runner/work/nuttx-apps/nuttx-apps/apps/nshlib/nsh_netcmds.c:150: ther ==> there, their, the, other
Some checks failed. For contributing guidelines, see:

ARP can be configured on interface

Signed-off-by: gaohedong <gaohedong@xiaomi.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants