Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src sunndd has been renamed ndbootd.



details:   https://anonhg.NetBSD.org/src/rev/8db532e0fe73
branches:  trunk
changeset: 510198:8db532e0fe73
user:      fredette <fredette%NetBSD.org@localhost>
date:      Tue May 22 14:52:24 2001 +0000

description:
sunndd has been renamed ndbootd.

diffstat:

 distrib/sets/lists/base/mi          |     4 +-
 distrib/sets/lists/etc/mi           |     4 +-
 distrib/sets/lists/man/mi           |     6 +-
 usr.sbin/sunndd/COPYING             |    24 -
 usr.sbin/sunndd/ChangeLog           |    63 --
 usr.sbin/sunndd/Makefile            |     9 -
 usr.sbin/sunndd/README              |   106 ---
 usr.sbin/sunndd/config.h            |    68 --
 usr.sbin/sunndd/config/sunndd-bpf.c |   320 ----------
 usr.sbin/sunndd/sunndd.8            |   154 -----
 usr.sbin/sunndd/sunndd.c            |  1021 -----------------------------------
 usr.sbin/sunndd/sunndd.h            |   186 ------
 12 files changed, 7 insertions(+), 1958 deletions(-)

diffs (truncated from 2078 to 300 lines):

diff -r f73a6bad4385 -r 8db532e0fe73 distrib/sets/lists/base/mi
--- a/distrib/sets/lists/base/mi        Tue May 22 14:51:37 2001 +0000
+++ b/distrib/sets/lists/base/mi        Tue May 22 14:52:24 2001 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.259 2001/05/17 23:23:36 fredette Exp $
+# $NetBSD: mi,v 1.260 2001/05/22 14:52:24 fredette Exp $
 .                      base-sys-root
 ./altroot              base-sys-root
 ./bin                  base-sys-root
@@ -671,6 +671,7 @@
 ./usr/sbin/named-bootconf      base-bind-bin
 ./usr/sbin/named.reload                base-bind-bin
 ./usr/sbin/named.restart       base-bind-bin
+./usr/sbin/ndbootd             base-bootserver-bin
 ./usr/sbin/ndc                 base-bind-bin
 ./usr/sbin/ndp                 base-netutil-bin
 ./usr/sbin/netgroup_mkdb       base-nis-bin
@@ -743,7 +744,6 @@
 ./usr/sbin/sshd                        base-secsh-bin
 ./usr/sbin/stdethers           base-nis-bin
 ./usr/sbin/stdhosts            base-nis-bin
-./usr/sbin/sunndd              base-bootserver-bin
 ./usr/sbin/sup                 base-sup-bin
 ./usr/sbin/supfilesrv          base-sup-bin
 ./usr/sbin/supscan             base-sup-bin
diff -r f73a6bad4385 -r 8db532e0fe73 distrib/sets/lists/etc/mi
--- a/distrib/sets/lists/etc/mi Tue May 22 14:51:37 2001 +0000
+++ b/distrib/sets/lists/etc/mi Tue May 22 14:52:24 2001 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.83 2001/05/17 23:23:37 fredette Exp $
+# $NetBSD: mi,v 1.84 2001/05/22 14:52:25 fredette Exp $
 ./.cshrc                               etc-util-etc
 ./.profile                             etc-util-etc
 ./dev/MAKEDEV.local                    etc-sys-etc
@@ -104,6 +104,7 @@
 ./etc/rc.d/mountd                      etc-nfsserver-rc
 ./etc/rc.d/mrouted                     etc-router-rc
 ./etc/rc.d/named                       etc-bind-rc
+./etc/rc.d/ndbootd                     etc-bootserver-rc
 ./etc/rc.d/network                     etc-net-rc
 ./etc/rc.d/newsyslog                   etc-sys-rc
 ./etc/rc.d/nfsd                                etc-nfsserver-rc
@@ -131,7 +132,6 @@
 ./etc/rc.d/securelevel                 etc-sys-rc
 ./etc/rc.d/sendmail                    etc-sendmail-rc
 ./etc/rc.d/sshd                                etc-secsh-rc
