----- Original Message ----- 
From: "{Pedro Lucas-Suporte Netcount}" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 07, 2004 3:08 PM
Subject: Re: [WinPcap-users] COMPATIBILITY PROBLEM BETWEEN STRUCTURES PCAP_T
& LPPACKET


> Hi Phil
>
> I didn't get <why> you say you can no longer use the lower level API of
> packet.dll/packet32.h ?

Maybe he refers to the note in the WinPcap documentation about the Packet
API:

---------------------------------------------
Important note, read carefully!

If you are writing a capture application and you do not have particular/low
level requirements, you are recommended to use the functions of wpcap, that
are compatible with the ones of the Unix packet capture library (libpcap),
instead of the API described in this chapter. wpcap.dll relies on
packet.dll, but provides a more powerful, immediate and easy to use
programming environment. With wpcap.dll, operations like capturing a packet,
creating a capture filter or saving a dump on a file are safely implemented
and intuitive to use.  Moreover, the programs written to use libpcap are
easily compiled on Unix thanks to the compatibility between Win32 and Unix
versions of this library.
As a consequence, since the normal and suggested way for an application to
use WinPcap is through wpcap.dll, we cannot guarantee that the packet.dll
API will not be changed in the future releases.
---------------------------------------------

Have a nice day
GV


>
> I, for example, am using the API PacketOpenAdapter, etc, and not relying
at
> all in wpcap upper layer functions, and it works OK with Windows XP and
VC7.
> So you should be able to use LPADAPTER, LPPACKET, 'PacketopenAdapter',
> PacketReceivePacket, etc.
> The only thing you need to bother nowadays is the UNICODE/ASCII format for
> the strings returned by 'PacketopenAdapter'. Before Winpcap 3.1, it was
> UNICODE. Now it is ASCII.
>
> Pedro
>
> ----- Original Message ----- 
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, October 06, 2004 3:02 PM
> Subject: [WinPcap-users] COMPATIBILITY PROBLEM BETWEEN STRUCTURES PCAP_T &
> LPPACKET
>
>
> >
> >
> > Hi all,
> > Since 4 weeks I've been doing my own experience of Winpcap (Its exported
> > functions) and Packet32.h (Its routines). I am working with a
> self-programmed
> > sniffer tool that was developped under Windows NT 4.0 with VC 6 as an
MFC
> > project. The sniffer tool used since then packet32.h (but not the
version
> that
> > is provided when downloading the developper's pack on the official site
of
> > Winpcap). As you can imagine, this sniffer tool coupled with such system
> of
> > capture is incompatible, thus not working anymore under windows XP.
> Therefore,
> > I tried to update the tool under VC 6 buy emmbedding exported functions
of
> > wpcap.dll in the script. So far, all was ok since I am able to list
> devices on
> > the local machine, open a device, print the packets and their contents.
> >
> > My problem is now the following. The former part of the script accessing
> the
> > adapter, was calling 'PacketopenAdapter'. This returns a pointer on an
> object of
> > type structure LPPACKET. This object was reused to store packets in a
> buffer so
> > that the program could assess them afterwards (PacketSendPacket or
> > PacketReceivePacket were taking the object as argument). Now, I access
the
> > adapter via Pcap_open and it returns a pointer on an object of type
> structure
> > pcap_t. Is there any compatiblity between what is returned by Pcap_open
> and what
> > is returned by PacketOpenAdapter?
> >
> > Any help will be mostly appreciated,
> >
> > Regards,
> >
> > Filip.
> >
> >
> > ==================================================================
> >  This is the WinPcap users list. It is archived at
> >  http://www.mail-archive.com/[EMAIL PROTECTED]/
> >
> >  To unsubscribe use
> >  mailto: [EMAIL PROTECTED]
> > ==================================================================
>
>
>
> ==================================================================
>  This is the WinPcap users list. It is archived at
>  http://www.mail-archive.com/[EMAIL PROTECTED]/
>
>  To unsubscribe use
>  mailto: [EMAIL PROTECTED]
> ==================================================================





==================================================================
 This is the WinPcap users list. It is archived at
 http://www.mail-archive.com/[EMAIL PROTECTED]/

 To unsubscribe use 
 mailto: [EMAIL PROTECTED]
==================================================================

Reply via email to