[alt.sys.sun] BOOTPD Sunos 4.0.3 Sun 3/80

baker@nodecg.ncc.telecomwa.oz.au (mark baker 4206813) (02/06/91)

I have compilied the CMU BOOTP daemon on my Sun 3/80 under 4.0.3, but as soon
as it receives a request it dies and core dumps. I know that several months ago
this subject was mentioned but at that time I had no interest, sorry. Any 
assistance would be appreciated.


Mark Baker                                Phone: +61 9 4206813
Network Computer Centre                   Fax:   +61 9 4208851
5th Floor Telecom Centre                  ACSNET: baker@telecomwa.oz
80 Stirling Street, Perth                 Inet:  baker%telecomwa.oz@uunet.uu.net
Western Australia 6000

bmw@isgtec.uucp (Bruce M. Walker) (02/10/91)

In article <1991Feb6.023929.14047@nodecg.ncc.telecomwa.oz.au> baker@nodecg.ncc.telecomwa.oz.au (mark baker 4206813) writes:
> I have compilied the CMU BOOTP daemon on my Sun 3/80 under 4.0.3, but as soon
> as it receives a request it dies and core dumps. I know that several months ago
> this subject was mentioned but at that time I had no interest, sorry. Any 
> assistance would be appreciated.

Apply this patch -- works for me!

-------------------- cut here ---------------------------
*** org/bootpd.c	Tue Oct 17 17:21:44 1989
--- src/bootpd.c	Wed Dec 19 10:26:57 1990
***************
*** 566,572 ****
      }
  
      if (debug) {
! 	report(LOG_INFO, "found %s %s\n", inet_ntoa(hp->iaddr.s_addr),
  		hp->hostname->string);
      }
  
--- 566,572 ----
      }
  
      if (debug) {
! 	report(LOG_INFO, "found %s %s\n", inet_ntoa(hp->iaddr),
  		hp->hostname->string);
      }
  
***************
*** 948,954 ****
  	    fprintf(fp, "%s:", hp->hostname->string);
  	}
  	if (hp->flags.iaddr) {
! 	    fprintf(fp, "ip=%s:", inet_ntoa(hp->iaddr.s_addr));
  	}
  	if (hp->flags.htype) {
  	    fprintf(fp, "ht=%u:", (unsigned) hp->htype);
--- 948,954 ----
  	    fprintf(fp, "%s:", hp->hostname->string);
  	}
  	if (hp->flags.iaddr) {
! 	    fprintf(fp, "ip=%s:", inet_ntoa(hp->iaddr));
  	}
  	if (hp->flags.htype) {
  	    fprintf(fp, "ht=%u:", (unsigned) hp->htype);
***************
*** 957,963 ****
  	    }
  	}
  	if (hp->flags.subnet_mask) {
! 	    fprintf(fp, "sm=%s:", inet_ntoa(hp->subnet_mask.s_addr));
  	}
  	if (hp->flags.cookie_server) {
  	    fprintf(fp, "cs=");
--- 957,963 ----
  	    }
  	}
  	if (hp->flags.subnet_mask) {
! 	    fprintf(fp, "sm=%s:", inet_ntoa(hp->subnet_mask));
  	}
  	if (hp->flags.cookie_server) {
  	    fprintf(fp, "cs=");
-------------------- cut here ---------------------------

--
bmw@isgtec.uucp  [ ..uunet!utai!lsuc!isgtec!bmw ]  Bruce Walker