Re: [dhcwg] VIV*O options.
Bud Millwood <budm@weird-solutions.com> Thu, 18 May 2006 07:24 UTC
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com) by megatron.ietf.org with esmtp (Exim 4.43) id 1Fgcrs-0003h4-Cl; Thu, 18 May 2006 03:24:20 -0400
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1Fgcrq-0003gz-R4 for dhcwg@ietf.org; Thu, 18 May 2006 03:24:18 -0400
Received: from intermail.se.dataphone.net ([212.37.1.50]) by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1Fgcro-0003mp-CY for dhcwg@ietf.org; Thu, 18 May 2006 03:24:18 -0400
Received: from [213.115.152.226] (account budm@weird-solutions.com HELO offset.weird.se) by intermail.se.dataphone.net (CommuniGate Pro SMTP 4.2) with ESMTP id 28124229 for dhcwg@ietf.org; Thu, 18 May 2006 09:24:10 +0200
From: Bud Millwood <budm@weird-solutions.com>
Organization: Weird Solutions, Inc.
To: dhcwg@ietf.org
Subject: Re: [dhcwg] VIV*O options.
Date: Thu, 18 May 2006 08:44:46 +0200
User-Agent: KMail/1.8
References: <20060517185746.GG5002@isc.org> <446B76C6.1000000@incognito.com> <20060517201204.GH5002@isc.org>
In-Reply-To: <20060517201204.GH5002@isc.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200605180844.46430.budm@weird-solutions.com>
X-Spam-Score: 0.1 (/)
X-Scan-Signature: 9ed51c9d1356100bce94f1ae4ec616a9
X-BeenThere: dhcwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: Bud Millwood <budm@weird-solutions.com>
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
On Wednesday 17 May 2006 22:12, David W. Hankins wrote:
> On Wed, May 17, 2006 at 12:17:26PM -0700, Andre Kostur wrote:
> > As long as you start after the Enterprise OID (and data length), that
> > shouldn't be an issue.
>
> That's precisely the rub: this would use the same loop to process
> VIV*O options (and also their contents, but that's not the point).
>
> That is, VIV*O options (DHCP codes 124 and 125) are merely an
> encapsulated space whose tag width is 4, and whose length width is
> 1, and which generally contain different encapsulated spaces. Compare
> DHCP which is 1/1, DHCPv6 which is 2/2.
>
> I'm suggesting that the generic functions which implement that would
> merely accept widths of 1, 2, 4 for code fields, and 1, 2 for length
> fields - any combination. 1/2 is legal, 2/1 is legal.
What you suggest is how we do it. The width of the tag, len and type fields
are primarily defined by a "Protocol Attributes" class, but the meta-data for
any given option can override those (individually) if need be.
So I'd describe the option in 3925 as a regular DHCPv4 option, meaning 1/1,
but then provide these settings for the option's meta-data:
type = subencoded
subtag_width = 4
sublen_width = 1
This allows us to iterate over the same loop, reading tag/len fields of any
size.
Using a default of 1/1 or 2/2, but providing option-specific overrides seems
to work well in practice.
- Bud
Bud Millwood
Weird Solutions, Inc.
http://www.weird-solutions.com
tel: +46 8 758 3700
fax: +46 8 758 3687
mailto:budm@weird-solutions.com
_______________________________________________
dhcwg mailing list
dhcwg@ietf.org
https://www1.ietf.org/mailman/listinfo/dhcwg
- [dhcwg] VIV*O options. David W. Hankins
- Re: [dhcwg] VIV*O options. Andre Kostur
- Re: [dhcwg] VIV*O options. David W. Hankins
- Re: [dhcwg] VIV*O options. Bud Millwood
- Re: [dhcwg] VIV*O options. peter_blatherwick