[AFS3-std] Re: Encoding IPvN addresses (was Re: first draft: ubik update proposal)

Derrick Brashear shadow@gmail.com
Tue, 8 Feb 2011 11:06:34 -0500


On Tue, Feb 8, 2011 at 10:23 AM, Simon Wilkinson <simon@sxw.org.uk> wrote:
>
> On 8 Feb 2011, at 15:20, Derrick Brashear wrote:
>
>> struct {
>> =A0int addrtype;
>> =A0int addrlen;
>> =A0int addr<>
>> } rx_addr;
>>
>> #define RX_ADDRTYPE_IPV4 1
>> #define RX_ADDRTYPE_IPV6 2
>
> Why not just use an opaque? That way you don't get into any of the orderi=
ng
> issues that ints bring with them.
>
> struct {
> =A0 int addrtype;
> =A0 opaque addr<>;
> } rx_addr;

That's fine too.

So what else belongs in this draft? Do we need to specify how an
unknown addrtype will be handled?


--=20
Derrick