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
3
votes
2 answers

c++ library for parsing packets with winpcap

is there a c++ opensource library for parsing capturing packets with winpcap specificly the tcp header and data ?
brian
  • 61
  • 1
  • 4
3
votes
2 answers

Install winpcap silently

I want to make a C program which uses winpcap. However, I first need to install the winpcap package into my PC using the installer before I can execute my program. How do I make my program do it (perform the actions of the winpcap installer)…
Jesvin Jose
  • 22,498
  • 32
  • 109
  • 202
3
votes
3 answers

winpcap on linux

I am trying to port an Windows executable to Linux using wine. I am at a point where I can run the executables but it returns some error saying it can't load "npf" driver. Is there a way to also port winpcap on Linux? The application I was trying to…
user195678
  • 535
  • 4
  • 13
  • 27
3
votes
5 answers

Forward UDP packets to several IPs maintaining the original source address

I have a working system that receives data via UDP packets sent to a fixed IP:Port and I want to use a program (some kind of proxy?) to send a copy of those packets to a new IP:Port (or a list of IP:Ports, but all inside the same LAN as the…
Opera362
  • 51
  • 1
  • 4
3
votes
0 answers

Send RAW network packets in Delphi (WinPCap)

I'd like to send RAW network packets from our Delphi application (XE3 to XE5, if important), but I can't find any info whatsoever about using PCap in Delphi at all. How would one do that? There is one Magenta library (sockmon and sockstat,…
That Marc
  • 1,134
  • 3
  • 19
  • 42
3
votes
1 answer

How can I link winpcap in Code Blocks?

Id like to know the process to link the Wincap library and use it in my c++ project im developing in Code Blocks.
Bruce
  • 31
  • 3
3
votes
3 answers

Could anyone suggest a good packet sniffer class for c++?

Could anyone suggest a good packet sniffer class for c++? Looking for a easy insertable class I can use in my c++ program, nothing complicated.
Mike Curry
  • 229
  • 1
  • 5
  • 9
3
votes
1 answer

WiFi Beacon Packets

I'm trying to write a simple C code with WinPcap to broadcast a beacon packet and capture it in all nearby WiFi units. The code I'm using is very similar to the ones available at WinPcap[1]. The code runs fine if I create an ad-hoc network…
Mark Messa
  • 440
  • 4
  • 22
3
votes
1 answer

How do I stop the capture using winpcap?

/* start the capture */ pcap_loop(adhandle, 0, packet_handler, NULL); The above starts the capture,but I don't find a way to stop the capture except exit the programe...
httpinterpret
  • 6,409
  • 9
  • 33
  • 37
3
votes
0 answers

can't capture ppp packets using winpcap sometimes

I am using winpcap on my Windows XP, wishing to capture ppp packets with my WCDMA card. I have installed winpcap 4.1.3 and Microsoft Network Monitor 3.4. I compile the example code basic_dump from the winpcap developer's pack. It can always list…
leebin
  • 31
  • 2
3
votes
1 answer

Winpcap Developer Usage with Cygwin C++ & Netbeans IDE

Looking to get the Winpcap developer pack (4.1.2) running on Windows 7 64-bit. I'm programming in C/C++ in the Netbeans IDE with the Cygwin (4.1.10) compiler. I'd like to directly pull some GPS data from UDP packets instead of using another…
3
votes
1 answer

network analyzer - handling captured pcap files

I'm about to write a program that analyzes network traffic. after searching for answers and not finding any on the net, a few questions: Capturing network traffic - I'm using the winpcap library for the analyzis. does the capture functionality…
Andrei
  • 31
  • 2
3
votes
2 answers

how to know which installed devices has internet connection in WINPCAP?

i have known that winpcap library enabled a person to obtain advanced information about installed devices... given all the networking devices found in the computer, how will i know which one of this has an internet connection?! thanks:)
smarej
  • 31
  • 2
3
votes
5 answers

getting ip address of a packet in pcap file

I am programming with 'winpcap', I read a ".pcap" file in my program and after that I want to get the Ip addresses of packets, I've wrote these code for getting ip addresses,here is the piece of my code: struct sniff_ip { u_char ip_vhl; …
user3210586
  • 81
  • 3
  • 8
3
votes
1 answer

Can't link against WinPcap library wpcap.lib ("undefined reference to")

I am trying to build an example program which uses WinPcap-functions. I’m working under Windows 7 64 Bit edition with MinGW. I am able to compile the C-code to an object file, but I can’t link against wpcap.lib. My linker call looks like this: gcc…
user3035952
  • 301
  • 5
  • 12
1 2
3
23 24