I have a small FPGA that needs to communicate with a C program running on a Ubuntu Machine via ethernet. The FPGA is too small to use TCP etc. I can send frames and pick them up in wireshark using just the MAC address of the ethernet port but to communicate with the C I need to use a RAW Socket however in creating the socket it needs a protocol value, is there any protocol that would allow me to communicate solely using the MAC address.
The frames have the following structure
Destination MAC address
Source MAC address
Protocol - 0x55aa
Data
If you use
PF_PACKETinstead ofPF_INETthen your0x55aavalue is your protocol number: