--On 2 August 2010 19:10:23 +0100 Andrew Beverley <andy@xxxxxxxxxxx> wrote:
You have to use a callback function to read any information back. Before
your nfct_query you should use nfct_callback_register to register a
callback function, which should contain your get_attr calls.
Thanks. I got this working in the end. However, somewhat bizarrely
the relevant information (the internal port number) in the callback is
returned in ATTR_ORIG_SRC_PORT (etc.), despite this being what is
searched on (the external port number). I am a bit confused by this,
but it seems to work.
I am having difficulty finding documentation for this,
The documentation is sparse, but there are some good examples in the
utils folder of the source code. Also, api.c is well commented for each
of the functions.
Thanks. Just to give you a clueless newbie's point of view, I was trying
to find either a web page, or a manpage. Doxygen would clearly help
with the latter. Even a README file that explicitly pointed at api.c
if that's where to look (the current reference is somewhat cryptic -
I thought it was to the .h files) would be a lot better than a poke in
the eye.
--
Alex Bligh
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html