Home | History | Annotate | Download | only in ifconfig
History log of /src/sbin/ifconfig/Makefile
RevisionDateAuthorComments
 1.62  04-Apr-2025  rin ifconfig/Makefile: Makefile.inc -> Makefile.common in comment, NFC

I forgot to update this comment when I renamed Makefile.inc to .common.
 1.61  10-Oct-2017  christos branches: 1.61.16;
user librumpres
 1.60  08-Feb-2017  rin Cosmetic changes. No functional changes.
 1.59  08-Feb-2017  rin Factor out a common part in Makefile's of ifconfig and x_ifconfig.
 1.58  08-Feb-2017  rin Rename sbin/ifconfig/Makefile.inc to Makefile.common; the former can
potentially conflict with bsd.subdir.mk.
 1.57  08-Feb-2017  rin Remove ifconfig hack on m68000. I've confirmed that the problem has already
gone with TME.
 1.56  19-May-2015  ozaki-r branches: 1.56.2; 1.56.4;
Fix rump.ifconfig shows host's interface names in link local addresses
 1.55  28-Apr-2015  christos remove 80211 stats if small.
 1.54  01-Mar-2013  joerg Retire OSI network stack. OK core@
 1.53  08-Aug-2012  christos branches: 1.53.2;
don't define RUMP_ACTION if MKRUMP = no
 1.52  14-Aug-2011  christos branches: 1.52.2;
use memcpy to avoid strict aliasing warnings
 1.51  22-Jun-2011  mrg apply some -Wno-error and/or -fno-strict-aliasing.


all of this should be looked at closer, but some of them are not
very trivial.
 1.50  13-Dec-2010  pooka Convert from the .ifdef RUMP_ACTION stuff to RUMPPRG.
 1.49  05-Nov-2010  pooka Need getifaddrs() for the rump client since it executes sysctl(2)
 1.48  04-Nov-2010  pooka Update RUMP_ACTION to use the newstyle rump client.
 1.47  01-Jul-2010  dyoung Apparently, -g belongs in the DBG variable, not in CFLAGS. Make it so
on a line that is commented-out in this makefile.
 1.46  16-Sep-2009  tsutsui - no space needed between -I and dir per gcc(1)
- it's still better to use ${NETBSDSRCDIR} per other existing Makefiles
 1.45  16-Sep-2009  tsutsui Add comments that Makefile.inc should have shared stuff with
src/distrib/utils/x_ifconfig for install media.
 1.44  15-Sep-2009  he Move the addition of pfsync.c from Makefile.inc to Makefile,
so that this part doesn't get included in install media versions
of ifconfig, as per comments on source-changes@ from Izumi Tsutsui.
Also re-instate the use of ${.CURDIR} when setting up the include path.
 1.43  02-Jun-2009  pooka If RUMP_ACTION, treat close() as a rump syscall.
 1.42  26-May-2009  pooka Add compile mode which executes rump system calls. This is useful
when figuring out Where In The Kernel Is Carmen Sandiego's ioctl
for an ifconfig command line, since we can simply single-step into
the kernel.

Activated by "make RUMP_ACTION=1". No changes to normal case.
 1.41  11-Apr-2009  lukem Enable WARNS=4 by default except for:
dump dump_lfs fsck_ffs fsck_lfs fsdb mount_smbfs
newfs_ext2fs newfs_lfs resize_lfs setkey
 1.40  13-Feb-2009  uebayasi Comment out CFLAGS+=-g.
 1.39  29-Nov-2008  tsutsui branches: 1.39.2;
Specify -fno-loop-optimize on m68000 as workaround for gcc -O1 codegen bug
mentioned in PR bin/40036 and PR toolchain/40066.
 1.38  02-Jul-2008  dyoung branches: 1.38.2;
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.
 1.37  12-May-2008  dyoung Per discussion at
<http://mail-index.netbsd.org/tech-net/2008/04/08/msg000371.html>,
let us add, delete, and activate link-layer addresses with ifconfig:

# ifconfig sip0 link 02:00:00:00:00:01 [add address]
# ifconfig sip0 link 02:00:00:00:00:02 [add address]
# ifconfig sip0 link 02:00:00:00:00:02 active [activate address]
# ifconfig sip0 link 02:00:00:00:00:01 delete [remove address]
 1.36  08-May-2008  dyoung Don't use -pedantic, it stops af_atalk.c and af_iso.c from building
if INET_ONLY is #defined.
 1.35  07-May-2008  dyoung Remove CPPFLAGS that are redundant when WARNS=4.
 1.34  06-May-2008  dyoung branches: 1.34.2;
Add WARNS=4 and a dependency on ${LIBPROP}.
 1.33  06-May-2008  dyoung Take out my CFLAGS settings for debugging.
 1.32  06-May-2008  dyoung Overhaul ifconfig. Use fewer global variables. Take a leap toward
improved modularity and extensibility.

In the new architecture, a directed graph of argument-matching
objects (match objects) expresses the set of feasible ifconfig
statements. Match objects are labelled by subroutines that provide
the statement semantics.

Many IPv4, IPv6, 802.11, tunnel, and media configurations have been
tested.

