netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Q] iptables AH module api mismatch between -master and 1.4.7
@ 2015-07-15 12:15 Cyrill Gorcunov
  2015-07-15 13:10 ` Jan Engelhardt
  0 siblings, 1 reply; 3+ messages in thread
From: Cyrill Gorcunov @ 2015-07-15 12:15 UTC (permalink / raw)
  To: netfilter-devel
  Cc: vzdevel, Pavel Emelyanov, Konstantin Khorenko, Jan Engelhardt

Hello! Could you clarify please the following aspect: before the commit

 | commit 6944f2c8190f1c4319aeac748470c71b0ba45025
 | Author: Jan Engelhardt <jengelh@medozas.de>
 | Date:   Tue May 24 23:50:29 2011 +0200
 |
 |    libxtables: have xtopt_parse_mint interpret partially-spec'd ranges
 |
 |    When ":n" or "n:" is specified, it will now be interpreted as "0:n"
 |    and "n:<max>", respecitvely. nvals will always reflect the number of
 |    (expanded) components. This restores the functionality of options that
 |    take such partially-unspecified ranges.
 |
 |    This makes it possible to nuke the per-matchdata init functions of
 |    some extensions and simply the extensions postparsing to the point
 |    where it only needs to check for nvals==1 or ==2.
 |
 |    Signed-off-by: Jan Engelhardt <jengelh@medozas.de>

if the AH module has no --ahspi argument passed to iptables then it
became [0;0xffffffff] by default, but in -master branch it becomes
[0;0] instead, which implies that if iptables-save is called with
latest -master branch it should not be used with old (1.4.7)
iptables-restore otherwise the kernel would see different --ahspi
ranges. Thus (if only I'm not missing something obvious) this is
abi breakage and old behaviour should be fixed (I'm gonna prepare
a patch for that but would love to know first if it's needed)?

	Cyrill

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Q] iptables AH module api mismatch between -master and 1.4.7
  2015-07-15 12:15 [Q] iptables AH module api mismatch between -master and 1.4.7 Cyrill Gorcunov
@ 2015-07-15 13:10 ` Jan Engelhardt
  2015-07-15 13:19   ` Cyrill Gorcunov
  0 siblings, 1 reply; 3+ messages in thread
From: Jan Engelhardt @ 2015-07-15 13:10 UTC (permalink / raw)
  To: Cyrill Gorcunov
  Cc: netfilter-devel, vzdevel, Pavel Emelyanov, Konstantin Khorenko


On Wednesday 2015-07-15 14:15, Cyrill Gorcunov wrote:

>Hello! Could you clarify please the following aspect: before the commit
>
> | commit 6944f2c8190f1c4319aeac748470c71b0ba45025
>
>if the AH module has no --ahspi argument passed to iptables then it
>became [0;0xffffffff] by default, but in -master branch it becomes
>[0;0] instead

That is unintentional. Just posted a patch with which I think
this is remedied.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Q] iptables AH module api mismatch between -master and 1.4.7
  2015-07-15 13:10 ` Jan Engelhardt
@ 2015-07-15 13:19   ` Cyrill Gorcunov
  0 siblings, 0 replies; 3+ messages in thread
From: Cyrill Gorcunov @ 2015-07-15 13:19 UTC (permalink / raw)
  To: Jan Engelhardt
  Cc: netfilter-devel, vzdevel, Pavel Emelyanov, Konstantin Khorenko

On Wed, Jul 15, 2015 at 03:10:49PM +0200, Jan Engelhardt wrote:
> 
> On Wednesday 2015-07-15 14:15, Cyrill Gorcunov wrote:
> 
> >Hello! Could you clarify please the following aspect: before the commit
> >
> > | commit 6944f2c8190f1c4319aeac748470c71b0ba45025
> >
> >if the AH module has no --ahspi argument passed to iptables then it
> >became [0;0xffffffff] by default, but in -master branch it becomes
> >[0;0] instead
> 
> That is unintentional. Just posted a patch with which I think
> this is remedied.

Thank you!

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-07-15 13:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-15 12:15 [Q] iptables AH module api mismatch between -master and 1.4.7 Cyrill Gorcunov
2015-07-15 13:10 ` Jan Engelhardt
2015-07-15 13:19   ` Cyrill Gorcunov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).