[Winpcap-users] Re: Capture packet from one interface, send to another interface

Uli Muhammad Aulia uli at el02itb.org
Mon Aug 6 17:43:29 GMT 2007


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?
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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winpcap.org/pipermail/winpcap-users/attachments/20070806/2b0da2c8/attachment.htm


More information about the Winpcap-users mailing list