[EMAIL PROTECTED] wrote:
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?
No.
A pcap_t points to an opaque structure, so there is no guarantee that it can be reused by an application for any purpose whatsoever.
Then again, PacketOpenAdapter() returns - and, as far as I know, has always returned - an LPADAPTER, not an LPPACKET. The structure it points to isn't opaque, but there's probably no guarantee *it* can be reused, either.
================================================================== This is the WinPcap users list. It is archived at http://www.mail-archive.com/[EMAIL PROTECTED]/
To unsubscribe use mailto: [EMAIL PROTECTED]
==================================================================