-./etc/rc.d/sunndd                      etc-bootserver-rc
 ./etc/rc.d/swap1                       etc-sys-rc
 ./etc/rc.d/swap2                       etc-sys-rc
 ./etc/rc.d/sysctl                      etc-sys-rc
diff -r f73a6bad4385 -r 8db532e0fe73 distrib/sets/lists/man/mi
--- a/distrib/sets/lists/man/mi Tue May 22 14:51:37 2001 +0000
+++ b/distrib/sets/lists/man/mi Tue May 22 14:52:24 2001 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.353 2001/05/18 02:07:34 thorpej Exp $
+# $NetBSD: mi,v 1.354 2001/05/22 14:52:25 fredette Exp $
 ./usr/share/info/am-utils.info                 man-amd-info
 ./usr/share/info/as.info                       man-computil-info
 ./usr/share/info/awk.info                      man-util-info
@@ -1318,6 +1318,7 @@
 ./usr/share/man/cat8/named.0                   man-bind-catman
 ./usr/share/man/cat8/named.reload.0            man-bind-catman
 ./usr/share/man/cat8/named.restart.0           man-bind-catman
+./usr/share/man/cat8/ndbootd.0                 man-bootserver-catman
 ./usr/share/man/cat8/ndc.0                     man-bind-catman
 ./usr/share/man/cat8/ndp.0                     man-netutil-catman
 ./usr/share/man/cat8/netgroup_mkdb.0           man-nis-catman
@@ -1461,7 +1462,6 @@
 ./usr/share/man/cat8/sun3/boot.0               man-sys-catman
 ./usr/share/man/cat8/sun3/installboot.0                man-sysutil-catman
 ./usr/share/man/cat8/sun3/makedev.0            man-sysutil-catman
-./usr/share/man/cat8/sunndd.0                  man-bootserver-catman
 ./usr/share/man/cat8/supfilesrv.0              man-sup-catman
 ./usr/share/man/cat8/supscan.0                 man-sup-catman
 ./usr/share/man/cat8/supservers.0              man-sup-catman
@@ -2824,6 +2824,7 @@
 ./usr/share/man/man8/named.8                   man-bind-man
 ./usr/share/man/man8/named.reload.8            man-bind-man
 ./usr/share/man/man8/named.restart.8           man-bind-man
+./usr/share/man/man8/ndbootd.8                 man-bootserver-man
 ./usr/share/man/man8/ndc.8                     man-bind-man
 ./usr/share/man/man8/ndp.8                     man-netutil-man
 ./usr/share/man/man8/netgroup_mkdb.8           man-nis-man
@@ -2967,7 +2968,6 @@
 ./usr/share/man/man8/sun3/boot.8               man-sys-man
 ./usr/share/man/man8/sun3/installboot.8                man-sysutil-man
 ./usr/share/man/man8/sun3/makedev.8            man-sysutil-man
-./usr/share/man/man8/sunndd.8                  man-bootserver-man
 ./usr/share/man/man8/supfilesrv.8              man-sup-man
 ./usr/share/man/man8/supscan.8                 man-sup-man
 ./usr/share/man/man8/supservers.8              man-sup-man
