From owner-freebsd-stable@FreeBSD.ORG Sat Feb 7 05:45:10 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F20D416A4CE for ; Sat, 7 Feb 2004 05:45:10 -0800 (PST) Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by mx1.FreeBSD.org (Postfix) with SMTP id 5063D43D1D for ; Sat, 7 Feb 2004 05:45:10 -0800 (PST) (envelope-from iedowse@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 7 Feb 2004 13:45:09 +0000 (GMT) To: Matthew Seaman In-Reply-To: Your message of "Sat, 07 Feb 2004 09:36:27 GMT." <20040207093627.GB7043@happy-idiot-talk.infracaninophile.co.uk> Date: Sat, 07 Feb 2004 13:45:06 +0000 From: Ian Dowse Message-ID: <200402071345.aa45776@salmon.maths.tcd.ie> cc: freebsd-stable@freebsd.org cc: Rob Subject: Re: bug in bootpd for FBSD-stable ? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Feb 2004 13:45:11 -0000 In message <20040207093627.GB7043@happy-idiot-talk.infracaninophile.co.uk>, Mat thew Seaman writes: > >On Sat, Feb 07, 2004 at 07:52:12AM +0900, Rob wrote: ... >> ----------------------------------------------- >> .default:\ >> hn:ht=1:vm=rfc1048:\ >> sm=255.255.255.0:\ >> sa=147.46.44.181:\ >> gw=147.46.44.1:\ >> hd="":\ >> bf="kernel":\ >> T128="147.46.44.181:/home":\ >> T129=64000:\ >> rp="147.46.44.181:/tftpboot": >> tc=.default: ... >>But then I get in /var/log/messages this line: >> >>Feb 6 20:06:45 cisr bootpd[842]: in entry named ".default", symbol "T128": bad syntax >>Feb 6 20:06:45 cisr bootpd[842]: can't find tc=".default" Rob, are you sure that the error was on the T128 line? The above bootptab appears to have just one syntax error, but it is on the T129 line. From bootptab(5): There is also a generic tag, Tn, where n is an RFC1084 vendor field tag number. Thus it is possible to immediately take advantage of future extensions to RFC1084 without being forced to modify bootpd first. Generic data may be represented as either a stream of hexadecimal numbers or as a quoted string of ASCII characters. The length of the generic data is automatically determined and inserted into the proper field(s) of the RFC1084-style bootp reply. The error is that `64000' is neither a quoted string nor a stream of hexadecimal bytes. Try this instead: T129=0000fa00:\ There seems to be incorrect advice about this in the handbook, as FreeBSD's bootpd and kernel has always required the swap size to be specified this way. Note also that this mechanism of setting up swap no longer works in FreeBSD 5.x. >Read the man page more closely, and consult termcap(5) for the general >syntax. One obscure requirement is: Bootpd does not use termcap(5) syntax, so none of this is relevant. Ian