Return to BSD News archive
Path: sserve!newshost.anu.edu.au!munnari.oz.au!sol.ccs.deakin.edu.au!news.cs.uow.edu.au!picasso.cssc-syd.tansu.com.au!orca1.vic.design.telecom.com.au!netbsd08.dn.itg.telecom.com.au!not-for-mail From: tdwyer@netbsd08.dn.itg.telecom.com.au (Terry Dwyer netbsd08 619 491 5161) Newsgroups: comp.os.386bsd.development Subject: Re: rarpd port? Date: 7 Sep 1993 18:31:03 +0800 Organization: Telecom Australia Lines: 40 Message-ID: <26hntl$8t8@netbsd08.dn.itg.telecom.com.au> References: <CCqnDM.HM4@cygnus.com> NNTP-Posting-Host: netbsd08.dn.itg.telecom.com.au X-Newsreader: TIN [version 1.2 PL1] Is there any special reason for wanting to use rarpd? Jeffrey Wheat (cassidy@cygnus.com) wrote: : Has anyone ported rarpd to netbsd or 386bsd? Please respond via email : and I'll post the results. Thanks. I ftp'ed bootp from cmu and am now running it as a server on our local net- work. There is only one problem with the code. Look around line 850 in bootpd.c for the string "if (maxmatch == 0) {' and comment it out. I am no C expert, but I used a sniffer to diagnose the problem with this code, and lo and behold, when it's not there, everything works. if (debug) { report(LOG_INFO, "Will use Interface: %s\n" , ifrmax); } if (bp->bp_giaddr.s_addr == 0) { /* * This bit appears to be broken */ /* if (maxmatch == 0) { return; } */ bp->bp_giaddr = ((struct sockaddr_in *) (&ifrmax->ifr_addr))->sin_addr; } This is where I got it from: bootpd 2.1, is now available for anonymous FTP from lancaster.andrew.cmu.edu (128.2.13.21). The new server can be found in pub/bootp.2.1.tar. Hope this helps Terry. : cassidy@cygnus.com : --