From owner-freebsd-ports Fri Mar 22 17:11:28 1996 Return-Path: owner-ports Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id RAA17988 for ports-outgoing; Fri, 22 Mar 1996 17:11:28 -0800 (PST) Received: from lavender.yy.cs.keio.ac.jp (lavender.yy.cs.keio.ac.jp [131.113.47.22]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id RAA17976 for ; Fri, 22 Mar 1996 17:10:53 -0800 (PST) Received: (from sanpei@localhost) by lavender.yy.cs.keio.ac.jp (8.6.12/3.4Wbeta5) id JAA02236; Sat, 23 Mar 1996 09:39:13 +0900 Message-Id: <199603230039.JAA02236@lavender.yy.cs.keio.ac.jp> To: asami@cs.berkeley.edu (Satoshi Asami) Cc: ports@FreeBSD.org Subject: [repost] Re: ported WIDE dhcp to FreeBSD 2.1R X-Mailer: Mew version 1.03 on Emacs 19.28.2, Mule 2.3 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Date: Sat, 23 Mar 1996 09:39:12 +0900 From: MIHIRA Yoshiro Sender: owner-ports@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk I check my mailreader, I mistaked my MH configuration. I repost this mail. ---------------------------------------- >By the way, I'm thinking of renaming it to "net/wide-dhcp" since there >now exists a "net/isc-dhcp" port. Is that ok for you? > N ports/net/dhcp/Makefile > N ports/net/dhcp/files/md5 > N ports/net/dhcp/patches/patch-aa > N ports/net/dhcp/pkg/PLIST > N ports/net/dhcp/pkg/COMMENT > N ports/net/dhcp/pkg/DESCR from: dhcp/Makefile >MAINTAINER= pst@FreeBSD.ORG But this WIDE-DHCP ports is not mine. I found my DHCP ports file in ftp://ftp.freebsd.org/FreeBSD/incoming/dhcp.tar.gz From time stamp of two port collection are close; mine is `Jan.,22' and Paul Traina is `Jan., 23', I think that my ports file was rejected. But there are 2 problems in pst's WIDE DHCP port. First, there is no information about dhcp in `FreeBSD/FreeBSD-current/ports/INDEX' file. # maybe by some mistakes... Second dhcp server program ported by pst has problems. It can't reply correctly via bpf. I patched to dhcps.c below (needless to say, in my ports file). In FreeBSD, program using bpf does not need htons. (But I don't know why does it not need..... in BSD/OS, htons was needed) I hope only that DHCP server/client program run exactly in FreeBSD :-) I don't mind who make DHCP ports collection. yours. Yoshiro MIHIRA Keio Univ. Japan --- server/dhcps.c.orig Mon Nov 6 16:18:19 1995 +++ server/dhcps.c Thu Jan 11 10:56:53 1996 @@ -1901,7 +1901,11 @@ snd.ether->ether_shost[i] = ifp->haddr[i]; #endif } +#ifdef __FreeBSD__ + snd.ether->ether_type = ETHERTYPE_IP; +#else snd.ether->ether_type = htons(ETHERTYPE_IP); +#endif if (sbufvec[1].iov_base == NULL) { if (ether_write(ifp->fd, sbufvec[0].iov_base, sbufvec[0].iov_len) < 0) { @@ -2215,7 +2219,11 @@ #endif } } +#ifdef __FreeBSD__ + snd.ether->ether_type = ETHERTYPE_IP; +#else snd.ether->ether_type = htons(ETHERTYPE_IP); +#endif buflen = DFLTBOOTPLEN + UDPHL + IPHL + ETHERHL; if (ether_write(ifp->fd, (char *)snd.ether, buflen) < 0) { @@ -2877,7 +2885,7 @@ return(GOOD); } -#ifdef BSDOS +#if defined(BSDOS) || (__FreeBSD__ == 2) delarp(ip); #else delarp(ip, sockfd);