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.