Re: nomatch in bitmap:* sets

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 8 Apr 2012, Mr Dash Four wrote:

> > > Currently only hash:* sets have the "nomatch" feature. Could this be
> > > extended to bitmap:* sets as well?
> > >     
> > 
> > Actually, hash:*net* types have the "nomatch" feature. How would it make
> > sense to add it to the bitmap:* types too?
> >   
> I was thinking along the lines of this:
> 
> 1. bitmap:port - currently, if I want to exclude specific ports from a given
> range (say ports 21,80,119,443 from ports range 1-1023) then I have to do the
> following:
> n test-ports bitmap:port range 1-1023 timeout 0
> a test-ports 1-20
> a test-ports 22-79
> a test-ports 81-118
> a test-ports 120-442
> a test-ports 444-1023
> 
> Very inconvenient and it is not immediately obvious which ports have been
> excluded from that range. By doing something like this:
> n test-ports bitmap:port range 1-1023 timeout 0
> a test-ports 1-1023
> a test-ports 21 nomatch
> a test-ports 80 nomatch
> a test-ports 119 nomatch
> a test-ports 443 nomatch
> 
> it is much more clearer what is going on.

That's equivalent with

n test-ports bitmap:port range 1-1023 timeout 0
a test-ports 1-1023
d test-ports 21
d test-ports 80
d test-ports 119
d test-ports 443

Therefore I don't see the point of the "nomatch" flag for the bitmap:*
types.

Best regards,
Jozsef
-
E-mail  : kadlec@xxxxxxxxxxxxxxxxx, kadlecsik.jozsef@xxxxxxxxxxxxx
PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address : Wigner Research Centre for Physics, Hungarian Academy of Sciences
          H-1525 Budapest 114, POB. 49, Hungary
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux