On Jun 14, 2004, at 2:34 PM, Jens Munk wrote:

I am using the WinPCap packet driver under all windows versions since
Win98/NT with great success, and I would ideally like to do something
similar under Linux, i.e. the ability to send and receive raw packages. Any
clues on how I do that? Will there ever be a WinPCap for Linux

No. "Win" stands for Windows, so there'll never be a packet capture library called "WinPcap" for OSes that aren't called "Windows".


WinPcap is "libpcap for Windows"; libpcap is a library for UN*Xes, and Linux is a UN*X, so you'd use libpcap. (I.e., it went in the other direction - libpcap was ported to Windows, WinPcap wasn't ported to UN*X.)

The current version of libpcap is 0.8.3, which supports receiving but not sending raw packets. The top-of-tree CVS version of libpcap supports sending raw packets on many platforms, including Linux, so, while the version that comes with most Linux distributions doesn't support sending raw packets, just receiving them, you could download the top-of-tree CVS version from

        http://www.tcpdump.org/

(get the "libpcap-current.tar.gz" file; look for "Current Tar files" on the tcpdump.org home page), compile and install it, and use that (note that it'll install it, by default, under "/usr/local", so you'll have *two* versions of libpcap installed; make sure you compile your program with "-I/usr/local/include" *AND* link with "-L/usr/local/lib", so that it uses the new version). It supports "pcap_sendpacket()" but *NOT* any of the "pcap_sendqueue_" APIs.



==================================================================
This is the WinPcap users list. It is archived at
http://www.mail-archive.com/[EMAIL PROTECTED]/

To unsubscribe use mailto: [EMAIL PROTECTED]
==================================================================

Reply via email to