ipv6 in yaboot

Segher Boessenkool segher at kernel.crashing.org
Wed Aug 1 15:12:15 EST 2007


>>> I just got asked about ipv6 support in yaboot and a quick 
>>> investigation
>>> showed _no_ knowledge of the address formats in the code.
>>>
>>> Should I be submitting an RFC for a full parser that can pick that
>>> apart?  Or does has someone have code lurking in the shadows, that
>>> just needed some prompting?  :)
>>
>> I would have thought that yaboot would just be passing any network
>> addresses in text form to some OF method, so it's up to OF to
>> understand ipv6 address formats.  No?
>
> Yes, yaboot _should_ just pass the text representation around.
> However, there are places that the context determination, for
> disklabels, is a simple check for the presence of ':'.

The network address is passed to OF as (part of) the device
argument for the network device; and colons aren't legal
characters in a device argument, so any OF implementation that
would use colons in IPv6 addresses is terminally broken.  This
is completely analogous to the fact that filesystem paths cannot
use forward slashes.  (The third disallowed character is the
at-sign, for completeness).


Segher




More information about the Linuxppc-dev mailing list