On Thu, 18 Nov 2004, Wouter Verhelst wrote:
> grep_remote:
> driver = manualroute
> domains = grep.be
> condition = ${if eq{$sender_host_address}{2001:838:37f::209:6bff:fe27:7db2}{false}{true}}
> route_list = grep.be samba.grep.be
>
> I don't know of any other way to do this
(1) Instead of $sender_host_address, write
${mask:$sender_host_address/128}
and then instead of 2001:838:37f::209:6bff:fe27:7db2 write
2001.0838.037f.0000.0209.6bff.fe27.7db2/128
and this test should then work. (The dots occur because ${mask: is
designed for canonicizing IPv6 addresses for use in lookups, and colon
is the key terminator in lsearch lookups.)
(2) However, I do agree that IPv6 addresses that are supplied to -bh or
-bhc should be canonicized. In the next release, they will always be
expanded to their full form before being put in text form in
$sender_host_address.
Regards,
Philip
--
Philip Hazel University of Cambridge Computing Service,
ph10@??? Cambridge, England. Phone: +44 1223 334714.