9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* unixsrc/bootp
@ 1996-10-18  3:58 Jean
  0 siblings, 0 replies; only message in thread
From: Jean @ 1996-10-18  3:58 UTC (permalink / raw)



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)*/);
--




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1996-10-18  3:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-10-18  3:58 unixsrc/bootp Jean

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).