pcap_open() missing in WinPcap

When you download pcap developer pack from winpcap.org (newest one is v4.1.2) you also get docs and examples.

In the docs you have a tutorial that shows how to use pcap_open() with PCAP_OPENFLAG_PROMISCUOUS, but it's impossible to compile because the headers don't have that function nor do they define the open flags.

But the example code uses pcap_open_live() (and instead of PCAP_OPENFLAG_PROMISCUOUS it uses 1, because this constant is not defined), which is defined in the header.

I have used pcap_open() a long time ago, so I know the code in the tutorial is valid, but I don't get why is it missing from pcap.h and if it isn't included anymore why is it still in the tutorial?
Last edited on
Topic archived. No new replies allowed.