AppleTalk, ISO, carp(4), agr(4), and vlan(4) configuration need
testing.
 1.31  26-Aug-2006  matt branches: 1.31.18; 1.31.20;
Remove XNS support.
 1.30  18-May-2006  liamjfoy Integrate Common Address Redundancy Procotol (CARP) from OpenBSD

'pseudo-device carp'

Thanks to: joerg@ christos@ riz@ and others who tested
Ok: core@
 1.29  27-Jun-2005  christos Move WARNS=3 to the Makefile.inc, and add a little const to the remaining
programs that did not compile before.
 1.28  20-Mar-2005  yamt add a reminder comment for x_ifconfig.
 1.27  20-Mar-2005  thorpej Don't build af_inet6.c if USE_INET6 is no.
 1.26  20-Mar-2005  thorpej Split the IPv4 support into its own file.
 1.25  20-Mar-2005  thorpej Split IPv6 support out into its own file.
 1.24  20-Mar-2005  thorpej Split OSI support off into its own file.
 1.23  19-Mar-2005  thorpej Split XNS support into its own file.
 1.22  19-Mar-2005  thorpej Split off AppleTalk support into its own file.
 1.21  19-Mar-2005  thorpej Split off 802.11 interface handling into its own file.
 1.20  19-Mar-2005  thorpej Split tunnel support into its own file.
 1.19  19-Mar-2005  thorpej Split VLAN configuration bits out into a separate file.
 1.18  18-Mar-2005  yamt add agr(4), a pseudo network device driver for link aggregation.
 1.17  20-Jan-2005  xtraeme Fix the cast for the getnameinfo() call in the status() function, which
should be "const struct" not "struct" for sockaddr.

WARNS=3
 1.16  10-Jan-2005  lukem Only compile in IPv6 support if ${USE_INET6} != "no"

MKINET6 is for providing IPv6 infrastructure.
USE_INET6 is for compiling IPv6 support into the programs (needs MKINET6).
 1.15  28-Oct-2004  dsl More isdigit() calls that need (unsigned char) cast
 1.14  20-Sep-2002  christos use snprintb()
 1.13  28-Apr-2001  itojun assume the presense of getifaddrs(3).
 1.12  13-Apr-2000  itojun use getifaddrs, not SIOCGIFCONF, to avoid alignment constraints.
TODO: maybe it's better to pass struct ifaddrs * to in{,6}_alias.
 1.11  13-Dec-1999  itojun bring in KAME scopeid hack. always show scopeid if it is scoped.
sync with latest KAME.
 1.10  12-Dec-1999  itojun prepare -DKAME_SCOPEID for extended scope id printing (commented out)
 1.9  03-Jul-1999  itojun branches: 1.9.4;
s/CFLAGS/CPPFLAGS/ for -D and -I.
 1.8  01-Jul-1999  itojun make ifconfig IPv6-ready.
TODO: update manpage for new options.
 1.7  18-Mar-1995  cgd convert to new RCS Id conventions; reduce my headache
 1.6  22-Dec-1994  cgd specify man pages the new way.
 1.5  23-Sep-1994  mycroft Merge with 4.4-Lite version.
 1.4  01-Aug-1993  mycroft Add RCS identifiers.
 1.3  23-Mar-1993  cgd changed "Id" to "Header" for rcsids
 1.2  22-Mar-1993  cgd added rcs ids to all files
 1.1  21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2  23-Sep-1994  mycroft Import original 4.4-Lite version.
 1.1.1.1  21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.9.4.1  27-Dec-1999  wrstuden Pull up to last week's -current.
 1.31.20.1  18-May-2008  yamt sync with head.
 1.31.18.3  17-Jan-2009  mjf Sync with HEAD.
 1.31.18.2  28-Sep-2008  mjf Sync with HEAD.
 1.31.18.1  02-Jun-2008  mjf Sync with HEAD.
 1.34.2.2  18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.34.2.1  23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.38.2.2  08-Dec-2010  riz Pull up following revision(s) (requested by uwe in ticket #1490):
usr.bin/mkdep/Makefile: revision 1.16
sbin/dump_lfs/Makefile: revision 1.10
usr.sbin/services_mkdb/Makefile: revision 1.5
sbin/ifconfig/Makefile: revision 1.40
usr.sbin/racoonctl/Makefile: revision 1.3
sbin/sysctl/Makefile: revision 1.18
Comment out CFLAGS+=-g.
Disable debug.
 1.38.2.1  06-Dec-2008  snj Pull up following revision(s) (requested by tsutsui in ticket #164):
sbin/ifconfig/Makefile: revision 1.39
Specify -fno-loop-optimize on m68000 as workaround for gcc -O1 codegen bug
mentioned in PR bin/40036 and PR toolchain/40066.
 1.39.2.1  13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.52.2.2  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.52.2.1  30-Oct-2012  yamt sync with head
 1.53.2.1  23-Jun-2013  tls resync from head
 1.56.4.1  21-Apr-2017  bouyer Sync with HEAD
 1.56.2.1  20-Mar-2017  pgoyette Sync with HEAD
 1.61.16.1  02-Aug-2025  perseant Sync with HEAD

RSS XML Feed