[Winpcap-users] pcap_open_offline error

Sujay Gupta Sujay_Gupta at infosys.com
Thu Nov 5 20:20:43 PST 2009

Great this works fine.

-----Original Message-----
From: winpcap-users-bounces at winpcap.org [mailto:winpcap-users-bounces at winpcap.org] On Behalf Of Guy Harris
Sent: Thursday, November 05, 2009 12:56 AM
To: winpcap-users at winpcap.org
Subject: Re: [Winpcap-users] pcap_open_offline error

On Nov 4, 2009, at 4:34 AM, Sujay Gupta wrote:

> In all the cases it returns error, as Invalid argument.

pcap_open_offline() doesn't support URLs, only paths.  Try

	strcpy(source, "c:\\test.pcap");

or use pcap_open(), which supports URLs.
Winpcap-users mailing list
Winpcap-users at winpcap.org

More information about the Winpcap-users mailing list