Arduino as pcap playback player

I want to use the Arduino Ethernet platform to playback the pcap files over the network in the real time. The pcap file is located in the sd card. The steps of doing this are as follows

  • read the pcap file packet by packet
  • packet has all the information of the sender and receiver MAC addresses.
  • Send the packet over the ethernet as raw ethernet packet.

Now can you guide me how i can read the pcap files from the SD card in arduino and read the full packet of 126 bytes. I have read some blogs and i can read byte by byte but is there any library which can handle the pcap files reading.

I doubt there is anything useful handling pcaps on hardware restricted arduino platforms. You should furthermore think about the packet rate - arduinos are slow.

Anyway, you can read it by yourself: PCAP Next Generation Dump File Format

Maybe the libpcap sources are helpful: GitHub - the-tcpdump-group/libpcap: the LIBpcap interface to various kernel packet capture mechanism