From: tom <tom@t0mb.net>
To: netfilter@vger.kernel.org
Subject: nfq_unbind_pf and nfq_bind_pf return values different in 2.6.23
Date: Thu, 14 Feb 2008 01:46:03 +0000 [thread overview]
Message-ID: <47B39D5B.9080804@t0mb.net> (raw)
Hi,
I haven't touched C for a while now, and have been using python. I used
to rely on python ipqueue, which uses ipq, but it has problems in 64bit,
and rather than fix it myself, I decided to try the netfilter queue, as
implemented in python nfqueue, given that the netfilter queue is
supposed to make ipq obsolete anyhow, and the author of python ipqueue
now recommends nfqueue. Unfortunately, it seems that nfqueue has been
broken as of kernel 2.6.23 due to changes in the return values of
nfq_bind_pf and the unbind equivalent. The code expects 0 to be
returned, and complains of failure otherwise. I was just wondering if
someone could tell me how to interpret the return values and then I can
fix nfqueue.
At the moment, this is the problem unless I just fudge it so it doesn't
bail out at this point:
localhost Wall # python testq.py
NFNETLINK answers: Invalid argument
Traceback (most recent call last):
File "testq.py", line 53, in ?
Queue = NetfilterQueue()
File "testq.py", line 44, in __init__
self.queue = nfqueue.Queue(False)
File "nfqueue.pyx", line 226, in nfqueue.Queue.__new__
StandardError: nfq_unbind_pf failed
If I fudge it so as to just print out the return codes, I get this:
localhost Wall # python testq.py
NFNETLINK answers: Invalid argument
-22
NFNETLINK answers: Device or resource busy
-16
Any help much appreciated. Thanks. Tom.
next reply other threads:[~2008-02-14 1:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-14 1:46 tom [this message]
2008-02-14 19:28 ` nfq_unbind_pf and nfq_bind_pf return values different in 2.6.23 Eric Leblond
2008-02-14 23:38 ` Thomas Boland
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=47B39D5B.9080804@t0mb.net \
--to=tom@t0mb.net \
--cc=netfilter@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox