From: Pablo Neira Ayuso <pablo@eurodev.net>
To: Harald Welte <laforge@netfilter.org>
Cc: Netfilter Development Mailinglist <netfilter-devel@lists.netfilter.org>
Subject: Re: [PATCH] [LIBNFNETLINK] fixes
Date: Sun, 15 Jan 2006 15:35:41 +0100 [thread overview]
Message-ID: <43CA5DBD.1010507@eurodev.net> (raw)
In-Reply-To: <20060115094521.GG6740@sunbeam.de.gnumonks.org>
[-- Attachment #1: Type: text/plain, Size: 848 bytes --]
Harald Welte wrote:
>>The patch attached fixes two issues in libnfnetlink:
>>
>>- subsys_id was not set in nfnl_subsys_open
>>- set nfnlh->local.nl_pid in nfnl_open since nfnl_talk checks that:
>>h->nlmsg_pid != nfnlh->local.nl_pid
>
> unfortunately no patch attached...
:( sorry about that, patch attached.
>>Now the libnetfilter_conntrack test says OK again ;)
>
> great. sorry for the breakage, but I hope you can appreciate the beauty
> of this new concept. Being able to talk to all nfnetlink subsystems at
> the same time through one socket...
Sure, it's a nice rework. And it's really promising that now we can have
helpers in userspace, as Rusty dreamed in early stages :).
BTW, are we going to distribute the further application helpers
(implemented in userspace) separately or living somewhere in
libnetfilter_cthelper?
--
Pablo
[-- Attachment #2: x --]
[-- Type: text/plain, Size: 867 bytes --]
Index: src/libnfnetlink.c
===================================================================
--- src/libnfnetlink.c (revision 6411)
+++ src/libnfnetlink.c (working copy)
@@ -16,6 +16,10 @@
*
* 2006-01-14 Harald Welte <laforge@netfilter.org>:
* introduce nfnl_subsys_handle
+ *
+ * 2006-01-15 Pablo Neira Ayuso <pablo@netfilter.org>:
+ * set missing subsys_id in nfnl_subsys_open
+ * set missing nfnlh->local.nl_pid in nfnl_open
*/
#include <stdlib.h>
@@ -152,6 +156,10 @@
goto err_close;
}
nfnlh->seq = time(NULL);
+ /*
+ * nfnl_talk checks: h->nlmsg_pid != nfnlh->local.nl_pid
+ */
+ nfnlh->local.nl_pid = getpid();
return nfnlh;
@@ -196,6 +204,7 @@
ssh->nfnlh = nfnlh;
ssh->cb_count = cb_count;
ssh->subscriptions = subscriptions;
+ ssh->subsys_id = subsys_id;
if (recalc_rebind_subscriptions(nfnlh) < 0) {
free(ssh->cb);
next prev parent reply other threads:[~2006-01-15 14:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-15 2:54 [PATCH] [LIBNFNETLINK] fixes Pablo Neira Ayuso
2006-01-15 9:45 ` Harald Welte
2006-01-15 14:35 ` Pablo Neira Ayuso [this message]
2006-01-15 18:12 ` Harald Welte
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=43CA5DBD.1010507@eurodev.net \
--to=pablo@eurodev.net \
--cc=laforge@netfilter.org \
--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.