I am using pcapdotnet and would like to send a raw ethernet packet. I am working with the sample found here: http://pcapdotnet.codeplex.com/wikipage?title=Pcap.Net%20Tutorial%20-%20Sending%20Packets
I would like to know two things:
- In order to modify this to send mac level packets I need to leave only ethernetLayer in the PacketBuilder constructor?
- How do I load the packet with the raw bit/byte data I want to send in the ethernet packet?
Thank you!
I believe you need to use 2 layers: