<div dir="ltr">Works perfectly! Thank you both for your help.<div><br></div><div>One last question to make sure I understood everything..</div><div><br></div><div><div style="font-family:arial,sans-serif;font-size:13px">>pkt.data = orig_ptr;</div>
<div style="font-family:arial,sans-serif;font-size:13px">>pkt.size = orig_size;</div></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Why do you set the data back before you free the packet? I tried without it and it seemed to work. Is it needed?</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">-Pauli</div></div>