* memory cleanup after setverdict
@ 2003-10-13 12:24 Oumer Teyeb
0 siblings, 0 replies; only message in thread
From: Oumer Teyeb @ 2003-10-13 12:24 UTC (permalink / raw)
To: netfilter
Hi,
I thought once the set verdict is called, the ipq_packet_msg_t param
that was holding the packet will be freed by libipq. but I can access it
after the setverdict is called, and also the data I have copied. For
example, in a code like this
ipq_packet_msg_t *m = ipq_get_packet(buf);
ipq_set_verdict(handler, m->packet_id, NF_ACCEPT, 0, NULL);
fwrite ((usnigned int *) (m+1), 1, m->data_len, file);
I expected the third call to fail, but it doesn't. Then when is the
memory used by the ipq_packet_msg_t parameter freed? Or am I responsible
for freeing it myself?
Regards,
Oumer
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-10-13 12:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-13 12:24 memory cleanup after setverdict Oumer Teyeb
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox