From owner-freebsd-questions@FreeBSD.ORG Tue Nov 19 18:51:55 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 71B5FF25 for ; Tue, 19 Nov 2013 18:51:55 +0000 (UTC) Received: from be-well.ilk.org (be-well.ilk.org [23.30.133.173]) by mx1.freebsd.org (Postfix) with ESMTP id 47FB92427 for ; Tue, 19 Nov 2013 18:51:55 +0000 (UTC) Received: from lowell-desk.lan (lowell-desk.lan [172.30.250.41]) by be-well.ilk.org (Postfix) with ESMTP id 8845233C22; Tue, 19 Nov 2013 13:51:49 -0500 (EST) Received: by lowell-desk.lan (Postfix, from userid 1147) id 4FAE739848; Tue, 19 Nov 2013 13:51:47 -0500 (EST) From: Lowell Gilbert To: CeDeROM Subject: Re: bug in dhclient / dhclient.conf / dhcp-options parser? References: <441u2cih07.fsf@lowell-desk.lan> Date: Tue, 19 Nov 2013 13:51:47 -0500 In-Reply-To: (cederom@tlen.pl's message of "Tue, 19 Nov 2013 15:58:07 +0100") Message-ID: <44vbzogr7g.fsf@lowell-desk.lan> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain Cc: FreeBSD Questions Mailing List X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list Reply-To: FreeBSD Questions Mailing List List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Nov 2013 18:51:55 -0000 CeDeROM writes: > On Tue, Nov 19, 2013 at 3:49 PM, Lowell Gilbert > wrote: >> See the manual ("man 5 dhcp-options"). >> >> Options which are not >> listed by name may be defined by the name option-nnn, where nnn is the >> decimal number of the option code. >> >> You can only specify options by number if the dhcp client doesn't know >> the syntax/semantics for that particular option. > > Hello Gilbert :-) I know that document already :-) There is neither Gilbert is actually my surname. All three of my names are reasonably common as both first *and* last names -- so I don't use my middle name, to avoid unnecessary confusion. > "vendor-class-identifier" nor "user-class" options in the basic > FreeBSD DHCP Client, so I want to use option-060 and option-077 but > none of those work (I also tired option-60 and option-77 with no > result), while other values work (i.e. option-088 or option-123), this > is the problem :-) > > These options work in isc-42-dhcp-client, so there seems to be > something wrong with native DHCP Client... In the sources for my RELENG_9 system, those are "dhcp-class-identifier" and "user-class", respectively. These appear to be the names used in the port as well. dhcp-class-identifier works, but user-class does not. The problem appears to be that it is missing from the array dhcp_option_default_priority_list in tables.c. The user class option hasn't been deprecated or otherwise have a good reason that I can see for being left out, so I think it's just a bug and the option should be added back in. There are 3 or four other options that are missing from that list; I wonder what they are. Good luck.