Re: [dhcwg] VIV*O options.

Andre Kostur <akostur@incognito.com> Wed, 17 May 2006 19:16 UTC

Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com) by megatron.ietf.org with esmtp (Exim 4.43) id 1FgRVq-00038h-75; Wed, 17 May 2006 15:16:50 -0400
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1FgRVo-00038b-Cc for dhcwg@ietf.org; Wed, 17 May 2006 15:16:48 -0400
Received: from dmz.incognito.com ([206.172.52.126] helo=chimera.incognito.com) by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1FgRVn-0002Y4-0L for dhcwg@ietf.org; Wed, 17 May 2006 15:16:48 -0400
Received: from openexchange.incognito.com ([192.168.77.70]) by chimera.incognito.com with esmtp (Exim 4.50) id 1FgRVm-0006DW-AR; Wed, 17 May 2006 12:16:46 -0700
Received: from [192.168.75.107] (AKOSTUR.incognito.com [192.168.75.107]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by openexchange.incognito.com (Postfix) with ESMTP id F38B117274; Wed, 17 May 2006 12:31:34 -0700 (PDT)
Message-ID: <446B76C6.1000000@incognito.com>
Date: Wed, 17 May 2006 12:17:26 -0700
From: Andre Kostur <akostur@incognito.com>
User-Agent: Thunderbird 1.5.0.2 (Windows/20060308)
MIME-Version: 1.0
To: "David W. Hankins" <David_Hankins@isc.org>
Subject: Re: [dhcwg] VIV*O options.
References: <20060517185746.GG5002@isc.org>
In-Reply-To: <20060517185746.GG5002@isc.org>
Content-Type: multipart/mixed; boundary="------------090804090409080406070108"
X-Spam-Score: 0.0 (/)
X-Scan-Signature: cd26b070c2577ac175cd3a6d878c6248
Cc: dhcwg@ietf.org
X-BeenThere: dhcwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: dhcwg.ietf.org
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/dhcwg>, <mailto:dhcwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:dhcwg@ietf.org>
List-Help: <mailto:dhcwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/dhcwg>, <mailto:dhcwg-request@ietf.org?subject=subscribe>
Errors-To: dhcwg-bounces@ietf.org

David W. Hankins wrote:
> Does anyone know of a client or server that has implemented VIV*O (RFC3925)?
> I'm looking for targets for interoperability testing.
>
> RFC4243 relay agents would be interesting too.
>
>
> While looking at this, I had to come to grips with a minor code reuse
> problem I'd like to solicit opinions on.
>
> We currently use the same code to dissect the options buffer as we do
> any encapsulated space (so, VIV*O would use this as well).
>   

As long as you start after the Enterprise OID (and data length), that 
shouldn't be an issue.

> This loop that traverses options looks for PAD and END options, which
> RFC 3925 explicitly states are not special cases, with no special
> handling.  Unless I'm mistaken, RFC 4243 makes no mention.
>   

I'd interpret 42423 to align with 3925.  Sub-options 0 and 255 have no 
special meaning.

> That means I get to add more instructions to this loop, or write a new
> loop, neither of which I particularly fancy.
>
> However, enterprise id 0 is reserved according to IANA, which I take to
> mean is an illegal value, so it shouldn't appear in packets at all.
>   

I'm a little confused... what does the Enterprise OID have to do with 
parsing the sub-optioned space?

> My most-code-reused solution, then, is to use 0x00000000 as both PAD
> and END options for this encapsulated space (END trumps PAD, so this
> causes the server to stop processing the buffer if it's encountered -
> a zero is effectively an error condition).
>   

Even more confused... where's that 4-byte value coming from (in the 
context of this discussion)?  And, what PAD option?  There is no pad.  
No END either.

> That would be true for any encapsulated space with no defined END option.
>
> What are folks opinions on this approach, not just for VIV*O, but for
> encapsulated spaces in general?
>   

_______________________________________________
dhcwg mailing list
dhcwg@ietf.org
https://www1.ietf.org/mailman/listinfo/dhcwg