<div>Hello all, I am using WinPcap to test out some raw packet injection for a project that uses a custom protocol. I started from the code here:</div>
<div><font color="#008000" size="2"><font color="#008000" size="2"><a href="http://www.codeproject.com/KB/IP/UDPandWPCAP.aspx">http://www.codeproject.com/KB/IP/UDPandWPCAP.aspx</a></font></font></div>
<div><font color="#008000" size="2"><font color="#008000" size="2"></font></font> </div>
<div><font color="#008000" size="2"><font color="#008000" size="2">However, I am currently searching for memory leaks and I noticed that when I looked at my app in task manager it was increasing its memory usage like crazy. I wanted to see what was causing the memory usage, and my first notion was that packets weren't getting freed somewhere. So I swapped out my packet_handler() function for the example one which comes in basic_dump.c, and switched my libraries to 4.1.1.</font></font></div>
<div><font color="#008000" size="2"><font color="#008000" size="2"></font></font> </div>
<div><font color="#008000" size="2"><font color="#008000" size="2">It still seems that memory just keeps going up and up. I know that I'm not supposed to free the pkt_data pointer myself, so is there some config I should know about or something so that WinPcap doesn't just keep increasing in size? (Also, FYI, I have my filter set to only allow my specific packet types, and I am using wireshark to watch along that there are only my packets coming in for that filter setting).</font></font></div>
<div><font color="#008000"></font> </div>
<div><font color="#008000">Cheers<br></font></div>
<div><font color="#008000">Angie V.</font></div><font size="2"><font size="2"></font></font>