Subject: Re: rpc.bootparamd problem on alpha?
To: None <dillema@huygens.org>
From: Cliff Romash <romash@BBN.COM>
List: port-alpha
Date: 01/06/1998 09:27:26
Funny this message should appear today, when I just debugged this
yesterday....

If you run rpc.bootparamd with the -d switch, you will see that it is
getting whoami requests, but unable to properly convert the IP address to a
name to answer with.  The exact text of this is:

	rpc.bootparamd: whoami got question for 128.89.29.40
	rpc.bootparamd: This is host 128.89.29.40
	rpc.bootparamd: whoami failed

The second line should give the name of the host, not its address.

In usr.sbin/rpc.bootparamd/bootparamd.c, in the routine
bootparamproc_whoami_1_svc, the declaration of haddr is long. It needs to
be int, since the sizeof(haddr) is used as the length argument to
gethostbyaddr, and later checked against INADDRSZ. sizeof(long) on the
alpha is 8, while sizeof(int) is 4.




At 02:42 PM 1/6/98 +0100, dillema@acm.org wrote:
>
>I recently replaced my '486 fileserver with my multia box. I used this server
>to netboot some diskless intel machines. However, I cannot get bootparams to
>work on the alpha-box. when I put it in debug mode it says something like
>(from the back of my head):
>
>whoami request for <client-address>
>This is host <client-address>
>whoami request failed.
>
>checking with tcpdump, it does not reply to a boot-request at all. 
>AFAIK I use the same (or very similir) configuration on the alpha box
>as on the intel box previously. I had no problems with rpc.bootparamd
>on teh intel machine.
>
>Have I overlooked something, and made a configuration mistake? Or have I
>found a bug. I'm pretty much clueless wrt. why it does not work. All
>the obvious config stuff seems to be ok to me. The alpha is running
>an early NetBSD-1.3-Beta. I'm out of NetBSD source code at the moment, so
>I'm temporarily unable to rebuild or debug things myself. Anybody seen
>this problem with rpc.bootparamd on the alpha? Is anybody using it
>successfully (using what version of NetBSD?).
>
>thanks to everybody for 1.3 (I'll be upgrading in a few days again)
>and happy new year!
>
>{ Feico Dillema,                                                        }
>{ Install NetBSD as first step in your MS-ware 12-step recovery program }
>
>
>