Capturing packet through Ethernet using Pcap

Jun 9, 2014 at 6:58 AM
I am building a GUI to capture packets through Ethernet.

I want pass the received packet in the form of Byte[] and its length through a function for its further processing. so i want to ask in which format packet is captured by pcap i.e. byte[] or any other format.
Coordinator
Jun 20, 2014 at 6:46 AM
Hi rkt_167,

If you want the underlying byte[] you can just call Packet.Buffer property.

Boaz.