Gobliins
Gobliins

Reputation: 4026

Ethernet Frames or MAC Broadcasts with C# or C in windows (xp)

after reading:

How send raw ethernet packet with C#?

I still have questions:

Is it possible to do broadcasts or send your own ethernet frames on layer 2 with C# or C without having winpcap installed or/and without manipulating the installed drivers?

As for Broadcast, I could run a process with the arp -a command and parse its output, maybe it will work.

But still the issue with the ethernet packets.

Upvotes: 2

Views: 1615

Answers (1)

Brad
Brad

Reputation: 163334

You can't... at least not directly as you are asking.

Windows provides no API to access layer 2 directly. To do this, you would need to write an NDIS protocol driver. If you are interested in taking on this task, start here: http://msdn.microsoft.com/en-us/library/windows/hardware/ff557050(v=vs.85).aspx

For utility-like software, the best thing to do is to bundle one of the drivers listed in that question you linked to.

Upvotes: 3

Related Questions