From owner-freebsd-questions@FreeBSD.ORG Tue Nov 19 17:49:01 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 B2F7C332; Tue, 19 Nov 2013 17:49:01 +0000 (UTC) Received: from h2.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 933A32FB4; Tue, 19 Nov 2013 17:49:01 +0000 (UTC) Received: from h2.funkthat.com (localhost [127.0.0.1]) by h2.funkthat.com (8.14.3/8.14.3) with ESMTP id rAJHn062065676 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 19 Nov 2013 09:49:00 -0800 (PST) (envelope-from jmg@h2.funkthat.com) Received: (from jmg@localhost) by h2.funkthat.com (8.14.3/8.14.3/Submit) id rAJHn0Hj065675; Tue, 19 Nov 2013 09:49:00 -0800 (PST) (envelope-from jmg) Date: Tue, 19 Nov 2013 09:48:59 -0800 From: John-Mark Gurney To: CeDeROM Subject: Re: bug in dhclient / dhclient.conf / dhcp-options parser? Message-ID: <20131119174859.GB2279@funkthat.com> Mail-Followup-To: CeDeROM , FreeBSD Questions Mailing List , freebsd-net@freebsd.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 7.2-RELEASE i386 X-PGP-Fingerprint: 54BA 873B 6515 3F10 9E88 9322 9CB1 8F74 6D3F A396 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2 (h2.funkthat.com [127.0.0.1]); Tue, 19 Nov 2013 09:49:00 -0800 (PST) Cc: freebsd-net@freebsd.org, FreeBSD Questions Mailing List X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Nov 2013 17:49:01 -0000 CeDeROM wrote this message on Tue, Nov 19, 2013 at 15:09 +0100: > 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 :-) Are you trying to send option 60, or option 48? 060 may be being parsed as an octal number instead of decimal, which would be 48 instead of 60.. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."