Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Oumer Teyeb <oumer@kom.auc.dk>
To: netfilter@lists.netfilter.org
Subject: memory cleanup after setverdict
Date: Mon, 13 Oct 2003 14:24:10 +0200	[thread overview]
Message-ID: <3F8A996A.6020707@kom.auc.dk> (raw)

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



                 reply	other threads:[~2003-10-13 12:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3F8A996A.6020707@kom.auc.dk \
    --to=oumer@kom.auc.dk \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox