netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH conntrack-tools] configure: Fix flex version check
@ 2016-06-17 19:17 Shivani Bhardwaj
  2016-06-18 12:42 ` Pablo Neira Ayuso
  0 siblings, 1 reply; 4+ messages in thread
From: Shivani Bhardwaj @ 2016-06-17 19:17 UTC (permalink / raw)
  To: netfilter-devel

Following the fixes for version check in iptables and nftables, make
conntrack-tools avoid generating false warning for Flex version greater
than 2.5.x.

Signed-off-by: Shivani Bhardwaj <shivanib134@gmail.com>
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index c541034..3bc5155 100644
--- a/configure.ac
+++ b/configure.ac
@@ -46,7 +46,7 @@ flex_major=`echo $flex_version| cut -d . -f 1`
 flex_minor=`echo $flex_version| cut -d . -f 2`
 flex_rev=`echo $flex_version| cut -d . -f 3`
  
-if test "$flex_major" -eq "2" && test "$flex_minor" -eq "5" && test "$flex_rev" -ge "33"; then
+if (test "$flex_major" -eq "2" && test "$flex_minor" -eq "5" && test "$flex_rev" -ge "33") || (test "$flex_major" -eq "2" && test "$flex_minor" -gt "5") || test "$flex_major" -gt "2"; then
 	AC_MSG_RESULT([$flex_version. OK])
 else
 	AC_MSG_WARN([flex version $flex_version found.
-- 
2.7.4


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

* Re: [PATCH conntrack-tools] configure: Fix flex version check
  2016-06-17 19:17 [PATCH conntrack-tools] configure: Fix flex version check Shivani Bhardwaj
@ 2016-06-18 12:42 ` Pablo Neira Ayuso
  2016-06-18 16:49   ` Shivani Bhardwaj
  0 siblings, 1 reply; 4+ messages in thread
From: Pablo Neira Ayuso @ 2016-06-18 12:42 UTC (permalink / raw)
  To: Shivani Bhardwaj; +Cc: netfilter-devel

Hi Shivani,

Thanks for following up on this, see comment below.

On Sat, Jun 18, 2016 at 12:47:43AM +0530, Shivani Bhardwaj wrote:
> Following the fixes for version check in iptables and nftables, make
> conntrack-tools avoid generating false warning for Flex version greater
> than 2.5.x.
> 
> Signed-off-by: Shivani Bhardwaj <shivanib134@gmail.com>
> ---
>  configure.ac | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/configure.ac b/configure.ac
> index c541034..3bc5155 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -46,7 +46,7 @@ flex_major=`echo $flex_version| cut -d . -f 1`
>  flex_minor=`echo $flex_version| cut -d . -f 2`
>  flex_rev=`echo $flex_version| cut -d . -f 3`
>   
> -if test "$flex_major" -eq "2" && test "$flex_minor" -eq "5" && test "$flex_rev" -ge "33"; then
> +if (test "$flex_major" -eq "2" && test "$flex_minor" -eq "5" && test "$flex_rev" -ge "33") || (test "$flex_major" -eq "2" && test "$flex_minor" -gt "5") || test "$flex_major" -gt "2"; then
>  	AC_MSG_RESULT([$flex_version. OK])
>  else
>  	AC_MSG_WARN([flex version $flex_version found.

I'm starting to think that it's better to get rid of this version
check. This was introduced in 2008:

        ed50c34 ("add flex version warning (better with >= 2.5.33)")

I can see RPM packages for 2.5.53 since 2008.

The development of conntrack-tools a bit before that time, so I think
it's better to nuke these checks, better since we have less code to
maintain :)

Thanks.

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

* Re: [PATCH conntrack-tools] configure: Fix flex version check
  2016-06-18 12:42 ` Pablo Neira Ayuso
@ 2016-06-18 16:49   ` Shivani Bhardwaj
  2016-06-20  9:45     ` Pablo Neira Ayuso
  0 siblings, 1 reply; 4+ messages in thread
From: Shivani Bhardwaj @ 2016-06-18 16:49 UTC (permalink / raw)
  To: Pablo Neira Ayuso; +Cc: Netfilter Development Mailing list

On Sat, Jun 18, 2016 at 6:12 PM, Pablo Neira Ayuso <pablo@netfilter.org> wrote:
> Hi Shivani,
>
> Thanks for following up on this, see comment below.
>
> On Sat, Jun 18, 2016 at 12:47:43AM +0530, Shivani Bhardwaj wrote:
>> Following the fixes for version check in iptables and nftables, make
>> conntrack-tools avoid generating false warning for Flex version greater
>> than 2.5.x.
>>
>> Signed-off-by: Shivani Bhardwaj <shivanib134@gmail.com>
>> ---
>>  configure.ac | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/configure.ac b/configure.ac
>> index c541034..3bc5155 100644
>> --- a/configure.ac
>> +++ b/configure.ac
>> @@ -46,7 +46,7 @@ flex_major=`echo $flex_version| cut -d . -f 1`
>>  flex_minor=`echo $flex_version| cut -d . -f 2`
>>  flex_rev=`echo $flex_version| cut -d . -f 3`
>>
>> -if test "$flex_major" -eq "2" && test "$flex_minor" -eq "5" && test "$flex_rev" -ge "33"; then
>> +if (test "$flex_major" -eq "2" && test "$flex_minor" -eq "5" && test "$flex_rev" -ge "33") || (test "$flex_major" -eq "2" && test "$flex_minor" -gt "5") || test "$flex_major" -gt "2"; then
>>       AC_MSG_RESULT([$flex_version. OK])
>>  else
>>       AC_MSG_WARN([flex version $flex_version found.
>
> I'm starting to think that it's better to get rid of this version
> check. This was introduced in 2008:
>
>         ed50c34 ("add flex version warning (better with >= 2.5.33)")
>
> I can see RPM packages for 2.5.53 since 2008.
>
> The development of conntrack-tools a bit before that time, so I think
> it's better to nuke these checks, better since we have less code to
> maintain :)
>

Hi Pablo,

Just to avoid any confusion, should I be following up with patches for
iptables and conntrack-tools to completely remove this check? It is
already not there in nft. Please let me know.

Thank you.

> Thanks.

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

* Re: [PATCH conntrack-tools] configure: Fix flex version check
  2016-06-18 16:49   ` Shivani Bhardwaj
@ 2016-06-20  9:45     ` Pablo Neira Ayuso
  0 siblings, 0 replies; 4+ messages in thread
From: Pablo Neira Ayuso @ 2016-06-20  9:45 UTC (permalink / raw)
  To: Shivani Bhardwaj; +Cc: Netfilter Development Mailing list

On Sat, Jun 18, 2016 at 10:19:51PM +0530, Shivani Bhardwaj wrote:
> Hi Pablo,
> 
> Just to avoid any confusion, should I be following up with patches for
> iptables and conntrack-tools to completely remove this check? It is
> already not there in nft. Please let me know.

Yes, please remove this check. So just check for 'flex' with no
specific version as in nft. Thanks!

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

end of thread, other threads:[~2016-06-20  9:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-17 19:17 [PATCH conntrack-tools] configure: Fix flex version check Shivani Bhardwaj
2016-06-18 12:42 ` Pablo Neira Ayuso
2016-06-18 16:49   ` Shivani Bhardwaj
2016-06-20  9:45     ` Pablo Neira Ayuso

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).