Re: [exim] quick IP masking question

Góra strony
Delete this message
Reply to this message
Autor: Philip Hazel
Data:  
Dla: John Jetmore
CC: exim-users
Temat: 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