From owner-freebsd-questions@FreeBSD.ORG Wed Dec 18 09:56:19 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 7FF77684; Wed, 18 Dec 2013 09:56:19 +0000 (UTC) Received: from rush.bluerosetech.com (rush.bluerosetech.com [IPv6:2607:fc50:1000:9b00::25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2251B1CED; Wed, 18 Dec 2013 09:56:19 +0000 (UTC) Received: from chombo.houseloki.net (c-71-236-222-167.hsd1.wa.comcast.net [71.236.222.167]) by rush.bluerosetech.com (Postfix) with ESMTPSA id 6ABB311434; Wed, 18 Dec 2013 01:56:17 -0800 (PST) Received: from [IPv6:2601:7:1680:cf0:a89f:a0ee:d554:9461] (unknown [IPv6:2601:7:1680:cf0:a89f:a0ee:d554:9461]) by chombo.houseloki.net (Postfix) with ESMTPSA id 59D1058C; Wed, 18 Dec 2013 01:56:15 -0800 (PST) Message-ID: <52B1713D.5060203@bluerosetech.com> Date: Wed, 18 Dec 2013 01:56:13 -0800 From: Darren Pilgrim User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: CeDeROM , FreeBSD Questions Mailing List , freebsd-net@freebsd.org Subject: Re: bug in dhclient / dhclient.conf / dhcp-options parser? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Dec 2013 09:56:19 -0000 On 11/19/2013 6:09 AM, CeDeROM wrote: > Hello :-) > > I need to send additional options with dhcp request, so I add "send" > option for an interface in /etc/dhclient.conf, however options are > non-standard and they use option value below 100 and they are not sent > in dhcp request. I have noticed that other options with names known to > dhcp-options and decimal numbers above 100 are sent correctly, so > maybe there is an error in the options number parser, or I do > something wrong? > > Here is my example /etc/dhclient.conf configuation: > > interface "em0"{ > send option-060 "vendor"; <-- does not go out in dhcp request > send option-077 "user"; <-- does not go out in dhcp request > send option-123 "blah123"; <-- goes out in dhcp request > send root-path "blahroot"; <-- goes out in dhcp request > } > > Please advise, quick solution appreciated :-) The "option-n" options only work for unknown codes. Option codes 60 and 77 are known as dhcp-class-identifier and user-class, respectively. Both are formatted as ASCII text.