All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dan Good <nfdevel@gooddan.com>
To: netfilter-devel@lists.netfilter.org
Subject: ipq_flush doesn't work with NF_ACCEPT?
Date: Tue, 11 Oct 2005 14:42:22 -0400	[thread overview]
Message-ID: <E1EPP4w-0003Ly-00@skip.gooddan.com> (raw)

Hi everyone,

I'm new to the list and am looking for some help.  I wanted to
try a scenario where, if the user space program reading the
queue died, the remaining packets in the queue would be accepted
instead of dropped.  To that end, I made a small change to
ip_queue.c in __ipq_reset to change the arg to __ipq_flush
from NF_DROP to NF_ACCEPT (diff below, based on linux 2.6.12
version).

The result seems to be that, no matter how many packets are
in the queue, only the first one arrives at the destination.
Please, can anyone shed some light on this?  Thanks.


--- ip_queue.c.bak      Tue Oct 11 14:40:46 2005
+++ ip_queue.c  Tue Oct 11 14:40:56 2005
@@ -169,13 +169,13 @@
 static inline void
 __ipq_reset(void)
 {
        peer_pid = 0;
        net_disable_timestamp();
        __ipq_set_mode(IPQ_COPY_NONE, 0);
-       __ipq_flush(NF_DROP);
+       __ipq_flush(NF_ACCEPT);
 }
 
 static struct ipq_queue_entry *
 ipq_find_dequeue_entry(ipq_cmpfn cmpfn, unsigned long data)
 {
        struct ipq_queue_entry *entry;

                 reply	other threads:[~2005-10-11 18:42 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=E1EPP4w-0003Ly-00@skip.gooddan.com \
    --to=nfdevel@gooddan.com \
    --cc=netfilter-devel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.