Hi Boaz, i have some doubts about EhernetLayer.Write() .
Two days before you told me to use EthernetLayer with correct Destination MAC address, source address and Payload Layer is need to transfer data from one MAC address to another MAC address without using IPAddress.
I am doing as like you told , but the arguments in write() is confusing me
public override void Write(
Here is my sample code ...
IList allDevices = LivePacketDevice.AllLocalMachine;
if (allDevices.Count == 0)
Console.WriteLine("No interfaces found! Make sure WinPcap is installed.");
MacAddress address = LivePacketDeviceExtensions.GetMacAddress(allDevices);
Console.WriteLine("My MAC Address - " + address.ToString());
MacAddress source =address; //source and destination both are same
MacAddress destination = address;
// Ethernet Layer
EthernetLayer ethernetLayer = new EthernetLayer
Source = source,
Destination = destination
I am still in this line , i dont no how to create payload and how to transfer it to destination.
what is PreviousLayer and NextLayer in Write()...
if am any silly question means forgive me, i am beginner but i think this is a big task for me
Thanks in advance