[Winpcap-users] Re: Capture packet from one interface,
send to another interface
Gianluca Varenni
gianluca.varenni at cacetech.com
Fri Aug 10 17:34:18 GMT 2007
----- Original Message -----
From: Uli Muhammad Aulia
To: winpcap-users at winpcap.org
Sent: Monday, August 06, 2007 10:43 AM
Subject: [Winpcap-users] Re: Capture packet from one interface,send to another interface
Hi again,
For the past few hours I've been searching for the answers myself. Luck, I found somethings in this mailing list archive. So, considered all of my previous question already answered. Thanx.
Now, I got another problem. I want to capture packet from multiple interface. From the archives, I know that I have to use pcap_getevent and WaitForMultipleObject (at least that's what I know from this: http://www.winpcap.org/pipermail/winpcap-users/2005-June/000078.html)
When I built the program, I got an error saying: error LNK2001: unresolved external symbol _pcap_getevent
What should I do to solve this problem?
Is there any file to include beside pcap.h for pcap_getevent to work?
It's a linking problem, not a compile problem. Did you add wpcap.lib in the libraries for you project? What compiler are you using? Which version of WinPcap?
Have a nice day
GV
or is there any other way beside using pcap_getevent and WaitForMultipleObject?
the program I wanted to build is just to capture all packet incoming from all available interfaces.
Regards,
Uli
On 8/6/07, Uli Muhammad Aulia <uli at el02itb.org> wrote:
Hi,
I'm very new to winpcap. And since I'm also new to programming world, that makes me a total newbie here :D
There are few things I would like to ask. Here we go.
1. How to open more than one interface at the same time? is it enough just by calling pcap_open_live as much as the number of interfaces?
2. How do I make sure that all the devices are open at the same time?
3. Still in the case of multiple interfaces, how to send packet(s) to a specific interface? also, how to send packet(s) to all interfaces?
Really need some help here.
Regards,
Uli
------------------------------------------------------------------------------
_______________________________________________
Winpcap-users mailing list
Winpcap-users at winpcap.org
https://www.winpcap.org/mailman/listinfo/winpcap-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winpcap.org/pipermail/winpcap-users/attachments/20070810/4e6af84d/attachment.htm
More information about the Winpcap-users
mailing list