Hi folks,
I have downloaded some of the test programs etc from netgroup-serv.polito.it
and have played around a bit with the example programs. The example programs
work great.
What I would like to do (being the non C/C++/C# or any other version of C
that I am) is to set up declare statements in VB (I have VB6) that I could
use to call the functions.
I have experimented around with a number of the functions, but none of them
quite seem to work for me.
In the sample programs from netgroup..., I have tried to translate a couple
of them to VB using Declares. The one that I think would be the easiest to
use has the following functions: This is from testapp.c
PacketGetAdapterNames
PacketOpenAdapter
PacketSetHwFilter
PacketSetBuff
PacketInitPacket
PacketReceivePacket
PacketGetStats (which I don't need or want)
PacketFreePacket
PacketCloseAdapter
Also I would need to come up with proper types (structures) for LPADAPTER
and LPPACKET. These use packet.dll.
The other is from pktdump.c and uses the following:
pcap_open_live
pcap_loop
For this one, it uses structure of pcap (which I haven't found defined
anywhere). I assume because wpcap.dll is loaded as needed, it is defined in
there, and not anywhere else.
I'm trying to write an update to a packet capture program that runs in DOS
(yes, pre-Windows), so I just need to capture the packets, then I know what
I'm doing.
If you can give any help, I'd appreciate it. If this is for real programmers
(who don't VB, but use C), then I'll understand, and go on to other things
:)
Mark
-
This is the TCPDUMP workers list. It is archived at
http://www.tcpdump.org/lists/workers/index.html
To unsubscribe use mailto:[EMAIL PROTECTED]?body=unsubscribe