d75414adf5
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. |
||
---|---|---|
.. | ||
libhack | ||
more | ||
script-installer | ||
sparkcrc | ||
ssh | ||
sysinst | ||
tls | ||
x_dhclient | ||
x_ed | ||
x_gzip | ||
x_ifconfig | ||
x_netstat | ||
x_ping | ||
x_ping6 | ||
x_route | ||
x_umount | ||
zcat | ||
Makefile | ||
Makefile.inc | ||
README |
# $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.