Re: [exim-dev] Bug 2369: single-key lookup type based on li…

Top Pagina
Delete this message
Reply to this message
Auteur: Jeremy Harris
Datum:  
Aan: exim-dev
Onderwerp: Re: [exim-dev] Bug 2369: single-key lookup type based on libcorkipset
On 24/02/2019 07:47, Ian Zimmerman via Exim-dev wrote:
> On 2019-02-10 23:03, Jeremy Harris wrote:
>
>> If you can reliably detect the ipv6-ness, yes, that sounds like the
>> minimally intrusive way.
>
> How are the IPv4-mapped IPv6 addresses written in Exim?
>
> The straight translation to dots instead of colons would be ambiguous,
> wouldn't it? Say, ..ffff.1.2.3.4 could mean either the mapped address
> or the normal IPv6 address 0:0:0:ffff:0001:0002:0003:0004 .


You can write them either way; both are acceptable and the number-base
of the dotted-portion gets translated ( .234 does _not_ become :0234 ).

But that's ipv6 addresses given to exim, not how they are given to
the place you're coding. I think you need to check, given that a
colon-to-dot translation has been done by the time it hits you.
I'd expect conversion to unabbreviated form to have been done too.
--
Cheers,
Jeremy