Re: [exim] quick IP masking question

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Philip Hazel
Data:  
Para: John Jetmore
CC: exim-users
Asunto: Re: [exim] quick IP masking question
On Tue, 24 Oct 2006, John Jetmore wrote:

> I missed the potential importance of match_ip test being added. The
> following two tests seem to be whole equivilants of each other.
>
> ${if match_ip{192.168.10.188}{192.168.10.160/27} {yes}{no} }
>
> ${if eq {${mask:192.168.10.188/27}}{192.168.10.160/27} {yes}{no} }
>
> The top one is much more flexible and makes lookup comparisons a lot
> easier. I just wanted to make sure I wasn't missing some obvious gotchya.
> Am I?


Don't think so. I believe they should be the same.


-- 
Philip Hazel            University of Cambridge Computing Service
Get the Exim 4 book:    http://www.uit.co.uk/exim-book