chuckfa said:I'm not sure how to send the request to the m1.
Well, I guess it depends at what level you are trying to write your program. Not to split hairs, but with an ARP request, you really aren't sending the request to the M1 board itself, but rather out over the ethernet network to the XEP interface that is connected to the M1.
In Windows and Linux, there is a command line arp command that you can issue to get the mapping of IP addresses to MAC addresses. This is probably the easiest way to do things, especially if you are writing a script.
If you are programming at a lower level, you can interface directly to the IP socket layer of software. But then you need to build your own arp packets and process the response. Here's an example of how you might to this.
In Windows, there is a SendARP function that does most of the work for you.