NetBSD/distrib/utils
dyoung d75414adf5 Let us add/remove features from ifconfig, such as support for
various address families (inet, inet6, iso, atalk) and protocols
(802.11, 802.3ad, CARP), simply by trimming the list of sources in
the Makefile.  This helps one customize ifconfig for an embedded
device or for install media, and it eliminates a lot of grotty
#ifdef'age.  Now, the ifconfig syntax and semantics are finalized
at run-time using the constructor routines in each address-family/protocol
module.

(In principle, ifconfig could load virtually all of its syntax from
shared objects.)

Extract a lot of common code into subroutines, in order to shrink
the ifconfig binary a bit.  Make all of the address families share
code for address addition/replacement/removal, and delete "legacy"
code for manipulating addresses.  That may have broken atalk and
iso, despite my best efforts.

Extract an include file, Makefile.inc, containing the make-fu that
both ifconfig and x_ifconfig share.

Sprinkle static.  Change some int's to bool's.  Constify.

Add RCS Ids to carp.c and env.c.  Move media code to a new file,
media.c.  Delete several unneeded header files.

Set, reset, and display the IEEE 802.11 attribute, 'dot11RTSThreshold'.

Bug fix: do not require both a interface address and a destination
address for point-to-point interfaces, but accept a interface
address by itself.
2008-07-02 07:44:13 +00:00
..
libhack Compile a special version of the default locale into libhack - we can 2007-11-06 19:27:07 +00:00
more rename a global variable so that it doesn't collide with a libcurses function 2004-09-01 01:46:56 +00:00
script-installer netbsd.org->NetBSD.org 2003-07-26 17:06:22 +00:00
sparkcrc Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
ssh __STDC__ is always defined on NetBSD. 2002-05-26 00:02:06 +00:00
sysinst remove clause #3 from my license where there are no other 2008-05-29 14:51:25 +00:00
tls need <stdlib.h> for exit(3) prototype. 2006-06-24 05:12:13 +00:00
x_dhclient If we need -fno-strict-aliasing (see hack "gcc4 pointer sign and strict 2006-11-23 13:22:18 +00:00
x_ed
x_gzip delete these old sources. use usr.bin/gzip sources but disable a lot of 2004-03-28 04:10:43 +00:00
x_ifconfig Let us add/remove features from ifconfig, such as support for 2008-07-02 07:44:13 +00:00
x_netstat
x_ping
x_ping6 Remove -DUSE_RFC3542. 2006-05-07 16:01:21 +00:00
x_route Only support SMALLPROG_INET6 if ${USE_INET6} != "no". 2005-01-18 12:30:21 +00:00
x_umount No need for extra copy of umount.c 2004-04-21 15:22:10 +00:00
zcat zlib moved. 2006-01-14 21:15:40 +00:00
Makefile For some reason this makefile descends into all the x_<prog> directories. 2005-09-10 13:24:38 +00:00
Makefile.inc Define and use NOTINCRUNCHED to allow sparkcrc to overide the ../Makefile.inc 2004-06-09 16:03:37 +00:00
README correct comment 2002-03-25 07:39:50 +00:00

#	$NetBSD: README,v 1.4 2002/03/25 07:39:50 lukem Exp $

From: "Gordon W. Ross" <gwr>
Date: Tue, 3 Oct 95 16:37:39 EDT
Subject: New ramdisk, tiny shell, etc.
[ edited since the original mail ]

As part of my efforts to build a RAM-disk root kernel for the
sun3 port, I've developed some things that others may want:

New RAM-disk: [ see sys/dev/ramdisk.c ]

New "small/tiny" tools, to replace some of the larger
programs that one usually wants on a ramdisk root:

ssh: (small shell)
  * Consumes only about 8K of memory on an m68k!
    (saves about 100K in the ramdisk...)
  * Can run programs, possibly with I/O redirection
  * Just enough to let you run the programs needed
    while partitioning and copying miniroot to swap.

tls: (tiny ls)
  * Consumes only about 4K of memory on an m68k!
    (saves about 10K in the ramdisk...)
  * Long format only, nothing fancy.

Also, in the new "src/distrib/utils" area, I've made build
directories for some programs that build smaller versions,
usually by adding special CFLAGS

init_s:  (built with -DLETS_GET_SMALL)
  * Forces single-user mode
  * Eliminates unnecessary code

libhack:   small implementation of some libc functions
  * Needs only /etc/master.passwd (not pwd.db, spwd.db)
  * Reduces size of an m68k crunched binary by about 64K

x_dd:  built with -DNO_CONV (no conv=* options)

x_ifconfig:  supports inet only

The x_ prefix on the above is to make the names unique so
crunchgen will not confuse them with the real sources.