Questions tagged [winpcap]

WinPcap is a discontinued tool for link-layer network access in Windows environments: it allowed applications to capture and transmit network packets bypassing the protocol stack.

WinPcap is a discontinued tool for link-layer network access in Windows environments: it allowed applications to capture and transmit network packets bypassing the protocol stack, and has additional useful features, including kernel-level packet filtering, a network statistics engine and support for remote packet capture.

Project page

361 questions
5
votes
1 answer

Using WinPcap in VC++ programs

I am trying to include WinPcap library in one of my Visual C++ program and I am using Visual Studio 10 Ultimate. In the documentation it says To add a preprocessor definition, you must select Properties from the Project menu, then select C/C++…
Searock
  • 6,278
  • 11
  • 62
  • 98
5
votes
2 answers

How to pass a pointer to a member function to a C function?

Possible Duplicate: Using a C++ class member function as a C callback function I'm writing an object-oriented library using a C library (winpcap). I need to pass the callback function that is called when a network packet arrives as a function…
user1115652
5
votes
3 answers

Getting Machine's MAC Address -- Good Solution?

I've heard it's not possible with my current library of winpcap. Is this really true? I see lots of examples on the net but then comments saying "This doesn't work". What's the best way to get a MAC address of the local machine?
bobber205
  • 12,948
  • 27
  • 74
  • 100
5
votes
2 answers

Capturing packets with nodejs on windows

node.js v0.8.0 , XP / WIN7 (not Cygwin) google and found node_pcap ( https://github.com/mranney/node_pcap ) but it only support osx and linux. is there any module for windows? thanks. .
atian25
  • 4,166
  • 8
  • 37
  • 60
4
votes
1 answer

winpcap silent install

I'm doing an installation setup now. I want to install winpcap.exe silently. Are there any switches for doing it?
karthik
4
votes
3 answers

How can I open a pcap-ng file in C#

Up to now I have been using WinPcap to open pcap files in C#: [DllImport("wpcap.dll", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)] private extern static IntPtr pcap_open_offline(string fname, byte[] errbuf); Now I want to…
pedro.lupin
  • 77
  • 1
  • 5
4
votes
1 answer

Winpcap - pcap_next_ex vs pcap_loop

I have a question, Imagine I have a thread which captures packets and process them itself. With pcap_next_ex: I would use a loop and I would process the packets in each interaction, suppose I call Sleep(200) to simulate the stuff. With pcap_next_ex…
4
votes
1 answer

How similar are Pcap and WinPcap?

I'm trying to do cross-platform development, windows 7 host, QNX Neutrino target. Before trying to get the cross-platform development working, I'd like to test and play around with the code on my host, but Pcap isn't supported on Windows. How…
GreySage
  • 1,153
  • 19
  • 39
4
votes
4 answers

trouble installing pcapy on windows 7 - cannot open include file: 'pcap.h'

I am trying to install pcapy on a Windows machine. I have already installed WinPcap 4.1.3 I downloaded pcapy 0.10.8 into C:\pcapy-0.10.8 When I try to do the install, the following happens: C:\pcapy-0.10.8>c:\Python27\python.exe setup.py…
PurpleVermont
  • 1,179
  • 4
  • 18
  • 46
3
votes
1 answer

How do I install and use WinPcap?

I went to winpcap.org today, downloaded the installer, and installed WinPcap on my Windows 7 laptop PC. However, the folder where it was installed contains only an installation log, an executable called rpcapd.exe, and an uninstall executable. When…
Andrew
  • 466
  • 2
  • 7
  • 22
3
votes
2 answers

Get list of all MAC addresses connected to my router and the IP's

I want to list all the MAC addresses that are connected to my router i know it's possible because i have seen it done. I think all applications use WinPcap for this purpose is there a way i can interface it with my delphi application?
opc0de
  • 11,557
  • 14
  • 94
  • 187
3
votes
3 answers

Packet capturing with C in Windows

I'm fairly new to C programming language and packet capturing. Right now I'm writing a simple program (using Visual Studio 2010 express) to decode a packet trace capture file. I read a number of guides, but most of them are for linux/unix. I managed…
Medardas
  • 531
  • 2
  • 8
  • 21
3
votes
2 answers

Python Packet Sniffer

What Python module should I be using to sniff packets? I don't need anything too complex, I just need to get the data out of some packets being sent to my computer. I am using Python 2.6 and Windows 7, and I have installed WinPcap 4.1.2. So far…
gwenger
  • 1,211
  • 3
  • 12
  • 11
3
votes
1 answer

How to compile PCAP programm without installation require for costumer

I want to compile my libpcap and winpcap based programms, but I noticed that other users also have to install WinPCAP among my programm. How can I compile all necessary files into one programm?
katoge
  • 33
  • 4
3
votes
1 answer

Installing Net::Pcap using strawberry perl on windows 10

I am trying to install Net::Pcap (https://metacpan.org/pod/Net::Pcap) using edition of portable strawberry Perl v5.28.1 ,below are my steps : 1.I installed npcap (winpcap for windows 10 ) from https://nmap.org/npcap/#download 2.I downloaded the…
jsor
  • 97
  • 5
1
2
3
23 24