Subject: rarpd on 1.4.3
To: None <port-i386@netbsd.org>
From: Nate Bohlmann <njb@elfwerks.com>
List: port-i386
Date: 03/09/2001 13:15:44
Hi folks,
I have a question about 1.4.3. I'm not sure this is the place for it
but since I found this on an i386, I thought I'd post here. The problem
has to do with rarpd. Quite simply, it doesn't work. I have examined
what's going on and determined that the problem seems to be in the
ether_ntohost routine. It appears that it's not parsing the /etc/ethers
file correctly. Following is a code snippet that shows the problem and
gives an output of
ret = -1, hostname = 00:80:46:00:00:50 gizmo1
ea = 00:80:46:00:00:50
Any help would be greatly appreciated...
--- code snippet below --
struct ether_addr *ea;
char *hostname = (char *)malloc(255);
ea = ether_aton("00:80:46:00:00:50");
printf("ea = %s\n", ether_ntoa(ea));
ret = ether_ntohost(hostname, ea);
printf("ret = %d, hostname = %s\n");
printf("ea = %s\n", ether_ntoa(ea));
--
Nathan Bohlmann njb@elfwerks.com
Elfwerks Consulting http://www.elfwerks.com/~njb