I'm trying to use Raw Ethernet Sockets to implement the ARP protocol. In the Ethernet header of an ARP packet, the Type is 0x806. However, socket() returns an error if I use 0x806 for the protocol, because it thinks that's IPv6. What should I pass for the protocol parameter of socket()?
This is for the ADAS S28, SYS/BIOS 6_35_04_50, ndk_2_22_03_20.