All of lore.kernel.org
 help / color / mirror / Atom feed
From: Phil Dibowitz <phil@ipom.com>
To: Patrick McHardy <kaber@trash.net>
Cc: netfilter-devel@lists.netfilter.org, pablo@netfilter.org
Subject: Re: NFCT_Q_DUMP problem
Date: Wed, 14 Mar 2007 17:54:40 -0700	[thread overview]
Message-ID: <20070315005440.GC31683@ipom.com> (raw)
In-Reply-To: <45F89724.1080608@trash.net>

[-- Attachment #1: Type: text/plain, Size: 1518 bytes --]

On Thu, Mar 15, 2007 at 01:45:24AM +0100, Patrick McHardy wrote:
> Phil Dibowitz wrote:
> > So I sat down to write some test code today on the new API, and I found all
> > the nice getter functions, which are awesome... but I can't seem to make the
> > new API work with NFCT_Q_DUMP. I shrunk down my test the bare minimum and
> > nfct_query *always* returns errno for "Address family not supported by
> > protocol" :(
> > 
> > new_api_test.c doesn't test the NFCT_Q_DUMP query, so I'm wondering if it's
> > perhaps a problem in the NFCT_Q_DUMP query type.
> > 
> > Here's some sample code:
> > 
> > [phil@rider nftest]$ cat minitest.c
> > [...]
> >
> > When I run this I get:
> >   [phil@rider nftest]$ sudo ./minitest
> >   dump failed(-1): Address family not supported by protocol
> 
> 
> Works fine for me with latest libnfnetlink/libnetfilter_conntrack.

Pablo's email that I was calling nfct_query() wrong (the last arguement
changes depending on the 2nd arguement), was the problem. Once I fixed that,
it worked.

Thanks!

-- 
Phil Dibowitz                             phil@ipom.com
Open Source software and tech docs        Insanity Palace of Metallica
http://www.phildev.net/                   http://www.ipom.com/

"Never write it in C if you can do it in 'awk';
 Never do it in 'awk' if 'sed' can handle it;
 Never use 'sed' when 'tr' can do the job;
 Never invoke 'tr' when 'cat' is sufficient;
 Avoid using 'cat' whenever possible" -- Taylor's Laws of Programming


[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2007-03-15  0:54 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-12  1:56 libnetfilter_conntrack question Phil Dibowitz
2007-03-12  6:40 ` Phil Dibowitz
2007-03-12 10:14 ` Pablo Neira Ayuso
2007-03-13  7:40   ` Phil Dibowitz
2007-03-13  9:41     ` Pablo Neira Ayuso
2007-03-13 18:34       ` Phil Dibowitz
2007-03-14  7:19       ` NFCT_Q_DUMP problem Phil Dibowitz
2007-03-14 13:17         ` Pablo Neira Ayuso
2007-03-14 16:11           ` Phil Dibowitz
2007-03-15 11:50             ` Pablo Neira Ayuso
2007-03-15  0:45         ` Patrick McHardy
2007-03-15  0:54           ` Phil Dibowitz [this message]
2007-03-15  5:21       ` libnetfilter_conntrack question Phil Dibowitz
2007-03-15 11:36         ` Pablo Neira Ayuso
2007-03-16  8:44           ` Phil Dibowitz
2007-03-16  8:58             ` Patrick McHardy

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=20070315005440.GC31683@ipom.com \
    --to=phil@ipom.com \
    --cc=kaber@trash.net \
    --cc=netfilter-devel@lists.netfilter.org \
    --cc=pablo@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.