Skip to contentSkip to conversation

ipv6 in yaboot

DISCUSSION Doug Maxey 5 participants 8 messages Jul 31, 2007 – Aug 6, 2007

lore
Share & tools
lore

Doug Maxey

author
#0 lore raw

Howdy!

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? :)

++doug

#1 lore raw
Quoted 4 lines · Doug Maxey

Howdy!

I just got asked about ipv6 support in yaboot and a quick investigation showed _no_ knowledge of the address formats in the code.

We really just use OF for obp-tftp and don't have our own ip stack, as there is no 1275 standard for ipv6 (although some modern IBM firmwares which also have iscsi support it) it's somewhat hard.

Quoted 3 lines

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? :)

Have you tried it with firmware that supports obp-tftp over ipv6?

Paul

author
#2 lore raw
Quoted 7 lines · Paul Nasrat
Quoted 4 lines · Doug Maxey

Howdy!

I just got asked about ipv6 support in yaboot and a quick investigation showed _no_ knowledge of the address formats in the code.

We really just use OF for obp-tftp and don't have our own ip stack,

True. Was just curious about the handling of the address formats, where the xxxx:... will probably be used. Several spots already make lots of assumptions that the colons are only in the disklabel.

Quoted 3 lines

as
there is no 1275 standard for ipv6 (although some modern IBM firmwares which also have iscsi support it) it's somewhat hard.

Oh, I agree completely. Publication is still being worked. The good news is that the description is already there. Once folks can see the whole enchilada.

Quoted 6 lines
Quoted 4 lines

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? :)

Have you tried it with firmware that supports obp-tftp over ipv6?

Heh. Not yet, but RSN.

#3 lore raw
In reply to Doug Maxey
Quoted 6 lines · Doug Maxey

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?

Paul.

#4 lore raw
Quoted 5 lines · Paul Mackerras
Quoted 3 lines · Doug Maxey

I just got asked about ipv6 support in yaboot and a quick investigation showed _no_ knowledge of the address formats in the code.

Quoted 7 lines
Quoted 3 lines

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 ':'.

When I did the original work for building in the tests for determining if the network device was really an iscsi block device, I may have been over-concerned that the non-disklabel parts of the IQN, which can and does have colons, could confuse the parsing. In the block device path, there was only a single questionable use. That usage was fixed by switching from strchr() to strrchr().

I expect the same syntax issues for the pure network side, as there is no chance to not take the network path for a pure ipv6 network boot. In my mind anyway. Which is always questionable. ;)

++doug

#5 lore raw
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines

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? :)

Quoted 7 lines
Quoted 3 lines

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

author
#6 lore raw
Quoted 12 lines · Segher Boessenkool
Quoted 12 lines
Quoted 11 lines
Quoted 7 lines

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?

Quoted 7 lines
Quoted 3 lines

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,

yeah, pretty thoughtless of the IETF for not consulting the 1275WG. :)

Quoted 2 lines

so any OF implementation that
would use colons in IPv6 addresses is terminally broken.

Ok. What is your proposed resolution that does not violate the rfcs? Namely RFCs 3986, 4038, and especially 4291.

Quoted 4 lines

This
is completely analogous to the fact that filesystem paths cannot use forward slashes. (The third disallowed character is the at-sign, for completeness).

Not really. I don't expect to the the "device path" contain any ipv6 info. Just the parameters that follow on the end, e.g., not a real example, just an extrapolation from current usage using the existing addresses from a client and a server:

Quoted 1 line

boot network1:ipv6,fe80::202:55ff:fed3:9e20/64,KERNEL-NAME,fe80::21a:64ff:fe44:1713/64,GWADDR,...

The above addrs after the first colon is the part that yaboot would have to deal with, if only to treat it as opaque token.

There is no ppc64 OFW that supports this yet, but a version is expected soon.

BTW, I don't really have any real input into how the OFW is designed, just try to adapt to what is implemented.

++doug

#7 lore raw
Quoted 5 lines
Quoted 3 lines

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,

yeah, pretty thoughtless of the IETF for not consulting the 1275WG. :)

Heh. That's not an issue; it just means that OF implementations need to use a (slightly) different spelling for IPV6 addresses. However, see below.

Quoted 5 lines
Quoted 2 lines

so any OF implementation that
would use colons in IPv6 addresses is terminally broken.

Ok. What is your proposed resolution that does not violate the rfcs? Namely RFCs 3986, 4038, and especially 4291.

Quotes from those RFCs would have been helpful.

Quoted 7 lines
Quoted 4 lines

This
is completely analogous to the fact that filesystem paths cannot use forward slashes. (The third disallowed character is the at-sign, for completeness).

Not really. I don't expect to the the "device path" contain any ipv6 info. Just the parameters that follow on the end,

There can be parameters at *any* path component though, not just the final component. It isn't too farfetched to imagine devices as child devices under a network device IMHO. Not the common case, sure.

Quoted 2 lines

There is no ppc64 OFW that supports this yet, but a version is expected soon.

There is an x86 OFW that supports it now. Some good news, too:

The requirement for device arguments to not contain colons or at-signs has been deemed overly strict, since any defined use for those arguments should follow the path resolution algorithm that is spelled out in the specification itself; and that algorithm can deal with it just fine. Therefore, it now is an (unpublished :-) ) recommended practice for OF implementations to allow it.

Forward slashes are right out, though :-)

Quoted 2 lines

BTW, I don't really have any real input into how the OFW is designed, just try to adapt to what is implemented.

Yeah I understand :-)

Segher