Send Raw Ethernet Packets to Baremetal on Windows x64 Host

1,454 views
Skip to first unread message

Alessandro

unread,
Jan 16, 2012, 1:22:29 PM1/16/12
to BareMetal OS
Hi,

I'm trying to do a C language program to run on Windows 7 or Windows
Server 2008 64 bits, which send and receive raw Ethernet packets to
BareMetal.

The problem is that Windows does not allow easy access to the network
card or the lower layers for sending raw ethernet packets in user
mode, such as Linux.

I tried two different approaches:

1) Write an NDIS driver: The problem is that the driver for Win x64
must be signed with a certificate and driver signing process is not
trivial, and I have no certificate.

2) Using Winpcap: I tried using the Winpcap but it seems he does not
support adapters tap (Tap Win32 Provider from OpenVPN).

Anyone had any success with these approaches or some other way?

Best regards,

Alessandro

Ian Seyler

unread,
Jan 18, 2012, 2:59:07 PM1/18/12
to BareMetal OS
Something like this: http://www.codeproject.com/KB/IP/sendrawpacket.aspx

I looked into this a while back and it was much too complicated. I
ending up writing the C applications under Linux since it was much
easier to send and receive raw packets. The source code for PackEth
was very useful under Linux.

-Ian

Simon Stevenson

unread,
Jan 20, 2012, 5:41:37 PM1/20/12
to bareme...@googlegroups.com

If you're on Windows Server, you don't have any limitations. 
Reply all
Reply to author
Forward
0 new messages