From: Patrick McHardy <kaber@trash.net>
To: Pablo Neira Ayuso <pablo@netfilter.org>
Cc: Netfilter Development Mailinglist <netfilter-devel@lists.netfilter.org>
Subject: Re: NFNL_NFA_NEST
Date: Fri, 23 Mar 2007 14:00:40 +0100 [thread overview]
Message-ID: <4603CF78.3030501@trash.net> (raw)
In-Reply-To: <4603C5AC.1070808@netfilter.org>
Pablo Neira Ayuso wrote:
> Patrick McHardy wrote:
>
> I implemented a simple conversion function yesterday, so we can get rid
> of it for this library release. Anyhow, I'm still concerned about one
> scenario, since netlink over network messages could be sent between two
> systems A and B with different endianess and different library versions,
> consider that A sent a message that contains one attribute that B
> doesn't know. Thus, the message will not be completely converted by the
> structure aware proxy function in B. Then, the message will probably be
> passed to B's netlink subsystem that will complain about a malformed
> attribute, returning EINVAL. For the conntrackd example, both replicas
> should have the same configuration, so this shouldn't be a problem for
> me, but perhaps other future applications could have problems. Another
> point is that we'll have to cook a structure aware conversion function
> for every netlink messages sent on the wire.
We just need one conversion function, but a structure per nested
attribute, no?
>> Yes, the kernel doesn't need them in any case. Which gives me an
>> idea, we could just stop sending them in userspace and still
>> include them in the kernel, if that makes life easier for you.
>
>
> Yes, but we'll have to remove it sooner or later, so I understand this
> as a temporary solution, isn't it?
Not necessarily. The problem with the NEST bit is the receive
side of the kernel code, the generic stuff can't deal with it.
On the send-side we can simply manually OR it into the type value.
next prev parent reply other threads:[~2007-03-23 13:00 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-21 5:08 NFNL_NFA_NEST Patrick McHardy
2007-03-21 10:04 ` NFNL_NFA_NEST Jozsef Kadlecsik
2007-03-21 10:13 ` NFNL_NFA_NEST Patrick McHardy
2007-03-21 10:39 ` NFNL_NFA_NEST Jozsef Kadlecsik
2007-03-21 22:54 ` NFNL_NFA_NEST Pablo Neira Ayuso
2007-03-22 11:00 ` NFNL_NFA_NEST Patrick McHardy
2007-03-22 13:18 ` NFNL_NFA_NEST Pablo Neira Ayuso
2007-03-22 13:29 ` NFNL_NFA_NEST Patrick McHardy
2007-03-22 16:44 ` NFNL_NFA_NEST Pablo Neira Ayuso
2007-03-22 17:01 ` NFNL_NFA_NEST Patrick McHardy
2007-03-23 12:18 ` NFNL_NFA_NEST Pablo Neira Ayuso
2007-03-23 12:55 ` NFNL_NFA_NEST Pablo Neira Ayuso
2007-03-23 13:01 ` NFNL_NFA_NEST Patrick McHardy
2007-03-23 13:00 ` Patrick McHardy [this message]
2007-03-23 17:37 ` NFNL_NFA_NEST Pablo Neira Ayuso
2007-03-24 10:49 ` NFNL_NFA_NEST Patrick McHardy
2007-03-24 11:30 ` NFNL_NFA_NEST Pablo Neira Ayuso
2007-03-24 14:37 ` NFNL_NFA_NEST 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=4603CF78.3030501@trash.net \
--to=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.