From cse.psu.edu!owner-9fans Fri Oct 18 00:11:00 1996 Received: from cse.psu.edu ([130.203.3.50]) by cannon.ecf.toronto.edu with SMTP id <582>; Fri, 18 Oct 1996 00:10:57 -0400 Received: from localhost (majordom@localhost) by cse.psu.edu (8.7.5/8.7.3) with SMTP id AAA10357; Fri, 18 Oct 1996 00:09:59 -0400 (EDT) Received: by claven.cse.psu.edu (bulk_mailer v1.5); Fri, 18 Oct 1996 00:06:39 -0400 Received: (from majordom@localhost) by cse.psu.edu (8.7.5/8.7.3) id AAA10249 for 9fans-outgoing; Fri, 18 Oct 1996 00:04:41 -0400 (EDT) X-Authentication-Warning: claven.cse.psu.edu: majordom set sender to owner-9fans using -f Received: from tao.ai.univ-paris8.fr (tao.ai.univ-paris8.fr [192.33.156.85]) by cse.psu.edu (8.7.5/8.7.3) with ESMTP id AAA10239 for <9fans@cse.psu.edu>; Fri, 18 Oct 1996 00:04:05 -0400 (EDT) Received: (from jm@localhost) by tao.ai.univ-paris8.fr (8.7.5/8.7.3) id EAA05673 for 9fans@cse.psu.edu; Fri, 18 Oct 1996 04:58:12 +0100 (MET) Date: Thu, 17 Oct 1996 23:58:12 -0400 From: Jean Mehat Message-Id: <199610180358.EAA05673@tao.ai.univ-paris8.fr> To: 9fans@cse.psu.edu Subject: unixsrc/bootp Sender: owner-9fans@cse.psu.edu Reply-To: 9fans@cse.psu.edu Precedence: bulk Status: R The bootp found in unixsrc dumps its core when debugging is enabled (on SunOs at least). More important, it cannot handle a vendor string long enough to contain my ip addresses. A quick patch follows. It might be useful to add a comment in bootptab specifying that the addresses in the vendor string are "netmask, file server, authentification server, router" in this order. The IP number that appear in the example bootptab are not very explanatory. diff bootp.bug/bootpd.h bootp.fix/bootpd.h 180c180 < byte vm_cookie[64], --- > byte vm_cookie[128], diff bootp.bug/bootp.h bootp.fix/bootp.h 42c42 < unsigned char bp_vend[64]; /* vendor-specific area */ --- > unsigned char bp_vend[128]; /* vendor-specific area */ diff bootp.bug/bootpd.c bootp.fix/bootpd.c 380c380 < report(LOG_ERR, "bind: %s\n", get_network_errmsg); --- > report(LOG_ERR, "bind: %s\n", get_network_errmsg()); 391c391 < report(LOG_ERR, "getsockname: %s\n", get_network_errmsg); --- > report(LOG_ERR, "getsockname: %s\n", get_network_errmsg()); 569c569 < report(LOG_INFO, "found %s %s\n", inet_ntoa(hp->iaddr.s_addr), --- > report(LOG_INFO, "found %s %s\n", "w.x.y.z" /* inet_ntoa(hp->iaddr.s_addr) */, 969c969 < fprintf(fp, "ip=%s:", inet_ntoa(hp->iaddr.s_addr)); --- > fprintf(fp, "ip=%s:", "w.x.y.z"/* inet_ntoa(hp->iaddr.s_addr)*/); 978c978 < fprintf(fp, "sm=%s:", inet_ntoa(hp->subnet_mask.s_addr)); --- > fprintf(fp, "sm=%s:", "w.x.y.z"/* inet_ntoa(hp->subnet_mask.s_addr)*/); --