The buffer received by the callback must be considered valid only in the callback itself: WinPcap recycles it to store successive packets. Why do you need to queue the packet instead of processing it in the callback? It's a quite unusual approach...
Loris > Hi, > > When using pcap_loop, the callback function receives a > pointer to the packet data. What is the scope of this > memory segment containg packet data. I want to know > this because I want to queue this packet so as to > process it when it's turn comes. So, do I need to > copy this packet data to new location before inserting > it into the queue or can I just queue the pointer to > that data. > > Thanks, > Nitesh > > __________________________________________________ > Do You Yahoo!? > Yahoo! Finance - Get real-time stock quotes > http://finance.yahoo.com > > > ================================================================== > This is the WinPcap users list. It is archived at > http://www.mail-archive.com/[email protected]/ > > To unsubscribe use > mailto: [EMAIL PROTECTED]?body=unsubscribe > ================================================================== ================================================================== This is the WinPcap users list. It is archived at http://www.mail-archive.com/[email protected]/ To unsubscribe use mailto: [EMAIL PROTECTED]?body=unsubscribe ==================================================================
