What "packet" does NE2000 actually use?
Posted: Wed Sep 30, 2015 6:07 am
Yes, I know that the NE2000 sends and receives ethernet packets. However, loooking at wikipedia ( https://en.wikipedia.org/wiki/Ethernet_frame ) it talks about a specific format of an ethernet frame, which start with a preamable etc. However, looking at Linux code, I could only find one structure relating to Ethernet packets: this structure contains only the source MAC address, destination MAC address, and the EtherType.
This is where my confusion arises. Should an NE2000 driver pass payload within this header structure that Linux defines, or should it create a full Ethernet frame as given on that wikipedia article? (And, I assume, the format of received packets is exactly the same as the format of sent packets?)
This is where my confusion arises. Should an NE2000 driver pass payload within this header structure that Linux defines, or should it create a full Ethernet frame as given on that wikipedia article? (And, I assume, the format of received packets is exactly the same as the format of sent packets?)