From: Florian Westphal <fw@strlen.de>
To: Alex Maltinsky <maltalex@gmail.com>
Cc: Florian Westphal <fw@strlen.de>, netfilter-devel@vger.kernel.org
Subject: Re: Negative value in /proc/net/netfilter/nfnetlink_queue
Date: Sun, 26 May 2013 15:42:05 +0200 [thread overview]
Message-ID: <20130526134205.GB6578@breakpoint.cc> (raw)
In-Reply-To: <CAAitQh=1nMc-YPw3xF-+8OV8bjXTumRfZdLjdwC0LrQtJYWdAw@mail.gmail.com>
Alex Maltinsky <maltalex@gmail.com> wrote:
> The system I'm dealing often has traffic spikes that cause NFQ packet
> drops. So I can't put a counter in userspace because it would miss
> dropped packets. Counting dropped packets (as a percentage of the
> total number of packets) is the main reason why I'm trying to get the
> correct number of packets sent to the NFQ in the first place...
As i said, there is no kernel counter that increments per-packet
delivery, except the queue packet id, which is only 32bit (and this
cannot be changed).
You could use the iptables rule count of your 'NFQUEUE' rules,
though since these will increment for every packet (and they're 64bit).
next prev parent reply other threads:[~2013-05-26 13:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAAitQh=ZUM8+8TqO8EFNrT7GL8VThvDje_Vfc4P0e3T60QVpSA@mail.gmail.com>
2013-05-26 10:28 ` Negative value in /proc/net/netfilter/nfnetlink_queue Alex Maltinsky
2013-05-26 10:42 ` Florian Westphal
2013-05-26 12:19 ` Alex Maltinsky
2013-05-26 13:42 ` Florian Westphal [this message]
2013-05-26 13:43 ` Alex Maltinsky
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=20130526134205.GB6578@breakpoint.cc \
--to=fw@strlen.de \
--cc=maltalex@gmail.com \
--cc=netfilter-devel@vger.kernel.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.