bug in bootpd for FBSD-stable ?

Rob nospam at users.sourceforge.net
Sat Feb 7 10:12:31 PST 2004


Ian Dowse wrote:
> 
>>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):
> 
> The error is that `64000' is neither a quoted string nor a stream of
> hexadecimal bytes. Try this instead:
> 
> 	T129=0000fa00:\

Wonderful, thanks! I now use:

#-----------/etc/bootptab-----------
.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=0000fa00:\
         rp="147.46.44.181:/tftpboot":

diskless:\
         ha=0050fce9306f:\
         tc=.default:
#------------------------------------

When I then test the server from the diskless PC:

	[diskless]$ bootptest cisr.snu.ac.kr
	bootptest: version 2.4.3
	Sending to 147.46.44.181 (request) htype:0 hlen:0 xid:823 C:147.46.44.183 vend-rfc1395
	Recvd from 147.46.44.181 (reply) htype:0 hlen:0 xid:823 C:147.46.44.183 S:147.46.44.181
		sname:"cisr.snu.ac.kr" file:"//kernel" vend-rfc1395 SM:255.255.255.0 GW:147.46.44.1
		ROOT:"147.46.44.181:/tftpboot" HN:"lahaye" T129:00.00.FA.00

On the server in /var/log/messages I get:
	bootpd[95255]: diskless: No room for "(generic)" option


So I bet there's still something fishy here, isn't it?

Regards,
Rob


More information about the freebsd-stable mailing list