Question

I'm "trying" to study the Pcap library. Currently I'am using a Windows machine so I downloaded the Winpcap Dev pack. I would like to know the content of the function pcap_sendpacket. I searched the source files in the Winpcap Dev pack and only found the function in a header file, which doesn't contain the body of the function. I suspect the function is defined in the winpcap.dll file, but I can't find the source file for this DLL.

The question is, if the Winpcap project is opensource why the source code for all the files isn't published by the creators?

I mean, may be I am missing something, don't know, I am a newbie.

By the way, I found the function body in the libpcap library but this library is for linux not windows.

Thanks for your help!

Was it helpful?

Solution

I downloaded 4.1beta5_WpcapSrc.zip from http://www.winpcap.org/archive/ and that appears to contain full source code. The function you refer to, pcap_sendpacket is defined in wpcap\libpcap\pcap.c.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top