All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pablo Neira <pablo@eurodev.net>
To: Harald Welte <laforge@netfilter.org>
Cc: Netfilter Development Mailinglist
	<netfilter-devel@lists.netfilter.org>,
	Patrick McHardy <kaber@trash.net>
Subject: Re: [PATCH] CTA_PROTO_NUM is u_int8_t not u_int16_t (was Re:	CTA_PROTO_NUM u_int8_t or u_int16_t)
Date: Wed, 23 Nov 2005 02:15:53 +0100	[thread overview]
Message-ID: <4383C2C9.8050109@eurodev.net> (raw)
In-Reply-To: <20051122220606.GC31478@sunbeam.de.gnumonks.org>

Harald Welte wrote:
> On Tue, Nov 22, 2005 at 09:29:51PM +0100, Krzysztof Oledzki wrote:
> 
>>On Tue, 22 Nov 2005, Pablo Neira wrote:
>>
>>
>>>Patrick McHardy wrote:
>>>
>>>>Pablo Neira wrote:
>>>>
>>>>>Patrick McHardy wrote:
>>>>>
>>>>>>If you have to break compatibility, please do it before 2.6.15 is
>>>>>>released. But the easiest solution looks like keeping it a u_int16_t
>>>>>>and adjusting the NFA_PUT.
>>>>>
>>>>>I think that I can fix it in nf_conntrack_netlink. ip_conntrack_netlink
>>>>>will go sooner or later.
>>>>
>>>>I'm not sure that will be an avantage to breaking it immediately.
>>>>People should be able to use ctnetlink application with nfctnetlink,
>>>>so it will still break, but at that point the interface will already
>>>>be more established. We could just leave it a u_int16_t, but it won't
>>>>be in network byte order as the other attributes, which IMO needs to
>>>>be fixed if we ever want to use ctnetlink over the network without
>>>>adding lots of code in userspace just to fix up this single field.
>>>
>>>Better to fix it, break backward compatibility now and forget about this
>>>issue.
>>
>>Isn't it possible to add kernel version checking into libnetfilter_conntrack and send 
>>CTA_PROTO_NUM as u_int16_t under 2.6.14 and as u_int8_t under 2.6.15+? The protonum is 
>>alredy defined as u_int8_t in struct nfct_tuple (libnetfilter_conntrack.h).
> 
> 
> It can be fixed without any compatibility issues, at least in one
> direction.
> 
> If the new kernel accepts both a 8 bit and 16bit value, then new
> userspace programs (who send 8bit) and old userspace programs would run
> on new kernels.  only for old kernels you need the old app.
> 
> another alternative was to introduce a new CTA_PROTO_NUM8 value, which
> is more explicit (but somehow stupid).

Why don't we send a patch to -stable? I think that most people will use
lastest stable branch in 2.6.14, so only < 2.6.14.3 would be broken. I
still don't like too much the idea of adding a new field just because of
this bugfix :(

-- 
Pablo

  parent reply	other threads:[~2005-11-23  1:15 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-21 14:40 CTA_PROTO_NUM u_int8_t or u_int16_t Krzysztof Oledzki
2005-11-21 14:53 ` Pablo Neira
2005-11-21 17:03   ` Patrick McHardy
2005-11-21 17:48     ` Pablo Neira
2005-11-21 21:26       ` Krzysztof Oledzki
2005-11-22  4:42       ` Patrick McHardy
2005-11-22 19:04         ` [PATCH] CTA_PROTO_NUM is u_int8_t not u_int16_t (was Re: CTA_PROTO_NUM u_int8_t or u_int16_t) Pablo Neira
2005-11-22 20:29           ` Krzysztof Oledzki
2005-11-22 22:06             ` Harald Welte
2005-11-23  1:06               ` Patrick McHardy
2005-11-23  1:15               ` Pablo Neira [this message]
2005-11-23  9:47                 ` Patrick McHardy
2005-11-23 10:31                   ` Krzysztof Oledzki
2005-11-24 20:07                     ` Harald Welte
2005-11-24 20:21                       ` Harald Welte
2005-11-24 23:24                         ` Krzysztof Oledzki
2005-11-24 23:33                         ` Patrick McHardy
2005-11-24 23:54                           ` Krzysztof Oledzki
2005-11-25  0:11                             ` Patrick McHardy
2005-11-25  0:22                               ` Pablo Neira
2005-11-25  0:26                                 ` Krzysztof Oledzki
2005-11-25  0:28                               ` Krzysztof Oledzki
2005-11-25  8:44                             ` Harald Welte
2005-11-25  9:23                               ` Krzysztof Oledzki
2005-11-25 11:09                                 ` Harald Welte
2005-11-25 13:25                                 ` Patrick McHardy
2005-11-26  0:16                                   ` Pablo Neira Ayuso
2005-11-27 22:28                                     ` Krzysztof Oledzki
2005-11-29  4:09                                       ` Harald Welte
2005-11-29 23:07                                         ` Patrick McHardy
2005-12-04  3:31                                           ` Pablo Neira Ayuso
2005-12-04 16:05                                             ` Patrick McHardy
2005-12-04 16:35                                               ` Patrick McHardy
2005-12-04 19:48                                               ` [PATCH] CTA_PROTO_NUM is u_int8_t not u_int16_t David S. Miller
2005-12-04 20:02                                                 ` Patrick McHardy
2005-12-04 20:20                                                   ` David S. Miller
2005-12-13  9:56                                           ` [PATCH] CTA_PROTO_NUM is u_int8_t not u_int16_t (was Re: CTA_PROTO_NUM u_int8_t or u_int16_t) Krzysztof Oledzki
2005-12-13 11:22                                             ` Patrick McHardy
2005-12-13 11:32                                               ` Pablo Neira Ayuso
  -- strict thread matches above, loose matches on Subject: below --
2005-12-13 11:26 [PATCH] CTA_PROTO_NUM is u_int8_t not u_int16_t (was Re: CTA_PROTO_NUM u_int8_t or u_int16_t)] Patrick McHardy
2005-12-13 11:51 ` Krzysztof Oledzki

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=4383C2C9.8050109@eurodev.net \
    --to=pablo@eurodev.net \
    --cc=kaber@trash.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.