Hi all,
I used the "packet.dll"-exported functions to create something like this:
m_Adapter = PacketOpenAdapter( (PSTR)m_szDriver.mbc_str().data() );
...
if ( PacketSetHwFilter( m_Adapter, NDIS_PACKET_TYPE_ALL_LOCAL ) == FALSE )
...
if ( PacketSetBuff( m_Adapter, 512000 ) == FALSE )
...
if( (m_Packet = PacketAllocatePacket()) == NULL )
...
PacketInitPacket(m_Packet, (char*)m_buffer, 256000);
Then inside a thread I do the following:
if ( PacketReceivePacket(m_Adapter,m_Packet,TRUE) == FALSE )
...
What I want to get from the LPPACKET (m_Packet) is the port and/or source and/or
destination address... Is that possible ?
Thanks!
--
Steven 'KaReL' Van Ingelgem
http://www.karels0ft.be/
ICQ: 35217584
==================================================================
This is the WinPcap users list. It is archived at
http://www.mail-archive.com/[email protected]/
To unsubscribe use
mailto: [EMAIL PROTECTED]
==================================================================