diff -r f73a6bad4385 -r 8db532e0fe73 usr.sbin/sunndd/COPYING
--- a/usr.sbin/sunndd/COPYING   Tue May 22 14:51:37 2001 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,24 +0,0 @@
-/*     $NetBSD: COPYING,v 1.2 2001/05/17 20:42:08 fredette Exp $       */
-
-/*
- * Copyright (c) 2001 Matthew Fredette.  All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *   1. Redistributions of source code must retain the above copyright
- *      notice, this list of conditions and the following disclaimer.
- *   2. Redistributions in binary form must reproduce the above copyright
- *      notice, this list of conditions and the following disclaimer in the
- *      documentation and/or other materials provided with the distribution.
- *   3. All advertising materials mentioning features or use of this software
- *      must display the following acknowledgement:
- *        This product includes software developed by Matthew Fredette.
- *   4. The name of Matthew Fredette may not be used to endorse or promote
- *      products derived from this software without specific prior written
- *      permission. 
- * 
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
- */
diff -r f73a6bad4385 -r 8db532e0fe73 usr.sbin/sunndd/ChangeLog
--- a/usr.sbin/sunndd/ChangeLog Tue May 22 14:51:37 2001 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,63 +0,0 @@
-#      $NetBSD: ChangeLog,v 1.2 2001/05/17 20:42:08 fredette Exp $
-
-Tue May 15 14:43:24 2001  Matthew Fredette  <fredette%alum.mit.edu@localhost>
-
-       * Release 0.2 out.
-       * configure.in: Bumped up the version.
-       * sunndd.8: Some formatting changes.
-       * sunndd.c: Now have prototypes for the allocation functions.
-       (main): Now handle boot blocks that aren't an integral
-       multiple of the block size.
-
-Wed May 09 20:50:46 2001  Matthew Fredette  <fredette%alum.mit.edu@localhost>
-
-       * Makefile.am: Added support for the man page.
-       * README: Updated the usage to reflect the new single-letter option names.
-       * sunndd.8: Added.
-       * sunndd.c (main): Now insert a small delay before sending each packet.
-       Sending packets too quickly apparently overwhelms clients.
-       Added new single-letter versions of all options that didn't
-       already have them.  Expanded some debug messages, and fixed
-       others to display Ethernet addresses correctly.
-
-       * config/sunndd-bpf.c: Removed an unnecessary comment.
-
-Wed Jan 31 17:35:50 2001  Matthew Fredette  <fredette%alum.mit.edu@localhost>
-
-       * Makefile.am: Added the ChangeLog to EXTRA_DIST.
-       * README: Updated.
-       * sunndd.c (main): Fixed various printf argument lists.
-
-Wed Jan 31 17:35:16 2001  Matthew Fredette  <fredette%alum.mit.edu@localhost>
-
-       * Release 0.1 out.
-       * Makefile.am: Added the ChangeLog to EXTRA_DIST.
-       * README: Updated.
-       * sunndd.c (main): Fixed various printf argument lists.
-       * sunndd.h: Now include param.h.
-
-Tue Jan 30 15:35:38 2001  Matthew Fredette  <fredette%alum.mit.edu@localhost>
-
-       * README: Added.
-       * sunndd.c: Now, sunndd assembles disk images for clients on-the-fly.
-       Defined many new macros related to this.
-       (main): Added support for the --boot2 option.  Turned the
-       original disk-image filename into the filename of the
-       first-stage boot program.  Now do better multiple-client
-       support, especially when it comes to checking if a client
-       is really ours.  Now assemble client-specific disk images
-       on-the-fly, potentially serving each client a different
-       second-stage boot.
-
-Mon Jan 29 15:12:13 2001  Matthew Fredette  <fredette%alum.mit.edu@localhost>
-
-       * COPYING: Added.
-       * Makefile.am: Added.
-       * acconfig.h: Added.
-       * acinclude.m4: Added.
-       * configure.in: Added.
-       * missing: Added.
-       * sunndd.c: Added.
-       * sunndd.h: Added.
-       * config/sunndd-bpf.c: Added.
-
diff -r f73a6bad4385 -r 8db532e0fe73 usr.sbin/sunndd/Makefile
--- a/usr.sbin/sunndd/Makefile  Tue May 22 14:51:37 2001 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,9 +0,0 @@
-#      $NetBSD: Makefile,v 1.1 2001/05/17 20:42:08 fredette Exp $
-
-PROG=  sunndd
-SRCS=  sunndd.c
-MAN=   sunndd.8
-
-CPPFLAGS+=-DHAVE_CONFIG_H -I${.CURDIR}
-
-.include <bsd.prog.mk>
diff -r f73a6bad4385 -r 8db532e0fe73 usr.sbin/sunndd/README
--- a/usr.sbin/sunndd/README    Tue May 22 14:51:37 2001 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,106 +0,0 @@
-$NetBSD: README,v 1.2 2001/05/17 20:42:08 fredette Exp $
-
-README for sunndd-0.1
-
-Copyright (c) 2001 Matthew Fredette.  All rights reserved.
-
-See the file COPYING for no-warranty and distribution terms.
-
-sunndd is a daemon that serves Sun's old Network Disk (ND) protocol.
-This protocol was designed by Sun before they designed NFS.  ND simply
-makes the raw blocks of a disk available to network clients.  Contrast
-this with the true namespace and file abstractions that NFS provides.
-
-The only reason you're likely to encounter ND nowadays is if you have
-an old Sun-2 machine, like the 2/120 or 2/50.  The Sun-2 PROMs can
-only use ND to boot over the network.  (Later, the Sun-3 PROMs would
-use RARP and TFTP to boot over the network.)
-
-sunndd is a very simple ND server that only supports client reads.
-
-usage: sunndd [OPTIONS] BOOT1-BIN
-where OPTIONS are:
-  -s, --boot2 { BOOT2-BIN | DIR }
-                          find a second-stage boot program in the file
-                          BOOT2-BIN or in the directory DIR
-  -i, --interface NAME    use interface NAME
-  -w, --window-size COUNT 
-                          send at most COUNT unacknowledged packets [default=6]
-  -d, --debug             set debug mode
-
-sunndd exports a disk that the clients consider to be /dev/ndp0 (ND
-public unit zero).  The disk is available to any client listed in
-/etc/ethers (Sun-2 PROMs don't do RARP, but they do learn their IP
-address from the first ND response they receive from the server.)
-
-BOOT1-BIN is a file containing the mandatory first-stage network boot
-program.  The layout of the exported disk is:
-
-block 0: normally a Sun disklabel (but ignored by the PROM)
-blocks 1-15: the first-stage network boot program
-
-With the --boot2 option, sunndd will also make a second-stage network
-boot program available to clients.  When --boot2 is used with a
-filename BOOT2-BIN, that file is the second-stage network boot program
-to be served to all clients.
-
-When --boot2 is used with a directory name DIR, sunndd finds a
-client's second-stage network boot program by turning its IP address
-into a filename in that directory, in the same manner later Sun-3
-PROMs do when TFTPing (i.e., if a client has IP address 192.168.1.10,
-sunndd expects to find DIR/C0A8010A.SUN2).  The expected use of
---boot2 is with the /tftpboot directory, making sunndd a functional
-replacement for tftp when used with an ND-aware first-stage boot
-program.
-
-Any second-stage network boot program always begins at block 16 of the
-exported disk, regardless of the length of the first-stage network
-boot program.
-
-Whether or not there is a second-stage network boot program, the
-exported disk appears to have infinite length.  The content of all
-blocks not used by the first- or second-stage network boot programs is
-undefined.
-
-All first- and second-stage network boot programs must have had their
-exec headers stripped off.
-
-Normally, sunndd listens on the first up and running IP interface it
-finds.  Use the --interface option to give a specific interface.
-
-One parameter of the ND protocol is a sort of window size.  This is
-the number of 1-kilobyte packets that can be transmitted before
-waiting for an acknowledgement.  To change this from the default 6,
-use the --window-size option.
-
-When debug support is compiled in (it is by default), the --debug
-option turns on debugging.
-
-sunndd has only been compiled and tested under NetBSD with BPF
-support, although there is a fair autoconf framework, and the raw
-interface support is broken out, which should allow for reasonable
-porting.
-
-Note that sunndd was developed specifically to help me to boot my
-experimental NetBSD port on my Sun-2/120.  In this scenario, the
-first-stage network boot (bootyy) continues to use ND to load in the
-second-stage boot program (netboot), which can do a full
-RARP/bootparams/NFS boot.  (If the program netboot ever fit in 16
-blocks, we could eliminate bootyy, but this is unlikely.)
-
-(Aside: it is unusual for a network boot to have two stages of boot
-programs before the kernel; this is normally only done on real disks.
-But to the Sun-2 PROMs, /dev/ndp0 is just like a real disk in that it
-provides no EOF condition (like a tape boot gets, or like the Sun-3
-TFTP method gets), so it only loads a fixed number of blocks.)
-
-Whether sunndd can be used to netboot SunOS on a Sun-2 is unknown, but



Home | Main Index | Thread Index | Old Index