Source-Changes archive

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

CVS commit: src

Module Name:    src
Committed By:   dyoung
Date:           Wed Jul  2 07:44:15 UTC 2008

Modified Files:
        src/distrib/utils/x_ifconfig: Makefile
        src/sbin/ifconfig: Makefile af_atalk.c af_inet.c af_inet6.c
            af_inetany.c af_inetany.h af_iso.c af_link.c agr.c carp.c env.c
            extern.h ieee80211.c ifconfig.c parse.c parse.h tunnel.c util.c
            util.h vlan.c
Added Files:
        src/sbin/ifconfig: media.c media.h
Removed Files:
        src/sbin/ifconfig: af_atalk.h af_inet.h af_inet6.h af_iso.h af_link.h
            agr.h carp.h ieee80211.h tunnel.h vlan.h

Log Message:
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

(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,, 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.

To generate a diff of this commit:
cvs rdiff -r1.26 -r1.27 src/distrib/utils/x_ifconfig/Makefile
cvs rdiff -r1.37 -r1.38 src/sbin/ifconfig/Makefile
cvs rdiff -r0 -r1.1 src/sbin/ifconfig/ src/sbin/ifconfig/media.c \
cvs rdiff -r1.12 -r1.13 src/sbin/ifconfig/af_atalk.c src/sbin/ifconfig/agr.c
cvs rdiff -r1.5 -r0 src/sbin/ifconfig/af_atalk.h
cvs rdiff -r1.11 -r1.12 src/sbin/ifconfig/af_inet.c \
    src/sbin/ifconfig/af_inetany.c src/sbin/ifconfig/af_iso.c \
cvs rdiff -r1.7 -r0 src/sbin/ifconfig/af_inet.h src/sbin/ifconfig/af_inet6.h \
cvs rdiff -r1.21 -r1.22 src/sbin/ifconfig/af_inet6.c
cvs rdiff -r1.3 -r1.4 src/sbin/ifconfig/af_inetany.h
cvs rdiff -r1.6 -r0 src/sbin/ifconfig/af_iso.h
cvs rdiff -r1.2 -r1.3 src/sbin/ifconfig/af_link.c
cvs rdiff -r1.1 -r0 src/sbin/ifconfig/af_link.h
cvs rdiff -r1.4 -r0 src/sbin/ifconfig/agr.h src/sbin/ifconfig/carp.h \
    src/sbin/ifconfig/tunnel.h src/sbin/ifconfig/vlan.h
cvs rdiff -r1.9 -r1.10 src/sbin/ifconfig/carp.c src/sbin/ifconfig/vlan.c
cvs rdiff -r1.5 -r1.6 src/sbin/ifconfig/env.c src/sbin/ifconfig/util.h
cvs rdiff -r1.19 -r1.20 src/sbin/ifconfig/ieee80211.c
cvs rdiff -r1.207 -r1.208 src/sbin/ifconfig/ifconfig.c
cvs rdiff -r1.8 -r1.9 src/sbin/ifconfig/parse.c
cvs rdiff -r1.4 -r1.5 src/sbin/ifconfig/parse.h
cvs rdiff -r1.13 -r1.14 src/sbin/ifconfig/tunnel.c
cvs rdiff -r1.7 -r1.8 src/sbin/ifconfig/util.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Home | Main Index | Thread Index | Old Index