The NetBSD Project

CVS log for src/sbin/ifconfig/ifconfig.c

[BACK] Up to [cvs.NetBSD.org] / src / sbin / ifconfig

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.250 / (download) - annotate - [select for diffs], Wed Jan 3 18:10:42 2024 UTC (2 months ago) by andvar
Branch: MAIN
CVS Tags: triaxx-drm, HEAD
Changes since 1.249: +4 -4 lines
Diff to previous 1.249 (colored)

s/addreseses/addresses/ in comments (and one missing whitespace).

Revision 1.249 / (download) - annotate - [select for diffs], Fri Nov 25 08:41:05 2022 UTC (15 months, 1 week ago) by knakahara
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10
Changes since 1.248: +4 -2 lines
Diff to previous 1.248 (colored)

ifconfig(8) support unnumbered flag.

Revision 1.248 / (download) - annotate - [select for diffs], Wed Oct 14 13:37:14 2020 UTC (3 years, 4 months ago) by roy
Branch: MAIN
CVS Tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.247: +12 -33 lines
Diff to previous 1.247 (colored)

ifconfig: go back to using direct ioctls rather than data from getifaddrs

AF_LINK may not be the first address returned for the interface.
Technically, it *might* not even exist on the interface even though
other families do.
This is likely a driver bug if this really is the case though.

As such it's just easier to use direct ioctls rather than thump around
getifaddrs results. As it stands, the code makes a lot of getifaddrs
calls anyway, so an extra ioctl or two won't break the bank.

Revision 1.247 / (download) - annotate - [select for diffs], Mon Sep 28 13:50:22 2020 UTC (3 years, 5 months ago) by roy
Branch: MAIN
Changes since 1.246: +15 -29 lines
Diff to previous 1.246 (colored)

ifconfig: Just look at if_data->ifi_link_state for carrier

It should be the sole source of truth.
if_data is also carried in ifa_data from getifaddrs(3) which saves
more ioctl calls.

Revision 1.246 / (download) - annotate - [select for diffs], Sat Sep 26 23:43:26 2020 UTC (3 years, 5 months ago) by roy
Branch: MAIN
Changes since 1.245: +16 -15 lines
Diff to previous 1.245 (colored)

ifconfig: We already have struct if_data in ifa_data.

So let's not bother with an ioctl we don't need.

Revision 1.245 / (download) - annotate - [select for diffs], Wed Sep 23 10:48:12 2020 UTC (3 years, 5 months ago) by roy
Branch: MAIN
Changes since 1.244: +5 -5 lines
Diff to previous 1.244 (colored)

ifconfig: test cases want LINK_STATE_UNKNOWN to be treated as up.

Revision 1.244 / (download) - annotate - [select for diffs], Wed Sep 23 02:09:18 2020 UTC (3 years, 5 months ago) by roy
Branch: MAIN
Changes since 1.243: +12 -7 lines
Diff to previous 1.243 (colored)

ifconfig: teach carrier test about ifi_link_state from SIOCGIFDATA

Because not all interfaces support media.

Revision 1.243 / (download) - annotate - [select for diffs], Tue Sep 22 14:14:17 2020 UTC (3 years, 5 months ago) by roy
Branch: MAIN
Changes since 1.242: +11 -11 lines
Diff to previous 1.242 (colored)

ifconfig: Report link state even if media is not supported

For AF_LINK addrs from getifaddrs(2), ifa_data is struct if_data.
This in turn holds ifi_link_state which we can use to report
link status if the interface does not support media where it's normally
reported.

Based on OpenBSD.

Revision 1.242 / (download) - annotate - [select for diffs], Sun Jun 7 06:02:58 2020 UTC (3 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.241: +11 -11 lines
Diff to previous 1.241 (colored)

Update for proplib(3) API changes.

Revision 1.236.16.3 / (download) - annotate - [select for diffs], Mon Apr 13 08:03:20 2020 UTC (3 years, 10 months ago) by martin
Branch: phil-wifi
Changes since 1.236.16.2: +69 -1 lines
Diff to previous 1.236.16.2 (colored) to branchpoint 1.236 (colored) next main 1.237 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.236.16.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:07:19 2020 UTC (3 years, 10 months ago) by martin
Branch: phil-wifi
Changes since 1.236.16.1: +4 -4 lines
Diff to previous 1.236.16.1 (colored) to branchpoint 1.236 (colored)

Merge changes from current as of 20200406

Revision 1.241 / (download) - annotate - [select for diffs], Thu Jan 2 23:02:19 2020 UTC (4 years, 2 months ago) by ryo
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp
Changes since 1.240: +4 -4 lines
Diff to previous 1.240 (colored)

fix printing capabilities and enabled flags.

no need to skip a prefix "0x" of output of snprintb.
ifconfig expect the result of snprintb has "0x" prefix, but snprintb(3) specification has changed
so that if 0 is passed, it prints "0" instead of "0x0". (common/lib/libutil/snprintb.c r1.22)

Revision 1.240 / (download) - annotate - [select for diffs], Fri Aug 16 10:33:17 2019 UTC (4 years, 6 months ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-20191119
Changes since 1.239: +11 -11 lines
Diff to previous 1.239 (colored)

 Whitespace fix.

Revision 1.239 / (download) - annotate - [select for diffs], Thu Jul 4 02:45:45 2019 UTC (4 years, 8 months ago) by ozaki-r
Branch: MAIN
CVS Tags: netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9
Changes since 1.238: +70 -2 lines
Diff to previous 1.238 (colored)

Add descr,description/-descr,-description commands to ifconfig(8) to handle a description.

From t-kusaba@IIJ

Revision 1.236.16.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:05:34 2019 UTC (4 years, 8 months ago) by christos
Branch: phil-wifi
Changes since 1.236: +4 -2 lines
Diff to previous 1.236 (colored)

Sync with HEAD

Revision 1.236.14.2 / (download) - annotate - [select for diffs], Wed Dec 26 14:01:29 2018 UTC (5 years, 2 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.236.14.1: +3 -2 lines
Diff to previous 1.236.14.1 (colored) to branchpoint 1.236 (colored) next main 1.237 (colored)

Sync with HEAD, resolve a few conflicts

Revision 1.238 / (download) - annotate - [select for diffs], Fri Dec 21 08:58:08 2018 UTC (5 years, 2 months ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226
Changes since 1.237: +3 -2 lines
Diff to previous 1.237 (colored)

 Add SIOCSETHERCAP. It's used to change ec_capenable.

Revision 1.236.14.1 / (download) - annotate - [select for diffs], Mon Nov 26 01:52:14 2018 UTC (5 years, 3 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.236: +3 -2 lines
Diff to previous 1.236 (colored)

Sync with HEAD, resolve a couple of conflicts

Revision 1.237 / (download) - annotate - [select for diffs], Thu Nov 15 04:36:46 2018 UTC (5 years, 3 months ago) by ozaki-r
Branch: MAIN
CVS Tags: pgoyette-compat-1126
Changes since 1.236: +3 -2 lines
Diff to previous 1.236 (colored)

ifconfig: add linkstr/-linkstr to the help message

Revision 1.236 / (download) - annotate - [select for diffs], Thu Jan 7 11:32:21 2016 UTC (8 years, 1 month ago) by roy
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-base, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: phil-wifi, pgoyette-compat
Changes since 1.235: +37 -15 lines
Diff to previous 1.235 (colored)

-W seconds will wait for the detached flag to clear on addresses on
interfaces marked up to allow time for the carrier to appear on the
interface.

This does not extend the -w option duration.

Revision 1.235 / (download) - annotate - [select for diffs], Wed Jul 29 07:42:27 2015 UTC (8 years, 7 months ago) by ozaki-r
Branch: MAIN
Changes since 1.234: +4 -8 lines
Diff to previous 1.234 (colored)

Don't divide flags output

If there are many enabled flags, ifconfig divides flags output into
multiple formatted strings due to snprintb_m, e.g.,
  wm0: flags=8b43<UP,BROADCAST,RUNNING,PROMISC,ALLMULTI,SIMPLEX>wm0: flags=8b43<MULTICAST> mtu 1500

This behavior is probably unexpected. The change always outputs enabled
flags at once like this:
  wm0: flags=8b43<UP,BROADCAST,RUNNING,PROMISC,ALLMULTI,SIMPLEX,MULTICAST> mtu 1500

Revision 1.234 / (download) - annotate - [select for diffs], Wed Apr 22 17:42:22 2015 UTC (8 years, 10 months ago) by roy
Branch: MAIN
Changes since 1.233: +9 -26 lines
Diff to previous 1.233 (colored)

Move the INET6 specific code for wait_dad_exec() into af_inet6
by using a new afswtch hook af_addr_tentative.

Revision 1.233 / (download) - annotate - [select for diffs], Fri Sep 12 08:54:26 2014 UTC (9 years, 5 months ago) by martin
Branch: MAIN
Changes since 1.232: +3 -3 lines
Diff to previous 1.232 (colored)

Initialize timespec "end" for the benefit of some gcc versions getting
"may be used uninitialized" warnings wrong.

Revision 1.232 / (download) - annotate - [select for diffs], Thu Sep 11 13:10:04 2014 UTC (9 years, 5 months ago) by roy
Branch: MAIN
Changes since 1.231: +97 -9 lines
Diff to previous 1.231 (colored)

Remove rtsol(8) and rtsold(8) as their functionality is in dhcpcd(8).
Remove rtsol(8) from rc.d/network.
Add -w seconds command to ifconfig to wait for N seconds for until DAD
has finished on all addresses.
Use ifconfig -w in rc.d/network instead of a forced sleep.

As discussed on tech-net@

Revision 1.227.6.3 / (download) - annotate - [select for diffs], Wed Aug 20 00:02:25 2014 UTC (9 years, 6 months ago) by tls
Branch: tls-maxphys
Changes since 1.227.6.2: +2 -12 lines
Diff to previous 1.227.6.2 (colored) to branchpoint 1.227 (colored) next main 1.228 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.226.2.3 / (download) - annotate - [select for diffs], Thu May 22 11:37:28 2014 UTC (9 years, 9 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.226.2.2: +7 -13 lines
Diff to previous 1.226.2.2 (colored) to branchpoint 1.226 (colored) next main 1.227 (colored)

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")

Revision 1.231 / (download) - annotate - [select for diffs], Sat Oct 19 00:35:30 2013 UTC (10 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Changes since 1.230: +2 -11 lines
Diff to previous 1.230 (colored)

use the new scopeid functions

Revision 1.230 / (download) - annotate - [select for diffs], Wed Jul 17 15:40:42 2013 UTC (10 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2
Changes since 1.229: +2 -3 lines
Diff to previous 1.229 (colored)

Allow -v to be used with other commands (list scan for example) as documented.

Revision 1.227.6.2 / (download) - annotate - [select for diffs], Mon Feb 25 00:28:08 2013 UTC (11 years ago) by tls
Branch: tls-maxphys
Changes since 1.227.6.1: +7 -3 lines
Diff to previous 1.227.6.1 (colored) to branchpoint 1.227 (colored)

resync with head

Revision 1.229 / (download) - annotate - [select for diffs], Thu Feb 7 13:21:34 2013 UTC (11 years ago) by apb
Branch: MAIN
CVS Tags: agc-symver-base, agc-symver
Changes since 1.228: +7 -3 lines
Diff to previous 1.228 (colored)

Abort on error from prop_dictionary_augment.

Revision 1.226.2.2 / (download) - annotate - [select for diffs], Wed Jan 16 05:32:33 2013 UTC (11 years, 1 month ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.226.2.1: +26 -10 lines
Diff to previous 1.226.2.1 (colored) to branchpoint 1.226 (colored)

sync with (a bit old) head

Revision 1.227.6.1 / (download) - annotate - [select for diffs], Tue Nov 20 03:00:48 2012 UTC (11 years, 3 months ago) by tls
Branch: tls-maxphys
Changes since 1.227: +26 -10 lines
Diff to previous 1.227 (colored)

Resync to 2012-11-19 00:00:00 UTC

Revision 1.228 / (download) - annotate - [select for diffs], Thu Nov 1 13:43:23 2012 UTC (11 years, 4 months ago) by pgoyette
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7
Changes since 1.227: +26 -10 lines
Diff to previous 1.227 (colored)

Use snprintb_m(3) to split flags/capabilities/enabled across multiple
output lines.

As discussed on current-users

Revision 1.226.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:05:40 2012 UTC (11 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.226: +15 -11 lines
Diff to previous 1.226 (colored)

sync with head

Revision 1.227 / (download) - annotate - [select for diffs], Sat Jan 28 15:01:44 2012 UTC (12 years, 1 month ago) by mbalmer
Branch: MAIN
CVS Tags: yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Branch point for: tls-maxphys
Changes since 1.226: +15 -11 lines
Diff to previous 1.226 (colored)

When ifconfig is invoked without any arguments, display the list of
all network interfaces (equivalent to ifconfig -a), instead of displaying
the usage.  (This is consistent with the behaviour on FreeBSD and OpenBSD.)

Revision 1.226 / (download) - annotate - [select for diffs], Mon Aug 29 14:35:00 2011 UTC (12 years, 6 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base
Branch point for: yamt-pagecache
Changes since 1.225: +3 -3 lines
Diff to previous 1.225 (colored)

Use __dead

Revision 1.225 / (download) - annotate - [select for diffs], Tue Dec 14 10:51:51 2010 UTC (13 years, 2 months ago) by pooka
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.224: +10 -4 lines
Diff to previous 1.224 (colored)

A few weeks ago when i added "linkstr" support I didn't know that
the string parser gives a proplib object which isn't a terminated
string.  Fix that mistake now.

Revision 1.224 / (download) - annotate - [select for diffs], Mon Dec 13 17:35:08 2010 UTC (13 years, 2 months ago) by pooka
Branch: MAIN
Changes since 1.223: +13 -13 lines
Diff to previous 1.223 (colored)

Convert from the .ifdef RUMP_ACTION stuff to RUMPPRG.

Revision 1.223 / (download) - annotate - [select for diffs], Mon Nov 15 22:42:37 2010 UTC (13 years, 3 months ago) by pooka
Branch: MAIN
Changes since 1.222: +71 -2 lines
Diff to previous 1.222 (colored)

Implement ifconfig linkstr as proposed on tech-net.

Revision 1.222 / (download) - annotate - [select for diffs], Fri Nov 5 13:52:41 2010 UTC (13 years, 4 months ago) by pooka
Branch: MAIN
Changes since 1.221: +4 -6 lines
Diff to previous 1.221 (colored)

adapt to new rumpclient_init() signature

Revision 1.221 / (download) - annotate - [select for diffs], Thu Nov 4 23:31:12 2010 UTC (13 years, 4 months ago) by pooka
Branch: MAIN
Changes since 1.220: +6 -3 lines
Diff to previous 1.220 (colored)

Update RUMP_ACTION to use the newstyle rump client.

Revision 1.213.2.1.4.1 / (download) - annotate - [select for diffs], Wed Apr 21 05:26:34 2010 UTC (13 years, 10 months ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Changes since 1.213.2.1: +8 -13 lines
Diff to previous 1.213.2.1 (colored) next main 1.213.2.2 (colored)

sync to netbsd-5

Revision 1.220 / (download) - annotate - [select for diffs], Fri Aug 7 18:53:37 2009 UTC (14 years, 7 months ago) by dyoung
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.219: +8 -5 lines
Diff to previous 1.219 (colored)

Add option -N.  -N is just the opposite of option -n in netstat(8)
or route(8): it tells ifconfig(8) to try to resolve numbers to
hosts and service names.

This default ifconfig behavior stays the same as it always was.

Revision 1.219 / (download) - annotate - [select for diffs], Tue May 26 16:03:24 2009 UTC (14 years, 9 months ago) by pooka
Branch: MAIN
Changes since 1.218: +5 -2 lines
Diff to previous 1.218 (colored)

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.

Revision 1.214.2.1 / (download) - annotate - [select for diffs], Wed May 13 19:19:02 2009 UTC (14 years, 9 months ago) by jym
Branch: jym-xensuspend
Changes since 1.214: +9 -14 lines
Diff to previous 1.214 (colored) next main 1.215 (colored)

Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html

Revision 1.213.2.2 / (download) - annotate - [select for diffs], Sun May 3 13:17:52 2009 UTC (14 years, 10 months ago) by bouyer
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, matt-nb5-pq3-base, matt-nb5-pq3
Changes since 1.213.2.1: +8 -13 lines
Diff to previous 1.213.2.1 (colored) to branchpoint 1.213 (colored) next main 1.214 (colored)

Pull up following revision(s) (requested by dyoung in ticket #730):
	sbin/ifconfig/af_link.c: revisions 1.4 - 1.6
	sbin/ifconfig/util.h: revision 1.7
	sbin/ifconfig/util.c: revisions 1.10, 1.11
	lib/libc/net/getifaddrs.c: revision 1.12
	lib/libc/net/getifaddrs.3: revision 1.10
	sbin/ifconfig/ifconfig.c: revisions 1.216 - 1.218
Fix indentation: change spaces to tabs.
Use getnameinfo(3) to render a human-readable link-layer address in the
'address: ' line, just as we do in the 'link xx:xx:...:xx' line.
There's no use casting a socket address to sockaddr_dl, only to cast it
back to sockaddr, so don't do it.
Cosmetic: add some whitespace for my ease of reading.
To make sure that we always print the active link-layer address in the
'address: ' field, don't treat the first address as the active address,
but search the link-layer addresses for the ones flagged IFLR_ACTIVE,
and print those.  Extract a subroutine, print_link_addresses(), for
printing link-layer addresses.
For non-AF_LINK ifaddrs, ifa_data is NULL.  AFAICT, this has always been
so.  Say so in the documentation.
Bring getifaddrs(3) behavior in line with the documentation: the
ifa_data member of every AF_LINK struct ifaddrs points at the
corresponding struct if_data.  In ifconfig(8), do not try to suppress
duplicate AF_LINK ifaddrs by checking for a NULL ifa_data.
Don't copy out two AF_LINK struct ifaddrs for each active link-layer
address. getifaddrs(3) used to copy out one ifaddrs for the kernel's
RTM_IFINFO message, and one more for the kernel's RTM_NEWADDR message.
I suppress the first duplicate with a highly conservative change that
wastes a little bit of ifaddrs storage.  The storage is not leaked.

Revision 1.218 / (download) - annotate - [select for diffs], Tue Apr 21 22:46:39 2009 UTC (14 years, 10 months ago) by dyoung
Branch: MAIN
CVS Tags: jym-xensuspend-nbase, jym-xensuspend-base
Changes since 1.217: +3 -8 lines
Diff to previous 1.217 (colored)

To make sure that we always print the active link-layer address in the
'address: ' field, don't treat the first address as the active address,
but search the link-layer addresses for the ones flagged IFLR_ACTIVE,
and print those.  Extract a subroutine, print_link_addresses(), for
printing link-layer addresses.

Revision 1.217 / (download) - annotate - [select for diffs], Tue Apr 21 22:13:10 2009 UTC (14 years, 10 months ago) by dyoung
Branch: MAIN
Changes since 1.216: +3 -3 lines
Diff to previous 1.216 (colored)

Cosmetic: add some whitespace for my ease of reading.

Revision 1.216 / (download) - annotate - [select for diffs], Tue Apr 21 21:57:14 2009 UTC (14 years, 10 months ago) by dyoung
Branch: MAIN
Changes since 1.215: +7 -7 lines
Diff to previous 1.215 (colored)

There's no use casting a socket address to sockaddr_dl, only to cast it
back to sockaddr, so don't do it.

Revision 1.213.2.1 / (download) - annotate - [select for diffs], Sat Apr 4 18:22:54 2009 UTC (14 years, 11 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b
Branch point for: matt-nb5-mips64
Changes since 1.213: +3 -3 lines
Diff to previous 1.213 (colored)

Pull up following revision(s) (requested by plunky in ticket #665):
	sbin/ifconfig/ifconfig.c: revision 1.215
Because the IFF_NOARP flag is a negative option it needs to be negated
when being applied from the "arp" option which itself is positive.
problem demonstrated by
# ifconfig tap3 create
# ifconfig tap3
tap3: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
        address: f2:0b:a4:7f:44:03
        media: Ethernet autoselect
# ifconfig tap3 arp
# ifconfig tap3
tap3: flags=8882<BROADCAST,NOARP,SIMPLEX,MULTICAST> mtu 1500
        address: f2:0b:a4:7f:44:03
        media: Ethernet autoselect
# ifconfig tap3 -arp
# ifconfig tap3
tap3: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
        address: f2:0b:a4:7f:44:03
        media: Ethernet autoselect
# ifconfig tap3 destroy
#

Revision 1.215 / (download) - annotate - [select for diffs], Sat Apr 4 17:10:19 2009 UTC (14 years, 11 months ago) by plunky
Branch: MAIN
Changes since 1.214: +3 -3 lines
Diff to previous 1.214 (colored)

Because the IFF_NOARP flag is a negative option it needs to be negated
when being applied from the "arp" option which itself is positive.

problem demonstrated by

# ifconfig tap3 create
# ifconfig tap3
tap3: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
	address: f2:0b:a4:7f:44:03
	media: Ethernet autoselect
# ifconfig tap3 arp
# ifconfig tap3
tap3: flags=8882<BROADCAST,NOARP,SIMPLEX,MULTICAST> mtu 1500
	address: f2:0b:a4:7f:44:03
	media: Ethernet autoselect
# ifconfig tap3 -arp
# ifconfig tap3
tap3: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
	address: f2:0b:a4:7f:44:03
	media: Ethernet autoselect
# ifconfig tap3 destroy
#

Revision 1.214 / (download) - annotate - [select for diffs], Sun Jan 18 00:24:29 2009 UTC (15 years, 1 month ago) by lukem
Branch: MAIN
Branch point for: jym-xensuspend
Changes since 1.213: +3 -3 lines
Diff to previous 1.213 (colored)

fix -Wsign-compare issues

Revision 1.181.4.3 / (download) - annotate - [select for diffs], Sun Sep 28 11:17:11 2008 UTC (15 years, 5 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.181.4.2: +342 -870 lines
Diff to previous 1.181.4.2 (colored) to branchpoint 1.181 (colored) next main 1.182 (colored)

Sync with HEAD.

Revision 1.193.2.2 / (download) - annotate - [select for diffs], Thu Sep 18 04:28:24 2008 UTC (15 years, 5 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.193.2.1: +344 -872 lines
Diff to previous 1.193.2.1 (colored) next main 1.194 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.213 / (download) - annotate - [select for diffs], Fri Aug 1 22:29:13 2008 UTC (15 years, 7 months ago) by dyoung
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, netbsd-5-base, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, mjf-devfs2-base, matt-mips64-base2
Branch point for: netbsd-5
Changes since 1.212: +3 -4 lines
Diff to previous 1.212 (colored)

Extract common code.  Create subroutine paddr_prefix_size().

Revision 1.212 / (download) - annotate - [select for diffs], Sun Jul 20 01:20:22 2008 UTC (15 years, 7 months ago) by lukem
Branch: MAIN
Changes since 1.211: +4 -4 lines
Diff to previous 1.211 (colored)

Remove the \n and tabs from the __COPYRIGHT() strings.
(Tweak some to use a consistent format.)

Revision 1.211 / (download) - annotate - [select for diffs], Tue Jul 15 21:27:58 2008 UTC (15 years, 7 months ago) by dyoung
Branch: MAIN
Changes since 1.210: +28 -28 lines
Diff to previous 1.210 (colored)

Cosmetic: s/xenv/oenv/

Revision 1.210 / (download) - annotate - [select for diffs], Tue Jul 15 21:19:24 2008 UTC (15 years, 7 months ago) by dyoung
Branch: MAIN
Changes since 1.209: +3 -3 lines
Diff to previous 1.209 (colored)

Make usage() static.

Revision 1.209 / (download) - annotate - [select for diffs], Tue Jul 15 20:56:13 2008 UTC (15 years, 7 months ago) by dyoung
Branch: MAIN
Changes since 1.208: +45 -29 lines
Diff to previous 1.208 (colored)

Only describe flags -L and -m in the usage if they are available.
That helps me get rid of some conditional compilation (INET6) in
ifconfig.

Let each protocol/feature-module print its own usage, so that the
ifconfig usage reflects the modules that are actually compiled-in.

Write usage information for carp(4) options.

Revision 1.208 / (download) - annotate - [select for diffs], Wed Jul 2 07:44:14 2008 UTC (15 years, 8 months ago) by dyoung
Branch: MAIN
Changes since 1.207: +274 -817 lines
Diff to previous 1.207 (colored)

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.

Revision 1.181.4.2 / (download) - annotate - [select for diffs], Sun Jun 29 08:41:57 2008 UTC (15 years, 8 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.181.4.1: +2 -2 lines
Diff to previous 1.181.4.1 (colored) to branchpoint 1.181 (colored)

Sync with HEAD.

Revision 1.193.2.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:29:57 2008 UTC (15 years, 8 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.193: +67 -219 lines
Diff to previous 1.193 (colored)

Sync w/ -current. 34 merge conflicts to follow.

Revision 1.184.2.3 / (download) - annotate - [select for diffs], Tue Jun 17 09:13:39 2008 UTC (15 years, 8 months ago) by yamt
Branch: yamt-pf42
Changes since 1.184.2.2: +4 -4 lines
Diff to previous 1.184.2.2 (colored) to branchpoint 1.184 (colored) next main 1.185 (colored)

sync with head.

Revision 1.184.2.2 / (download) - annotate - [select for diffs], Wed Jun 4 02:04:37 2008 UTC (15 years, 9 months ago) by yamt
Branch: yamt-pf42
Changes since 1.184.2.1: +11 -11 lines
Diff to previous 1.184.2.1 (colored) to branchpoint 1.184 (colored)

sync with head

Revision 1.207 / (download) - annotate - [select for diffs], Tue Jun 3 21:03:27 2008 UTC (15 years, 9 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-pf42-base4, wrstuden-revivesa-base-1, wrstuden-revivesa-base
Changes since 1.206: +3 -3 lines
Diff to previous 1.206 (colored)

Remove one more struct afswtch.af_getprefix() remnant.

Revision 1.206 / (download) - annotate - [select for diffs], Tue Jun 3 21:02:49 2008 UTC (15 years, 9 months ago) by dyoung
Branch: MAIN
Changes since 1.205: +3 -3 lines
Diff to previous 1.205 (colored)

Remove remnants of struct afswtch.af_getprefix().

Revision 1.181.4.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:21:22 2008 UTC (15 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.181: +992 -755 lines
Diff to previous 1.181 (colored)

Sync with HEAD.

Revision 1.205 / (download) - annotate - [select for diffs], Mon May 19 18:00:31 2008 UTC (15 years, 9 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-pf42-base3, hpcarm-cleanup-nbase
Changes since 1.204: +11 -11 lines
Diff to previous 1.204 (colored)

Fix two bugs:

1 Let us associate a keyword with either a signed or an unsigned
  number.  Associate the '-chan' keyword with an unsigned number.
  This fixes the defect that crashed 'ifconfig wi0 -chan', reported
  by Michael van Elst.

2 Do not try to interpret names as ISO addresses unless the ISO
  address family was specified.  iso_addr(3) does not report errors,
  so it appears to interpret *everything* as an ISO address.  This
  is a stopgap fix for the defect in 'ifconfig lo0 inet6' on a
  !INET6 kernel that deletes the first IPv4 address on lo0.
  (Reported by Scott Ellis.)

Revision 1.184.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:30:53 2008 UTC (15 years, 9 months ago) by yamt
Branch: yamt-pf42
Changes since 1.184: +992 -741 lines
Diff to previous 1.184 (colored)

sync with head.

Revision 1.204 / (download) - annotate - [select for diffs], Mon May 12 22:06:13 2008 UTC (15 years, 9 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-pf42-base2
Changes since 1.203: +11 -5 lines
Diff to previous 1.203 (colored)

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]

Revision 1.203 / (download) - annotate - [select for diffs], Sun May 11 22:07:23 2008 UTC (15 years, 9 months ago) by dyoung
Branch: MAIN
Changes since 1.202: +4 -8 lines
Diff to previous 1.202 (colored)

Let the address family modules zero initialize their own ifreqs,
instead of zeroing them in commit_address().

Switch to in6_commit_address() from in6_getprefix() and in6_getaddr().

Temporarily add some debugging code to setia6eui64_impl().

Revision 1.202 / (download) - annotate - [select for diffs], Thu May 8 07:13:20 2008 UTC (15 years, 10 months ago) by dyoung
Branch: MAIN
Changes since 1.201: +3 -3 lines
Diff to previous 1.201 (colored)

Move IPv4/IPv6-specific code from commit_address() to in_commit_address()
and in6_commit_address().  Fixes the USE_INET6=no build.

Revision 1.201 / (download) - annotate - [select for diffs], Wed May 7 23:55:06 2008 UTC (15 years, 10 months ago) by dyoung
Branch: MAIN
Changes since 1.200: +31 -109 lines
Diff to previous 1.200 (colored)

Factor out common code, creating direct_ioctl() and indirect_ioctl()
for the two most prevalent styles of ioctl(2) calls in ifconfig(8).

Revision 1.200 / (download) - annotate - [select for diffs], Wed May 7 21:29:27 2008 UTC (15 years, 10 months ago) by dyoung
Branch: MAIN
Changes since 1.199: +4 -40 lines
Diff to previous 1.199 (colored)

Move IPv6 syntax to af_inet6.c from ifconfig.c.  Move IFKW() macro
from ifconfig.c to parse.h for reuse.

Revision 1.199 / (download) - annotate - [select for diffs], Wed May 7 20:45:01 2008 UTC (15 years, 10 months ago) by dyoung
Branch: MAIN
Changes since 1.198: +7 -18 lines
Diff to previous 1.198 (colored)

Move ISO, AppleTalk, carp(4) syntax from ifconfig.c to af_iso.c,
af_atalk.c, carp.c, respectively.

Revision 1.198 / (download) - annotate - [select for diffs], Wed May 7 20:12:31 2008 UTC (15 years, 10 months ago) by dyoung
Branch: MAIN
Changes since 1.197: +9 -9 lines
Diff to previous 1.197 (colored)

Sprinkle 'static const' on keyword objects.

Revision 1.197 / (download) - annotate - [select for diffs], Wed May 7 20:11:15 2008 UTC (15 years, 10 months ago) by dyoung
Branch: MAIN
Changes since 1.196: +3 -7 lines
Diff to previous 1.196 (colored)

Move vlan(4) syntax from ifconfig.c into vlan.c.

Revision 1.196 / (download) - annotate - [select for diffs], Wed May 7 20:03:27 2008 UTC (15 years, 10 months ago) by dyoung
Branch: MAIN
Changes since 1.195: +4 -7 lines
Diff to previous 1.195 (colored)

Move tunnel syntax into tunnel.c.  Move net80211 'list' command
syntax into ieee80211.c.

Revision 1.195 / (download) - annotate - [select for diffs], Wed May 7 19:55:24 2008 UTC (15 years, 10 months ago) by dyoung
Branch: MAIN
Changes since 1.194: +6 -28 lines
Diff to previous 1.194 (colored)

Move net80211 and agr(4) syntax out of ifconfig.c and into ieee80211.c
and agr.c, respectively.

Revision 1.194 / (download) - annotate - [select for diffs], Wed May 7 18:08:30 2008 UTC (15 years, 10 months ago) by dyoung
Branch: MAIN
Changes since 1.193: +3 -3 lines
Diff to previous 1.193 (colored)

Fix a bug that I introduced in rev 1.88, where the default IPv6
prefix length changed from 64 to 128.  While I am here, allow an
address to be given with prefix length /0, but interpret it as
/128.

Revision 1.193 / (download) - annotate - [select for diffs], Tue May 6 21:58:05 2008 UTC (15 years, 10 months ago) by dyoung
Branch: MAIN
Branch point for: wrstuden-revivesa
Changes since 1.192: +6 -4 lines
Diff to previous 1.192 (colored)

Use the right key, "ifcaps" not "ifcap", in do_setifcaps().  assert()
that the object associated with that key is the right size.

Revision 1.192 / (download) - annotate - [select for diffs], Tue May 6 21:20:05 2008 UTC (15 years, 10 months ago) by dyoung
Branch: MAIN
Changes since 1.191: +20 -10 lines
Diff to previous 1.191 (colored)

Extract subroutine do_setifcaps() and fix the bug that uwe@ reported
in capabilities-setting.

Use prop_dictionary_util(3).

Rename the parser snpaoffset to parse_snpaoffset.

Revision 1.191 / (download) - annotate - [select for diffs], Tue May 6 18:16:34 2008 UTC (15 years, 10 months ago) by dyoung
Branch: MAIN
Changes since 1.190: +3 -3 lines
Diff to previous 1.190 (colored)

Fix syntax error in last.

Revision 1.190 / (download) - annotate - [select for diffs], Tue May 6 18:09:50 2008 UTC (15 years, 10 months ago) by dyoung
Branch: MAIN
Changes since 1.189: +6 -9 lines
Diff to previous 1.189 (colored)

Cosmetic: use return rc ? 0 : -1;

Make sure to release a prop_object_t that I am no longer using.

Revision 1.189 / (download) - annotate - [select for diffs], Tue May 6 17:29:04 2008 UTC (15 years, 10 months ago) by dyoung
Branch: MAIN
Changes since 1.188: +63 -65 lines
Diff to previous 1.188 (colored)

Use prop_dictionary_util(3) some more.

When we read interface flags and capabilities from the kernel, take
care not to record them in our current environment (env), but record
them in the output environment (oenv), instead.  This helps us get
interface capabilities and flags right.

Revision 1.188 / (download) - annotate - [select for diffs], Tue May 6 16:15:17 2008 UTC (15 years, 10 months ago) by dyoung
Branch: MAIN
Changes since 1.187: +19 -33 lines
Diff to previous 1.187 (colored)

Rename in_addr_commit() to commit_address(), and refactor slightly
to support IPv6 as well as IPv4 (a work in progress).

Make the second argument of af_status() a bool instead of an int.

Exit early with an error if the operator specifies an unsupported
address family on the command line.  The change should help rc
scripts to detect that IPv6 support is missing from the kernel,
with 'ifconfig lo0 inet6'.

Start using prop_dictionary_util(3).

Revision 1.187 / (download) - annotate - [select for diffs], Tue May 6 04:33:42 2008 UTC (15 years, 10 months ago) by dyoung
Branch: MAIN
Changes since 1.186: +1128 -712 lines
Diff to previous 1.186 (colored)

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.

Revision 1.186 / (download) - annotate - [select for diffs], Mon Apr 28 20:23:08 2008 UTC (15 years, 10 months ago) by martin
Branch: MAIN
Changes since 1.185: +2 -9 lines
Diff to previous 1.185 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.185 / (download) - annotate - [select for diffs], Mon Apr 21 05:33:55 2008 UTC (15 years, 10 months ago) by dyoung
Branch: MAIN
Changes since 1.184: +7 -6 lines
Diff to previous 1.184 (colored)

Change int to bool in a couple of places.

Revision 1.184 / (download) - annotate - [select for diffs], Tue Apr 15 22:26:58 2008 UTC (15 years, 10 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base
Branch point for: yamt-pf42
Changes since 1.183: +2 -9 lines
Diff to previous 1.183 (colored)

Straggler from last: call fewer protocol family-specific initialization
routines from main(), since the protocol-family modules are taking
care of it.

Revision 1.183 / (download) - annotate - [select for diffs], Mon Apr 14 15:57:15 2008 UTC (15 years, 10 months ago) by dyoung
Branch: MAIN
Changes since 1.182: +2 -7 lines
Diff to previous 1.182 (colored)

Cosmetic: delete dead code.

Revision 1.182 / (download) - annotate - [select for diffs], Fri Apr 11 01:14:28 2008 UTC (15 years, 10 months ago) by dyoung
Branch: MAIN
Changes since 1.181: +27 -29 lines
Diff to previous 1.181 (colored)

Cosmetic: use NULL instead of 0 for pointers.  Shorten staircase.

Revision 1.181.2.1 / (download) - annotate - [select for diffs], Fri Feb 22 02:53:32 2008 UTC (16 years ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.181: +6 -2 lines
Diff to previous 1.181 (colored) next main 1.182 (colored)

imported Mobile IPv6 code developed by the SHISA project
(http://www.mobileip.jp/).

Revision 1.180.4.1 / (download) - annotate - [select for diffs], Wed Jan 9 01:38:08 2008 UTC (16 years, 1 month ago) by matt
Branch: matt-armv6
Changes since 1.180: +4 -2 lines
Diff to previous 1.180 (colored) next main 1.181 (colored)

sync with HEAD

Revision 1.180.6.1 / (download) - annotate - [select for diffs], Thu Dec 27 00:46:59 2007 UTC (16 years, 2 months ago) by mjf
Branch: mjf-devfs
Changes since 1.180: +4 -2 lines
Diff to previous 1.180 (colored) next main 1.181 (colored)

Sync with HEAD.

Revision 1.181 / (download) - annotate - [select for diffs], Sun Dec 16 13:49:22 2007 UTC (16 years, 2 months ago) by degroote
Branch: MAIN
CVS Tags: mjf-devfs-base, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-base, hpcarm-cleanup-base
Branch point for: mjf-devfs2, keiichi-mipv6
Changes since 1.180: +4 -2 lines
Diff to previous 1.180 (colored)

Add support for the command list scan in ifconfig (this command permits to scan
access point in the neighbourhood).

Complete list of channel attributes and list of management information element
payload.

While here, use estrlcpy instead of strncpy.

From FreeBSD ifconfig and net80211

Revision 1.152.2.2 / (download) - annotate - [select for diffs], Sun Oct 14 05:54:35 2007 UTC (16 years, 4 months ago) by riz
Branch: netbsd-3
Changes since 1.152.2.1: +26 -2 lines
Diff to previous 1.152.2.1 (colored) to branchpoint 1.152 (colored) next main 1.153 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #1801):
	sbin/ifconfig/ifconfig.c: revision 1.173 via patch

        If the kernel does not set the interface up after we set an address,
        do it explicitly, unless we (previously) set it down on user request
        (i.e. "ifconfig <name> x.x.x.x down").

        This will allow the network drivers to be "fixed" while keeping visible
        behaviour the same. Part of fixing PR 30694.

Revision 1.180 / (download) - annotate - [select for diffs], Tue Jan 9 09:19:02 2007 UTC (17 years, 1 month ago) by dyoung
Branch: MAIN
CVS Tags: matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, hpcarm-cleanup, cube-autoconf-base, cube-autoconf
Branch point for: mjf-devfs, matt-armv6
Changes since 1.179: +4 -2 lines
Diff to previous 1.179 (colored)

Let us adjust the 802.11 fragmentation threshold with ifconfig ath0
frag 256, for example.

Revision 1.179 / (download) - annotate - [select for diffs], Thu Nov 23 19:43:52 2006 UTC (17 years, 3 months ago) by yamt
Branch: MAIN
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4
Changes since 1.178: +4 -2 lines
Diff to previous 1.178 (colored)

implement ipv6 TSO.
partly from Matthias Scheler.  tested by him.

Revision 1.178 / (download) - annotate - [select for diffs], Mon Nov 13 05:13:39 2006 UTC (17 years, 3 months ago) by dyoung
Branch: MAIN
Changes since 1.177: +36 -3 lines
Diff to previous 1.177 (colored)

Add a source-address selection policy mechanism to the kernel.

Also, add ioctls SIOCGIFADDRPREF/SIOCSIFADDRPREF to get/set preference
numbers for addresses.  Make ifconfig(8) set/display preference
numbers.

To activate source-address selection policies in your kernel, add
'options IPSELSRC' to your kernel configuration.

Miscellaneous changes in support of source-address selection:

        1 Factor out some common code, producing rt_replace_ifa().

        2 Abbreviate a for-loop with TAILQ_FOREACH().

        3 Add the predicates on IPv4 addresses IN_LINKLOCAL() and
          IN_PRIVATE(), that are true for link-local unicast
          (169.254/16) and RFC1918 private addresses, respectively.
          Add the predicate IN_ANY_LOCAL() that is true for link-local
          unicast and multicast.

        4 Add IPv4-specific interface attach/detach routines,
          in_domifattach and in_domifdetach, which build #ifdef
          IPSELSRC.

See in_getifa(9) for a more thorough description of source-address
selection policy.

Revision 1.177 / (download) - annotate - [select for diffs], Mon Oct 16 02:52:43 2006 UTC (17 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.176: +7 -7 lines
Diff to previous 1.176 (colored)

- get rid of p_cfunc2
- add missing initializers

Revision 1.176 / (download) - annotate - [select for diffs], Sat Aug 26 18:14:28 2006 UTC (17 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.175: +2 -11 lines
Diff to previous 1.175 (colored)

Programs that use efun.

Revision 1.175 / (download) - annotate - [select for diffs], Sat Aug 26 16:59:27 2006 UTC (17 years, 6 months ago) by matt
Branch: MAIN
Changes since 1.174: +2 -6 lines
Diff to previous 1.174 (colored)

Nuke a leftover XNS fragment.

Revision 1.174 / (download) - annotate - [select for diffs], Sat Aug 26 16:20:20 2006 UTC (17 years, 6 months ago) by matt
Branch: MAIN
Changes since 1.173: +2 -4 lines
Diff to previous 1.173 (colored)

Remove XNS support.

Revision 1.173 / (download) - annotate - [select for diffs], Thu Jul 13 14:02:03 2006 UTC (17 years, 7 months ago) by martin
Branch: MAIN
CVS Tags: abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.172: +26 -2 lines
Diff to previous 1.172 (colored)

Trying the old "ifconfig <name> x.x.x.x down" issue again:
if the kernel does not set the interface up after we set an address,
do it explicitly, unless we (previously) set it down on user request.

This will allow the network drivers to be "fixed" while keeping visible
behaviour the same. Part of fixing PR 30694.

Revision 1.172 / (download) - annotate - [select for diffs], Fri Jun 16 23:48:35 2006 UTC (17 years, 8 months ago) by elad
Branch: MAIN
Changes since 1.171: +28 -19 lines
Diff to previous 1.171 (colored)

fix incorrect usage of strncpy() to (an internal implementation of)
estrlcpy().

okay christos

Revision 1.171 / (download) - annotate - [select for diffs], Thu May 18 09:05:50 2006 UTC (17 years, 9 months ago) by liamjfoy
Branch: MAIN
Changes since 1.170: +16 -2 lines
Diff to previous 1.170 (colored)

Integrate Common Address Redundancy Procotol (CARP) from OpenBSD

'pseudo-device	carp'

Thanks to: joerg@ christos@ riz@ and others who tested
Ok: core@

Revision 1.170 / (download) - annotate - [select for diffs], Sat Apr 29 21:32:29 2006 UTC (17 years, 10 months ago) by rpaulo
Branch: MAIN
Changes since 1.169: +7 -2 lines
Diff to previous 1.169 (colored)

Add two new options from FreeBSD:
	hidessid | -hidessid:	SSID broadcast control
	apbridge | -apbridge:	how to pass packets between wifi clients

Revision 1.152.2.1 / (download) - annotate - [select for diffs], Fri Mar 24 22:50:59 2006 UTC (17 years, 11 months ago) by riz
Branch: netbsd-3
CVS Tags: netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1
Changes since 1.152: +37 -14 lines
Diff to previous 1.152 (colored)

Pull up following revision(s) (requested by rpaulo in ticket #1219):
	sbin/ifconfig/ifconfig.c: revision 1.169
Added a new ifconfig flag, -h, allowing, in conjunction with -v, the display
of interface I/O bytes in human-format.
Reviewed by Christos Zoulas and Jason Thorpe.

Revision 1.169 / (download) - annotate - [select for diffs], Thu Aug 11 20:56:05 2005 UTC (18 years, 6 months ago) by rpaulo
Branch: MAIN
Changes since 1.168: +37 -14 lines
Diff to previous 1.168 (colored)

Added a new ifconfig flag, -h, allowing, in conjunction with -v, the display
of interface I/O bytes in human-format.

Reviewed by Christos Zoulas and Jason Thorpe.

Revision 1.141.4.2 / (download) - annotate - [select for diffs], Sun Jul 24 01:58:38 2005 UTC (18 years, 7 months ago) by snj
Branch: netbsd-2
CVS Tags: netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1
Changes since 1.141.4.1: +293 -531 lines
Diff to previous 1.141.4.1 (colored) to branchpoint 1.141 (colored) next main 1.142 (colored)

Pull up revision 1.147 via patch (requested by riz in ticket #5518):
Functions for converting media types to/from text are now in libutil.

Revision 1.141.4.1 / (download) - annotate - [select for diffs], Sun Jul 24 01:36:26 2005 UTC (18 years, 7 months ago) by snj
Branch: netbsd-2
Changes since 1.141: +2 -12 lines
Diff to previous 1.141 (colored)

Pull up revision 1.142 (requested by riz in ticket #5517):
The change in revision 1.38 (in 1997!) was wrong.  If we don't want the kernel
to automatically bring up interfaces, then we should move that code into
ifconfig(8) and out of the kernel, not cycle the interface up and down.  Fixes
PR 9400 -- ifconfig(8) was not working as documented.

Revision 1.168 / (download) - annotate - [select for diffs], Mon May 2 15:35:16 2005 UTC (18 years, 10 months ago) by yamt
Branch: MAIN
Changes since 1.167: +38 -12 lines
Diff to previous 1.167 (colored)

split IFCAP_CSUM_xxx to IFCAP_CSUM_xxx_Rx and IFCAP_CSUM_xxx_Tx.

Revision 1.167 / (download) - annotate - [select for diffs], Sun Mar 20 02:51:47 2005 UTC (18 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.166: +2 -9 lines
Diff to previous 1.166 (colored)

IFFBITS and IFCAPBITS are now defined in <net/if.h>

Revision 1.166 / (download) - annotate - [select for diffs], Sun Mar 20 02:43:50 2005 UTC (18 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.165: +6 -163 lines
Diff to previous 1.165 (colored)

Split the IPv4 support into its own file.

Revision 1.165 / (download) - annotate - [select for diffs], Sun Mar 20 01:10:51 2005 UTC (18 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.164: +2 -6 lines
Diff to previous 1.164 (colored)

Move a comment.

Revision 1.164 / (download) - annotate - [select for diffs], Sun Mar 20 01:09:16 2005 UTC (18 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.163: +7 -426 lines
Diff to previous 1.163 (colored)

Split IPv6 support out into its own file.

Revision 1.163 / (download) - annotate - [select for diffs], Sun Mar 20 00:02:58 2005 UTC (18 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.162: +3 -125 lines
Diff to previous 1.162 (colored)

Split OSI support off into its own file.

Revision 1.162 / (download) - annotate - [select for diffs], Sat Mar 19 23:46:03 2005 UTC (18 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.161: +5 -73 lines
Diff to previous 1.161 (colored)

Split XNS support into its own file.

Revision 1.161 / (download) - annotate - [select for diffs], Sat Mar 19 23:32:55 2005 UTC (18 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.160: +8 -134 lines
Diff to previous 1.160 (colored)

Split off AppleTalk support into its own file.

Revision 1.160 / (download) - annotate - [select for diffs], Sat Mar 19 23:16:55 2005 UTC (18 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.159: +9 -9 lines
Diff to previous 1.159 (colored)

const'ify afswtch

Revision 1.159 / (download) - annotate - [select for diffs], Sat Mar 19 23:13:42 2005 UTC (18 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.158: +3 -342 lines
Diff to previous 1.158 (colored)

Split off 802.11 interface handling into its own file.

Revision 1.158 / (download) - annotate - [select for diffs], Sat Mar 19 22:57:06 2005 UTC (18 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.157: +16 -7 lines
Diff to previous 1.157 (colored)

Don't hare-code inet/inet6 in tunnel_status(), lookup the address family
name instead.

Revision 1.157 / (download) - annotate - [select for diffs], Sat Mar 19 17:32:26 2005 UTC (18 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.156: +4 -129 lines
Diff to previous 1.156 (colored)

Split tunnel support into its own file.

Revision 1.156 / (download) - annotate - [select for diffs], Sat Mar 19 03:56:06 2005 UTC (18 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.155: +3 -2 lines
Diff to previous 1.155 (colored)

Move extern decls to extern.h

Revision 1.155 / (download) - annotate - [select for diffs], Sat Mar 19 03:53:55 2005 UTC (18 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.154: +3 -103 lines
Diff to previous 1.154 (colored)

Split VLAN configuration bits out into a separate file.

Revision 1.154 / (download) - annotate - [select for diffs], Fri Mar 18 14:30:08 2005 UTC (18 years, 11 months ago) by yamt
Branch: MAIN
Changes since 1.153: +3 -2 lines
Diff to previous 1.153 (colored)

update usage() for agr(4).  pointed by Thomas Klausner.

Revision 1.153 / (download) - annotate - [select for diffs], Fri Mar 18 11:11:51 2005 UTC (18 years, 11 months ago) by yamt
Branch: MAIN
Changes since 1.152: +7 -2 lines
Diff to previous 1.152 (colored)

add agr(4), a pseudo network device driver for link aggregation.

Revision 1.152 / (download) - annotate - [select for diffs], Sun Mar 6 00:13:36 2005 UTC (19 years ago) by matt
Branch: MAIN
CVS Tags: netbsd-3-base, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0
Branch point for: netbsd-3
Changes since 1.151: +5 -3 lines
Diff to previous 1.151 (colored)

Add ifconfig support for TCP Segment Offload

Revision 1.151 / (download) - annotate - [select for diffs], Sun Feb 6 06:15:57 2005 UTC (19 years, 1 month ago) by perry
Branch: MAIN
Changes since 1.150: +8 -8 lines
Diff to previous 1.150 (colored)

remove obsolete "register" declarations.

Revision 1.150 / (download) - annotate - [select for diffs], Thu Jan 20 16:16:10 2005 UTC (19 years, 1 month ago) by xtraeme
Branch: MAIN
Changes since 1.149: +3 -3 lines
Diff to previous 1.149 (colored)

Fix the cast for the getnameinfo() call in the status() function, which
should be "const struct" not "struct" for sockaddr.

WARNS=3

Revision 1.149 / (download) - annotate - [select for diffs], Mon Dec 20 23:04:55 2004 UTC (19 years, 2 months ago) by dyoung
Branch: MAIN
Changes since 1.148: +68 -2 lines
Diff to previous 1.148 (colored)

ifconfig -v prints 802.11 statistics.  ifconfig -v prints and zeroes
802.11 statistics.

Revision 1.148 / (download) - annotate - [select for diffs], Tue Nov 16 05:59:32 2004 UTC (19 years, 3 months ago) by itojun
Branch: MAIN
Changes since 1.147: +2 -10 lines
Diff to previous 1.147 (colored)

NI_WITHSCOPEID was not picked up by IETF standardization process.

Revision 1.147 / (download) - annotate - [select for diffs], Thu Nov 11 20:37:18 2004 UTC (19 years, 3 months ago) by dsl
Branch: MAIN
Changes since 1.146: +54 -168 lines
Diff to previous 1.146 (colored)

Functions for converting media types to/from text are now in libutil.

Revision 1.146 / (download) - annotate - [select for diffs], Thu Oct 28 20:10:29 2004 UTC (19 years, 4 months ago) by dsl
Branch: MAIN
Changes since 1.145: +7 -7 lines
Diff to previous 1.145 (colored)

More isdigit() calls that need (unsigned char) cast

Revision 1.145 / (download) - annotate - [select for diffs], Mon Oct 11 20:13:37 2004 UTC (19 years, 4 months ago) by dsl
Branch: MAIN
Changes since 1.144: +184 -307 lines
Diff to previous 1.144 (colored)

De __P

Revision 1.144 / (download) - annotate - [select for diffs], Mon Oct 11 17:13:55 2004 UTC (19 years, 4 months ago) by dsl
Branch: MAIN
Changes since 1.143: +66 -67 lines
Diff to previous 1.143 (colored)

Remove all the caddr_t - mainly casts of the 3rd arg to ioctl()

Revision 1.143 / (download) - annotate - [select for diffs], Tue Jul 27 14:25:19 2004 UTC (19 years, 7 months ago) by yamt
Branch: MAIN
Changes since 1.142: +3 -3 lines
Diff to previous 1.142 (colored)

err -> errx where appropriate.

Revision 1.142 / (download) - annotate - [select for diffs], Tue Jul 6 23:26:31 2004 UTC (19 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.141: +2 -12 lines
Diff to previous 1.141 (colored)

The change in revision 1.38 (in 1997!) was wrong.  If we don't want the kernel
to automatically bring up interfaces, then we should move that code into
ifconfig(8) and out of the kernel, not cycle the interface up and down.  Fixes
PR 9400 -- ifconfig(8) was not working as documented.

Revision 1.141 / (download) - annotate - [select for diffs], Mon Mar 1 00:11:33 2004 UTC (20 years ago) by perry
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0
Branch point for: netbsd-2
Changes since 1.140: +4 -3 lines
Diff to previous 1.140 (colored)

Very minimal changes to make "ssid" and "nwid" aliases, and make the
ssid print out as "ssid", not "nwid".
XXX Really, someone should go through and change around all the
variable names etc. to ssid, but not today.

Revision 1.140 / (download) - annotate - [select for diffs], Fri Feb 27 21:36:17 2004 UTC (20 years ago) by itojun
Branch: MAIN
Changes since 1.139: +6 -4 lines
Diff to previous 1.139 (colored)

check strlcpy error.  idea from Ryan McBride

Revision 1.139 / (download) - annotate - [select for diffs], Mon Oct 13 08:27:35 2003 UTC (20 years, 4 months ago) by dyoung
Branch: MAIN
Changes since 1.138: +73 -7 lines
Diff to previous 1.138 (colored)

Add 'mode' option to change PHY media for 802.11 devices.  Also,
display PHY mode. E.g., run an 802.11a (5GHz, 54Mbps max) access
point:

> ifconfig ath0 nwid my_access_point mode 11a mediaopt hostap
> ifconfig -m ath0
ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        nwid my_access_point
        powersave off
        bssid 00:05:5d:84:cc:6e chan 3
        address: 00:05:5d:84:cc:6e
        media: IEEE802.11 autoselect mode 11a hostap
        status: active
        supported IEEE802.11 media:
                media autoselect
                media autoselect mediaopt adhoc
                media autoselect mediaopt hostap
                media autoselect mediaopt monitor
                media autoselect mode 11a
                media autoselect mode 11a mediaopt adhoc
                media autoselect mode 11a mediaopt hostap
                media autoselect mode 11a mediaopt monitor
*snip snip*

Revision 1.138 / (download) - annotate - [select for diffs], Thu Aug 7 10:04:24 2003 UTC (20 years, 7 months ago) by agc
Branch: MAIN
Changes since 1.137: +3 -7 lines
Diff to previous 1.137 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22308, verified by myself.

Revision 1.137 / (download) - annotate - [select for diffs], Wed Jun 11 19:51:31 2003 UTC (20 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.136: +19 -3 lines
Diff to previous 1.136 (colored)

PR/21860: Robert Elz: ifconfig doesn't allow addr/N notation for INET6

Revision 1.136 / (download) - annotate - [select for diffs], Sat May 17 23:07:22 2003 UTC (20 years, 9 months ago) by itojun
Branch: MAIN
Changes since 1.135: +6 -7 lines
Diff to previous 1.135 (colored)

use strlcpy

Revision 1.135 / (download) - annotate - [select for diffs], Sat May 17 00:48:13 2003 UTC (20 years, 9 months ago) by lukem
Branch: MAIN
Changes since 1.134: +3 -3 lines
Diff to previous 1.134 (colored)

Change -b from skipping  POINTTOPOINT|LOOPBACK  to skipping  ! BROADCAST.
Fixes my [bin/21604]

Revision 1.134 / (download) - annotate - [select for diffs], Sat Apr 12 01:07:43 2003 UTC (20 years, 10 months ago) by perry
Branch: MAIN
Changes since 1.133: +18 -13 lines
Diff to previous 1.133 (colored)

Add an option (-z) like -v except that it clears the input/output
stats after printing them.
(Basically this just calls SIOCZIFDATA instead of SIOCGIFDATA).
Submitted by Jean-Edouard BABIN in PR bin/21078
However, he suggested using -c, and cgd (reasonably) noted that -z for
"zero" was probably more reasonable.
I've also changed the code very slightly.

Revision 1.133 / (download) - annotate - [select for diffs], Mon Sep 30 05:38:13 2002 UTC (21 years, 5 months ago) by onoe
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.132: +23 -9 lines
Diff to previous 1.132 (colored)

Hide bssid/chan for 802.11 if not specified nor not associated.
Allow "-chan" to allow any channel to associate, it doesn't affect
create channel for IBSS/AP mode.

Revision 1.132 / (download) - annotate - [select for diffs], Mon Sep 23 00:10:28 2002 UTC (21 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.131: +3 -3 lines
Diff to previous 1.131 (colored)

Add missing newline.

Revision 1.131 / (download) - annotate - [select for diffs], Sun Sep 22 15:29:23 2002 UTC (21 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.130: +67 -3 lines
Diff to previous 1.130 (colored)

New commands:
* bssid xx:xx:xx:xx:xx:xx -- set the desired BSSID of an 802.11
  interface.
* -bssid -- unset the desired BSSID of an 802.11 interface, so
  the interface will choose automatically (default).
* channel x -- set the channel (radio frequency) of an 802.11 interface.

Current BSSID and channel are now reported in the 802.11 status
display, if supported by the interface.

Above changes from David Young <dyoung@ojctech.com>, with some slight
changes by me (use ethers(3) functions rather than hand-parsing/printing
the 802.11 address).

Document bssid/-bssid/channel, and clean up markup of parentheticals
in the manual page.

Revision 1.130 / (download) - annotate - [select for diffs], Fri Sep 20 21:21:53 2002 UTC (21 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.129: +14 -47 lines
Diff to previous 1.129 (colored)

use snprintb()

Revision 1.129 / (download) - annotate - [select for diffs], Sat Jul 20 08:36:26 2002 UTC (21 years, 7 months ago) by grant
Branch: MAIN
Changes since 1.128: +3 -3 lines
Diff to previous 1.128 (colored)

sweep of errx/warnx, remove unnecessary trailing \n

Revision 1.128 / (download) - annotate - [select for diffs], Fri Jun 14 09:12:08 2002 UTC (21 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.127: +4 -3 lines
Diff to previous 1.127 (colored)

grab eui64 only from the same interface.

Revision 1.127 / (download) - annotate - [select for diffs], Fri Jun 14 09:02:00 2002 UTC (21 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.126: +84 -41 lines
Diff to previous 1.126 (colored)

support "eui64" option (grab interface ID from link-local addr).
from: ww@styx.org

Revision 1.126 / (download) - annotate - [select for diffs], Fri Jun 14 01:07:01 2002 UTC (21 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.125: +4 -5 lines
Diff to previous 1.125 (colored)

init variable before strtoul

Revision 1.125 / (download) - annotate - [select for diffs], Fri Jun 14 01:04:41 2002 UTC (21 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.124: +20 -7 lines
Diff to previous 1.124 (colored)

metric and mtu are u_long, not int.

Revision 1.124 / (download) - annotate - [select for diffs], Thu May 23 21:38:01 2002 UTC (21 years, 9 months ago) by matt
Branch: MAIN
Changes since 1.123: +65 -10 lines
Diff to previous 1.123 (colored)

Add support to print interface counters (via SIOCGIFDATA) when the [new]
option -v is provided.

Revision 1.123 / (download) - annotate - [select for diffs], Mon May 6 20:14:36 2002 UTC (21 years, 10 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6
Changes since 1.122: +4 -4 lines
Diff to previous 1.122 (colored)

Don't bother testing if a u_short is > 0xffff -- that test is always false.

Revision 1.122 / (download) - annotate - [select for diffs], Thu Apr 25 09:39:17 2002 UTC (21 years, 10 months ago) by itojun
Branch: MAIN
Changes since 1.121: +16 -14 lines
Diff to previous 1.121 (colored)

use in_aliasreq for inet address manipulation, not ifaliasreq.  they have
different alignment constraint.  [tests on 64bit arch wanted]

Revision 1.121 / (download) - annotate - [select for diffs], Fri Nov 2 05:57:38 2001 UTC (22 years, 4 months ago) by lukem
Branch: MAIN
Changes since 1.120: +116 -114 lines
Diff to previous 1.120 (colored)

fix many -Wshadow warnings

Revision 1.120 / (download) - annotate - [select for diffs], Wed Oct 24 22:10:15 2001 UTC (22 years, 4 months ago) by atatat
Branch: MAIN
Changes since 1.119: +76 -75 lines
Diff to previous 1.119 (colored)

Clean up the code a bit so that the ioctl() return value is always
compared to -1 (instead of <0 or !=0) and always to call err() with
EXIT_FAILURE instead of sometimes using 1.

Revision 1.119 / (download) - annotate - [select for diffs], Sat Oct 6 17:05:29 2001 UTC (22 years, 5 months ago) by bjh21
Branch: MAIN
Changes since 1.118: +13 -18 lines
Diff to previous 1.118 (colored)

Use getnameinfo() to format AF_LINK addresses again.

Revision 1.118 / (download) - annotate - [select for diffs], Fri Oct 5 20:50:19 2001 UTC (22 years, 5 months ago) by bjh21
Branch: MAIN
Changes since 1.117: +16 -11 lines
Diff to previous 1.117 (colored)

Revert last change.  getnameinfo() AF_LINK support is going away until I can
make it lint-clean.

Revision 1.117 / (download) - annotate - [select for diffs], Thu Oct 4 23:12:22 2001 UTC (22 years, 5 months ago) by bjh21
Branch: MAIN
Changes since 1.116: +13 -18 lines
Diff to previous 1.116 (colored)

Use getnameinfo() to format AF_LINK addresses rather than doing it ourselves.

Revision 1.116 / (download) - annotate - [select for diffs], Wed Sep 26 07:20:16 2001 UTC (22 years, 5 months ago) by itojun
Branch: MAIN
Changes since 1.115: +2 -3 lines
Diff to previous 1.115 (colored)

remove duplicated line in cmds[].

Revision 1.115 / (download) - annotate - [select for diffs], Mon Sep 17 17:36:06 2001 UTC (22 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.114: +7 -3 lines
Diff to previous 1.114 (colored)

Add tcp4csum-rx and udp4csum-rx commands for interfaces that only
support TCP/UDP checksums on the in-bound direction.

Revision 1.114 / (download) - annotate - [select for diffs], Sun Aug 19 01:27:43 2001 UTC (22 years, 6 months ago) by itojun
Branch: MAIN
Changes since 1.113: +18 -7 lines
Diff to previous 1.113 (colored)

snprintf return value audit.  from deraadt

Revision 1.113 / (download) - annotate - [select for diffs], Thu Aug 9 01:25:35 2001 UTC (22 years, 7 months ago) by david
Branch: MAIN
Changes since 1.112: +8 -5 lines
Diff to previous 1.112 (colored)

Correct style of a comment, and bad else {} scoping from my previous
commit.

Thanks to enami tsugutomo for pointing both out.

Revision 1.112 / (download) - annotate - [select for diffs], Wed Aug 8 21:22:35 2001 UTC (22 years, 7 months ago) by david
Branch: MAIN
Changes since 1.111: +11 -2 lines
Diff to previous 1.111 (colored)

Cause multiple uses of alias, -alias, and delete to produce an error,
and exit.

Previously, combinations would produce unintended results, such as
deleting the primary IP on an interface, instead of deleting an specified
alias.

Revision 1.111 / (download) - annotate - [select for diffs], Tue Jul 31 23:27:35 2001 UTC (22 years, 7 months ago) by itojun
Branch: MAIN
Changes since 1.110: +31 -2 lines
Diff to previous 1.110 (colored)

embed scopeid on scoped ipv6 address. sync with kame

Revision 1.110 / (download) - annotate - [select for diffs], Wed Jul 25 17:29:14 2001 UTC (22 years, 7 months ago) by itojun
Branch: MAIN
Changes since 1.109: +6 -4 lines
Diff to previous 1.109 (colored)

do not go over the end of memory region we are supposed to touch,
overrun on "prefixlen" operation.  there's no SEGV possibility.

Revision 1.109 / (download) - annotate - [select for diffs], Thu Jun 21 13:36:24 2001 UTC (22 years, 8 months ago) by onoe
Branch: MAIN
Changes since 1.108: +61 -38 lines
Diff to previous 1.108 (colored)

Add support of persistent key of IEEE 802.11 wireless LAN card.
Currently, only Aironet ("an") driver/card can be used.
     nwkey persist   (IEEE 802.11 devices only) Enable WEP encryption for IEEE
                     802.11-based wireless network interfaces with the persis-
                     tent key written in the network card.
     nwkey persist:key
                     (IEEE 802.11 devices only) Write the key to the persis-
                     tent memory of the network card, and enable WEP encryp-
                     tion for IEEE 802.11-based wireless network interfaces
                     with the key.

Revision 1.108 / (download) - annotate - [select for diffs], Sat Jun 2 16:17:06 2001 UTC (22 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.107: +56 -2 lines
Diff to previous 1.107 (colored)

Implement support for IP/TCP/UDP checksum offloading provided by
network interfaces.  This works by pre-computing the pseudo-header
checksum and caching it, delaying the actual checksum to ip_output()
if the hardware cannot perform the sum for us.  In-bound checksums
can either be fully-checked by hardware, or summed up for final
verification by software.  This method was modeled after how this
is done in FreeBSD, although the code is significantly different in
most places.

We don't delay checksums for IPv6/TCP, but we do take advantage of the
cached pseudo-header checksum.

Note: hardware-assisted checksumming defaults to "off".  It is
enabled with ifconfig(8).  See the manual page for details.

Implement hardware-assisted checksumming on the DP83820 Gigabit Ethernet,
3c90xB/3c90xC 10/100 Ethernet, and Alteon Tigon/Tigon2 Gigabit Ethernet.

Revision 1.79.4.7 / (download) - annotate - [select for diffs], Tue May 1 11:06:43 2001 UTC (22 years, 10 months ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001
Changes since 1.79.4.6: +17 -14 lines
Diff to previous 1.79.4.6 (colored) to branchpoint 1.79 (colored) next main 1.80 (colored)

Pull up revision 1.107 (via patch, requested by itojun):
  Make ``-A'' the default, so that IPv4 aliases are printed.
  Always print mac address.

Revision 1.107 / (download) - annotate - [select for diffs], Sat Apr 28 04:11:10 2001 UTC (22 years, 10 months ago) by itojun
Branch: MAIN
Changes since 1.106: +14 -14 lines
Diff to previous 1.106 (colored)

make -A a default.  present MAC adderss on all ifconfig operations.

Revision 1.106 / (download) - annotate - [select for diffs], Sat Apr 28 00:00:06 2001 UTC (22 years, 10 months ago) by itojun
Branch: MAIN
Changes since 1.105: +2 -157 lines
Diff to previous 1.105 (colored)

assume the presense of getifaddrs(3).

Revision 1.105 / (download) - annotate - [select for diffs], Fri Apr 27 09:10:04 2001 UTC (22 years, 10 months ago) by itojun
Branch: MAIN
Changes since 1.104: +4 -3 lines
Diff to previous 1.104 (colored)

sync usage() more to the reality.  document alias/-alias.

Revision 1.104 / (download) - annotate - [select for diffs], Fri Apr 27 09:08:45 2001 UTC (22 years, 10 months ago) by itojun
Branch: MAIN
Changes since 1.103: +8 -5 lines
Diff to previous 1.103 (colored)

allow ifconfig to take "deprecated" and "-deprecated" for IPv6.  sync with kame

sync usage() with reality.  take "up" and "down" outside of "[af ...],
as "up" and "down" are independent from interface address configuration.

Revision 1.103 / (download) - annotate - [select for diffs], Thu Mar 1 08:35:16 2001 UTC (23 years ago) by itojun
Branch: MAIN
Changes since 1.102: +5 -5 lines
Diff to previous 1.102 (colored)

whitespace at EOL

Revision 1.102 / (download) - annotate - [select for diffs], Thu Mar 1 08:34:10 2001 UTC (23 years ago) by itojun
Branch: MAIN
Changes since 1.101: +5 -4 lines
Diff to previous 1.101 (colored)

on "tunnel" subcommand, use specified address family.

Revision 1.101 / (download) - annotate - [select for diffs], Fri Feb 23 19:49:54 2001 UTC (23 years ago) by christos
Branch: MAIN
Changes since 1.100: +4 -3 lines
Diff to previous 1.100 (colored)

PR/12275:Kimmo Suominen: show -C in usage

Revision 1.100 / (download) - annotate - [select for diffs], Tue Feb 20 15:35:21 2001 UTC (23 years ago) by itojun
Branch: MAIN
Changes since 1.99: +25 -88 lines
Diff to previous 1.99 (colored)

add SIOC[SG]LIFPHYADDR ioctl.  greatly simplify tunnel address settings.
sync with kame.  old ioctls are supplied but not recommended for new code.

Revision 1.99 / (download) - annotate - [select for diffs], Mon Feb 19 22:56:20 2001 UTC (23 years ago) by cgd
Branch: MAIN
Changes since 1.98: +4 -5 lines
Diff to previous 1.98 (colored)

convert to use getprogname()

Revision 1.98 / (download) - annotate - [select for diffs], Sun Feb 4 20:05:20 2001 UTC (23 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.97: +4 -3 lines
Diff to previous 1.97 (colored)

fix nested externs

Revision 1.79.4.6 / (download) - annotate - [select for diffs], Fri Jan 26 01:37:09 2001 UTC (23 years, 1 month ago) by jhawk
Branch: netbsd-1-5
Changes since 1.79.4.5: +3 -3 lines
Diff to previous 1.79.4.5 (colored) to branchpoint 1.79 (colored)

Pull up revision 1.94 (requested by itojun):
  Initialize an uninitialized pointer. PR11702.

Revision 1.97 / (download) - annotate - [select for diffs], Wed Jan 24 18:06:51 2001 UTC (23 years, 1 month ago) by garbled
Branch: MAIN
Changes since 1.96: +3 -3 lines
Diff to previous 1.96 (colored)

Fix the usage string so it displays the -b and s options to ifconfig -l

Revision 1.96 / (download) - annotate - [select for diffs], Wed Jan 17 06:10:37 2001 UTC (23 years, 1 month ago) by itojun
Branch: MAIN
Changes since 1.95: +6 -4 lines
Diff to previous 1.95 (colored)

unbroken slash notation (10.0.0.0/8) for IPv4.

Revision 1.95 / (download) - annotate - [select for diffs], Wed Jan 17 06:07:32 2001 UTC (23 years, 1 month ago) by itojun
Branch: MAIN
Changes since 1.94: +30 -20 lines
Diff to previous 1.94 (colored)

support "prefixlen n" for IPv4 too.

Revision 1.94 / (download) - annotate - [select for diffs], Mon Jan 8 14:06:12 2001 UTC (23 years, 2 months ago) by itojun
Branch: MAIN
Changes since 1.93: +3 -3 lines
Diff to previous 1.93 (colored)

uninitialized pointer.  PR 11702

Revision 1.79.4.5 / (download) - annotate - [select for diffs], Sun Dec 31 20:13:54 2000 UTC (23 years, 2 months ago) by jhawk
Branch: netbsd-1-5
Changes since 1.79.4.4: +110 -0 lines
Diff to previous 1.79.4.4 (colored) to branchpoint 1.79 (colored)

Pull up revision 1.89 (requested by bouyer):
	Add support for 802.1Q virtual LANs.

Revision 1.79.4.4 / (download) - annotate - [select for diffs], Sun Dec 31 17:57:33 2000 UTC (23 years, 2 months ago) by jhawk
Branch: netbsd-1-5
Changes since 1.79.4.3: +113 -8 lines
Diff to previous 1.79.4.3 (colored) to branchpoint 1.79 (colored)

Pull up revision 1.81, 1.87 (requested by bouyer):
  Support cloning of network pseudo-interfaces.

Revision 1.93 / (download) - annotate - [select for diffs], Tue Dec 12 20:27:42 2000 UTC (23 years, 2 months ago) by onoe
Branch: MAIN
Changes since 1.92: +8 -12 lines
Diff to previous 1.92 (colored)

Add powersave/powersavesleep into usage.
Fold usage output (still 14 lines...)

Revision 1.92 / (download) - annotate - [select for diffs], Tue Dec 12 04:08:40 2000 UTC (23 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.91: +56 -3 lines
Diff to previous 1.91 (colored)

Add powersave, -powersave, and powersavesleep to manipulate 802.11
power management parameters.

Revision 1.91 / (download) - annotate - [select for diffs], Tue Nov 7 14:47:59 2000 UTC (23 years, 4 months ago) by itojun
Branch: MAIN
Changes since 1.90: +4 -2 lines
Diff to previous 1.90 (colored)

show IPv6 interface address status "deprecated" (preferred lifetime = 0).
RFC2462.  sync with kame.

Revision 1.90 / (download) - annotate - [select for diffs], Mon Oct 2 22:30:40 2000 UTC (23 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.89: +17 -3 lines
Diff to previous 1.89 (colored)

In tunnel_status(), if we have an IPv6 kernel, but a driver doesn't
support IPv6 tunnel endpoint addresses, fall back on the sockaddr
version of the ioctls.

Revision 1.89 / (download) - annotate - [select for diffs], Wed Sep 27 23:00:24 2000 UTC (23 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.88: +112 -2 lines
Diff to previous 1.88 (colored)

Add vlan(4) support.  From Andy Doran <ad@netbsd.org>.

Revision 1.79.4.3 / (download) - annotate - [select for diffs], Fri Jul 21 18:55:56 2000 UTC (23 years, 7 months ago) by onoe
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2
Changes since 1.79.4.2: +184 -39 lines
Diff to previous 1.79.4.2 (colored) to branchpoint 1.79 (colored)

Pullup 802.11 stuff (approved by jhawk)
- add support for nwkey to ifconfig
	basesrc/sbin/ifconfig/ifconfig.c		1.88
	basesrc/sbin/ifconfig/ifconfig.8		1.39
	syssrc/sys/dev/ic/awi.c				1.26
	syssrc/sys/dev/ic/awi_wep.c			1.3
	syssrc/sys/dev/ic/awivar.h			1.12
	syssrc/sys/dev/pcmcia/if_wi.c			1.26
	syssrc/sys/net/if.c				1.69
	syssrc/sys/net/if_ieee80211.h			1.5

Revision 1.79.4.2 / (download) - annotate - [select for diffs], Fri Jul 21 18:45:44 2000 UTC (23 years, 7 months ago) by onoe
Branch: netbsd-1-5
Changes since 1.79.4.1: +58 -10 lines
Diff to previous 1.79.4.1 (colored) to branchpoint 1.79 (colored)

Pullups 802.11 stuff (approved by jhawk)
- allow non-string nwid settings
	basesrc/sbin/ifconfig/ifconfig.c		1.82-1.86
	basesrc/sbin/ifconfig/ifconfig.8		1.37
	syssrc/sys/dev/ic/awi.c				1.21
	syssrc/sys/dev/pcmcia/if_ray.c			1.21
	syssrc/sys/dev/pcmcia/if_wi.c			1.23
	syssrc/sys/dev/pcmcia/if_wivar.h		1.10
	syssrc/sys/net/if_ieee80211.h			1.4

Revision 1.88 / (download) - annotate - [select for diffs], Fri Jul 21 04:53:03 2000 UTC (23 years, 7 months ago) by onoe
Branch: MAIN
Changes since 1.87: +184 -39 lines
Diff to previous 1.87 (colored)

Add nwkey and -nwkey keywords, to enable/disable WEP,
and to set WEP encryption key for IEEE802.11 wireless network interfaces.

Revision 1.87 / (download) - annotate - [select for diffs], Thu Jul 20 18:42:03 2000 UTC (23 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.86: +64 -6 lines
Diff to previous 1.86 (colored)

Add a -C flag, to list all available network interface cloners.

Revision 1.86 / (download) - annotate - [select for diffs], Wed Jul 19 06:01:24 2000 UTC (23 years, 7 months ago) by enami
Branch: MAIN
Changes since 1.85: +4 -4 lines
Diff to previous 1.85 (colored)

- Fix off-by-one error in previous.
- Fix a typo of ioctl name in warning message.

Revision 1.85 / (download) - annotate - [select for diffs], Wed Jul 19 04:43:34 2000 UTC (23 years, 7 months ago) by onoe
Branch: MAIN
Changes since 1.84: +15 -5 lines
Diff to previous 1.84 (colored)

check the length of nwid argument before copy to avoid SEGV.
pointed out by enami-san

Revision 1.84 / (download) - annotate - [select for diffs], Thu Jul 6 08:20:51 2000 UTC (23 years, 8 months ago) by onoe
Branch: MAIN
Changes since 1.83: +5 -4 lines
Diff to previous 1.83 (colored)

cast u_char for ctype (nwid stuff) to fix possible overrun problems.

Revision 1.83 / (download) - annotate - [select for diffs], Thu Jul 6 00:50:49 2000 UTC (23 years, 8 months ago) by onoe
Branch: MAIN
Changes since 1.82: +7 -4 lines
Diff to previous 1.82 (colored)

warn instead of print 802.11 nwid with bad length field.

Revision 1.82 / (download) - annotate - [select for diffs], Wed Jul 5 02:35:55 2000 UTC (23 years, 8 months ago) by onoe
Branch: MAIN
Changes since 1.81: +44 -10 lines
Diff to previous 1.81 (colored)

change the argument of SIOCS80211NWID and SIOCG80211NWID ioctls from
u_int8_t array to struct ieee80211_nwid to prepend length field.
The length field is necessary because IEEE 802.11 spec doesn't prohibit
even '\0' for SSID.
Though the name and the value of SIOC... macro is unchanged, this change
breaks binary compatibility.  The only affected userland program on the
tree is ifconfig(8).
As Jason suggested on tech-net, it is better than live with problems
since there are no releases for this ioctls yet.

Revision 1.81 / (download) - annotate - [select for diffs], Sun Jul 2 00:28:01 2000 UTC (23 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.80: +51 -4 lines
Diff to previous 1.80 (colored)

Add `create' and `destroy' commands.

Revision 1.79.4.1 / (download) - annotate - [select for diffs], Fri Jun 30 18:12:46 2000 UTC (23 years, 8 months ago) by thorpej
Branch: netbsd-1-5
Changes since 1.79: +251 -92 lines
Diff to previous 1.79 (colored)

- Add `tunnel' and `deletetunnel' commands, which issue the ioctls
  that gifconfig(8) would issue to configure tunnel endpoints.  This
  allows IP tunnel interfaces (`gif' right now, and `gre' later) to
  be configured with ifconfig(8), and via /etc/ifconfig.<interface>.
  Partially taken from similar changes in OpenBSD.
- Const poison the command functions a bit.  We really need to clean
  up the command function interface.

Rationale for pulling into netbsd-1-5 branch: While this looks like
a feature enhancement, it actually fixes a bug -- without this change
or a change in rc.d's network bring-up, it is not possible to configure
IP tunnels as a normal part of bringing up the network.

Revision 1.80 / (download) - annotate - [select for diffs], Fri Jun 30 17:45:11 2000 UTC (23 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.79: +251 -92 lines
Diff to previous 1.79 (colored)

- Add `tunnel' and `deletetunnel' commands, which issue the ioctls
  that gifconfig(8) would issue to configure tunnel endpoints.  This
  allows IP tunnel interfaces (`gif' right now, and `gre' later) to
  be configured with ifconfig(8), and via /etc/ifconfig.<interface>.
  Partially taken from similar changes in OpenBSD.
- Const poison the command functions a bit.  We really need to clean
  up the command function interface.

Revision 1.79 / (download) - annotate - [select for diffs], Thu Apr 20 02:08:55 2000 UTC (23 years, 10 months ago) by enami
Branch: MAIN
CVS Tags: netbsd-1-5-base, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Changes since 1.78: +18 -10 lines
Diff to previous 1.78 (colored)

Allocate flagreq on stack.

Revision 1.78 / (download) - annotate - [select for diffs], Thu Apr 13 07:39:57 2000 UTC (23 years, 10 months ago) by itojun
Branch: MAIN
Changes since 1.77: +110 -2 lines
Diff to previous 1.77 (colored)

use getifaddrs, not SIOCGIFCONF, to avoid alignment constraints.
TODO: maybe it's better to pass struct ifaddrs * to in{,6}_alias.

Revision 1.77 / (download) - annotate - [select for diffs], Thu Apr 13 07:16:54 2000 UTC (23 years, 10 months ago) by itojun
Branch: MAIN
Changes since 1.76: +42 -113 lines
Diff to previous 1.76 (colored)

clarify in_alias() and in_status().
in_status() handles the whole inet address family.  in_alias() handles
printout for single address (for both the primary address or an alias).
it is more consistent with, for example, the way at_status() is used.

Revision 1.76 / (download) - annotate - [select for diffs], Mon Apr 3 03:54:42 2000 UTC (23 years, 11 months ago) by enami
Branch: MAIN
Changes since 1.75: +32 -16 lines
Diff to previous 1.75 (colored)

Explicitly pick up ''the first address'' to delete.

Revision 1.75 / (download) - annotate - [select for diffs], Mon Mar 20 21:10:03 2000 UTC (23 years, 11 months ago) by onoe
Branch: MAIN
Changes since 1.74: +3 -3 lines
Diff to previous 1.74 (colored)

Set flagreq.ifr_name before issueing SIOCGIFFLAGS for setifflags.
Withoug this change, flagreq was never initialized and ifconfig w/o addr
always failed with ENXIO.

Revision 1.74 / (download) - annotate - [select for diffs], Sat Mar 18 21:10:50 2000 UTC (23 years, 11 months ago) by castor
Branch: MAIN
Changes since 1.73: +9 -9 lines
Diff to previous 1.73 (colored)

Fix PR bin/9629.  The global variable ifr was used to save interface
flags even though the media routines tweak it.

Revision 1.73 / (download) - annotate - [select for diffs], Mon Mar 6 09:00:13 2000 UTC (24 years ago) by enami
Branch: MAIN
Changes since 1.72: +2 -3 lines
Diff to previous 1.72 (colored)

Remove unnecessary continue statement.

Revision 1.72 / (download) - annotate - [select for diffs], Mon Mar 6 08:45:35 2000 UTC (24 years ago) by enami
Branch: MAIN
Changes since 1.71: +2 -5 lines
Diff to previous 1.71 (colored)

Remove now unnecessary assignment.  It looks like 4.4lite merge left over.

Revision 1.71 / (download) - annotate - [select for diffs], Mon Mar 6 08:08:15 2000 UTC (24 years ago) by enami
Branch: MAIN
Changes since 1.70: +3 -3 lines
Diff to previous 1.70 (colored)

Don't copy from destination to destination.

Revision 1.70 / (download) - annotate - [select for diffs], Mon Mar 6 01:06:17 2000 UTC (24 years ago) by thorpej
Branch: MAIN
Changes since 1.69: +40 -24 lines
Diff to previous 1.69 (colored)

Per a discussion on gcc-bugs, port-alpha/9494 is not a compiler bug, but
rather a bug in the code (which is violating the C standard by casting
an unaligned pointer to a pointer with more strict alignment constraints).

Fix the code to not do such things.  Fixes port-alpha/9494.

Revision 1.69 / (download) - annotate - [select for diffs], Wed Mar 1 03:21:56 2000 UTC (24 years ago) by enami
Branch: MAIN
Changes since 1.68: +3 -3 lines
Diff to previous 1.68 (colored)

Salvage the better comment appeared in rev 1.51 but gone in 1.53.

Revision 1.68 / (download) - annotate - [select for diffs], Fri Feb 18 08:14:26 2000 UTC (24 years ago) by itojun
Branch: MAIN
Changes since 1.67: +12 -10 lines
Diff to previous 1.67 (colored)

more fix to SIOCGIFCONF alignment.

Revision 1.67 / (download) - annotate - [select for diffs], Tue Jan 25 06:11:25 2000 UTC (24 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.66: +3 -3 lines
Diff to previous 1.66 (colored)

Fix a buglet that caused media-specific options to *always* be printed, even if
they were not set.

Revision 1.66 / (download) - annotate - [select for diffs], Tue Jan 25 02:16:57 2000 UTC (24 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.65: +3 -3 lines
Diff to previous 1.65 (colored)

Fix a logic buglet in status printing code.

Revision 1.65 / (download) - annotate - [select for diffs], Tue Jan 25 01:46:57 2000 UTC (24 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.64: +6 -5 lines
Diff to previous 1.64 (colored)

- Print 802.11 status (i.e. network ID) after mtu, etc. but before
  protcol addresses.
- When searching for status bits, use the currently selected media type,
  not the currently active media type.

Revision 1.64 / (download) - annotate - [select for diffs], Tue Jan 25 01:03:21 2000 UTC (24 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.63: +3 -3 lines
Diff to previous 1.63 (colored)

Update copyright.

Revision 1.63 / (download) - annotate - [select for diffs], Tue Jan 25 00:59:39 2000 UTC (24 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.62: +32 -19 lines
Diff to previous 1.62 (colored)

Make display of media status information (e.g. carrier, etc.) table-driven
and easily extensible (by merely adding to the tables in ifmedia.h).

Revision 1.62 / (download) - annotate - [select for diffs], Mon Jan 24 23:24:16 2000 UTC (24 years, 1 month ago) by chopps
Branch: MAIN
Changes since 1.61: +37 -2 lines
Diff to previous 1.61 (colored)

allow setting (and reporting) nwid for ieee 802.11 devices.

Revision 1.61 / (download) - annotate - [select for diffs], Mon Jan 24 22:31:27 2000 UTC (24 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.60: +3 -3 lines
Diff to previous 1.60 (colored)

Fix a bug in get_media_options() which wasn't caught with global options;
make sure we only return option bits.

Revision 1.60 / (download) - annotate - [select for diffs], Wed Jan 12 10:29:35 2000 UTC (24 years, 1 month ago) by joda
Branch: MAIN
Changes since 1.59: +32 -2 lines
Diff to previous 1.59 (colored)

implement netmask slash notation for IP and IPv6 addresses

Revision 1.58.4.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:30:25 1999 UTC (24 years, 2 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.58: +66 -10 lines
Diff to previous 1.58 (colored) next main 1.59 (colored)

Pull up to last week's -current.

Revision 1.59 / (download) - annotate - [select for diffs], Mon Dec 13 15:24:45 1999 UTC (24 years, 2 months ago) by itojun
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221
Changes since 1.58: +66 -10 lines
Diff to previous 1.58 (colored)

bring in KAME scopeid hack.  always show scopeid if it is scoped.
sync with latest KAME.

Revision 1.58 / (download) - annotate - [select for diffs], Thu Jul 29 15:40:48 1999 UTC (24 years, 7 months ago) by itojun
Branch: MAIN
CVS Tags: comdex-fall-1999-base, comdex-fall-1999
Branch point for: wrstuden-devbsize
Changes since 1.57: +29 -8 lines
Diff to previous 1.57 (colored)

fix alignment problem of SIOCGIFCONF, on 64bit arch.

Revision 1.57 / (download) - annotate - [select for diffs], Mon Jul 26 19:38:36 1999 UTC (24 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.56: +4 -3 lines
Diff to previous 1.56 (colored)

Make the previous actually compile.

Revision 1.56 / (download) - annotate - [select for diffs], Mon Jul 26 12:00:47 1999 UTC (24 years, 7 months ago) by darrenr
Branch: MAIN
Changes since 1.55: +3 -3 lines
Diff to previous 1.55 (colored)

cleanup error message

Revision 1.55 / (download) - annotate - [select for diffs], Mon Jul 26 11:56:55 1999 UTC (24 years, 7 months ago) by darrenr
Branch: MAIN
Changes since 1.54: +7 -3 lines
Diff to previous 1.54 (colored)

don't allow destination addresses to be set for non-Point-to-point interfaces

Revision 1.54 / (download) - annotate - [select for diffs], Sat Jul 3 17:31:15 1999 UTC (24 years, 8 months ago) by sommerfeld
Branch: MAIN
Changes since 1.53: +59 -6 lines
Diff to previous 1.53 (colored)

Add a new -s option to make it easier to test the link-level status
(i.e., 10baseT carrier/no carrier) of an interface from scripts

ifconfig -s <interface> will exit with a false status if the interface
reports its unconnected.

-s also works in conjunction with -l and -a, filtering out interfaces
which are reporting down.

Also, add -b (which shows only broadcast interfaces with -l and -a).

I find these options useful in network autoconfig scripts for mobile
systems.

Revision 1.53 / (download) - annotate - [select for diffs], Thu Jul 1 13:19:20 1999 UTC (24 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.52: +396 -17 lines
Diff to previous 1.52 (colored)

make ifconfig IPv6-ready.
TODO: update manpage for new options.

Revision 1.50.2.2 / (download) - annotate - [select for diffs], Fri Jun 18 17:42:19 1999 UTC (24 years, 8 months ago) by perry
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001
Changes since 1.50.2.1: +4 -2 lines
Diff to previous 1.50.2.1 (colored) to branchpoint 1.50 (colored) next main 1.51 (colored)

pullup 1.51->1.52 (thorpej)

Revision 1.50.2.1 / (download) - annotate - [select for diffs], Fri Jun 18 16:44:15 1999 UTC (24 years, 8 months ago) by perry
Branch: netbsd-1-4
Changes since 1.50: +9 -4 lines
Diff to previous 1.50 (colored)

pullup 1.50->1.51 (thorpej): Don't force "inet" on status display

Revision 1.52 / (download) - annotate - [select for diffs], Tue May 18 18:01:08 1999 UTC (24 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.51: +4 -2 lines
Diff to previous 1.51 (colored)

Fix a slight braino in last.

Revision 1.51 / (download) - annotate - [select for diffs], Mon May 17 16:00:05 1999 UTC (24 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.50: +9 -4 lines
Diff to previous 1.50 (colored)

Don't force `inet' on status display; get all address families that have
configured addresses.  From Jun-ichiro itojun Hagino, PR #7593.

Revision 1.50 / (download) - annotate - [select for diffs], Thu Apr 1 08:12:23 1999 UTC (24 years, 11 months ago) by chopps
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE
Branch point for: netbsd-1-4
Changes since 1.49: +22 -16 lines
Diff to previous 1.49 (colored)

revert the previous changes that removed special cased ioctls for ISO
stuff.

Revision 1.49 / (download) - annotate - [select for diffs], Sun Sep 6 17:51:32 1998 UTC (25 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.48: +108 -8 lines
Diff to previous 1.48 (colored)

Add support for displaying interface alias information. Based on PR/6109 by
Phil Nelson.

Revision 1.48 / (download) - annotate - [select for diffs], Sat Aug 8 22:40:57 1998 UTC (25 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.47: +4 -3 lines
Diff to previous 1.47 (colored)

Oops, add the "instance" command to the usage info.

Revision 1.47 / (download) - annotate - [select for diffs], Sat Aug 8 22:33:17 1998 UTC (25 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.46: +51 -3 lines
Diff to previous 1.46 (colored)

Allow the user to explicitly set the media instance.

Revision 1.46 / (download) - annotate - [select for diffs], Sat Aug 8 18:14:20 1998 UTC (25 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.45: +19 -19 lines
Diff to previous 1.45 (colored)

Hm, actions might not always be deferred; rename appropriately.

Revision 1.45 / (download) - annotate - [select for diffs], Sat Aug 8 01:30:18 1998 UTC (25 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.44: +139 -103 lines
Diff to previous 1.44 (colored)

Completely rewrite the engine that sets media and media options.  Previous
code would hit the interface multiple times.  Now, all media and media
options are gathered and processed at once, hitting the interface only
once (except to grab the currently selected media exactly once; there is
no way to avoid that).

Revision 1.44 / (download) - annotate - [select for diffs], Thu Aug 6 19:22:00 1998 UTC (25 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.43: +25 -16 lines
Diff to previous 1.43 (colored)

Implement a suggestion from Wolfgang Solfrank on the "supported media"
display.  The display now looks like this:

bishop:thorpej 35$ obj.alpha/ifconfig -m fxp0
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        media: Ethernet autoselect (100baseTX full-duplex)
        status: active
        supported Ethernet media:
                media autoselect
                media 100baseTX mediaopt full-duplex
                media 100baseTX
                media 10baseT mediaopt full-duplex
                media 10baseT
                media 100baseTX mediaopt loopback
        inet 129.99.50.41 netmask 0xffffff00 broadcast 129.99.50.255
bishop:thorpej 36$

The intent here is to allow cut'n'pasting of the output to a command
line, or allow easier automatic extraction from scripts, etc.

XXX Still at issue is what to do about non-0 media instances.

Revision 1.43 / (download) - annotate - [select for diffs], Thu Aug 6 03:47:28 1998 UTC (25 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.42: +4 -2 lines
Diff to previous 1.42 (colored)

Print the media instance if it's not zero, a reasonable compromise such
that no one will have to see those ugly instance numbers if they have
an interface with only one PHY (most of them out there).

Revision 1.42 / (download) - annotate - [select for diffs], Thu Aug 6 02:24:40 1998 UTC (25 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.41: +91 -205 lines
Diff to previous 1.41 (colored)

Completely rewrite the way media descriptions are represented.  The same
data structure is used, but a much saner matching mechanism is used, one
which allows greater ease in adding new types.

Also, rewrite the way media words are displayed.  The status display now
looks like this:

bishop:thorpej 137$ ifconfig -m fxp0
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        media: Ethernet autoselect (10baseT)
        status: active
        supported media:
                Ethernet autoselect
                Ethernet 100baseTX <full-duplex>
                Ethernet 100baseTX
                Ethernet 10baseT <full-duplex>
                Ethernet 10baseT
                Ethernet 100baseTX <loopback>
        inet 129.99.50.41 netmask 0xffffff00 broadcast 129.99.50.255
bishop:thorpej 138$

This makes it more clear which media type (e.g. Ethernet) is currently
in-use, handy for devices such as the TI ThunderLAN which can also have
both Ethernet and Token Ring PHYs attached.

Revision 1.41 / (download) - annotate - [select for diffs], Wed Aug 5 23:35:17 1998 UTC (25 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.40: +24 -19 lines
Diff to previous 1.40 (colored)

Copyright assigned to The NetBSD Foundation, Inc.

Revision 1.40 / (download) - annotate - [select for diffs], Wed Oct 1 02:19:43 1997 UTC (26 years, 5 months ago) by enami
Branch: MAIN
CVS Tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3
Changes since 1.39: +2 -3 lines
Diff to previous 1.39 (colored)

Don't declare optind.

Revision 1.39 / (download) - annotate - [select for diffs], Mon Sep 15 01:53:36 1997 UTC (26 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.38: +14 -14 lines
Diff to previous 1.38 (colored)

* cleanup for WARNS=1
* deprecate register
* use .Nm correctly

Revision 1.38 / (download) - annotate - [select for diffs], Mon Sep 8 05:26:08 1997 UTC (26 years, 6 months ago) by mrg
Branch: MAIN
Changes since 1.37: +7 -2 lines
Diff to previous 1.37 (colored)

note that we have set ifflags so that we can reset them again after
setting the interface address.  this is necessary as we may want to
configure an interface `down' by default, but, SIOCAIFADDR turns the
interface back on for us.

Revision 1.37 / (download) - annotate - [select for diffs], Mon Jul 14 12:54:27 1997 UTC (26 years, 7 months ago) by is
Branch: MAIN
Changes since 1.36: +4 -4 lines
Diff to previous 1.36 (colored)

ifr_metric vs. ifr_mtu: don't confuse people. Its a union anyway.

Revision 1.36 / (download) - annotate - [select for diffs], Fri May 30 05:44:11 1997 UTC (26 years, 9 months ago) by lukem
Branch: MAIN
Changes since 1.35: +6 -4 lines
Diff to previous 1.35 (colored)

Don't define the address of an interface to 0.0.0.0 if it's just being
brought "up" (without an address); don't give it an address at all.
From Koji Imada <koji@math.human.nagoya-u.ac.jp> in [bin/3477]

Revision 1.35 / (download) - annotate - [select for diffs], Mon May 5 06:32:11 1997 UTC (26 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.34: +3 -3 lines
Diff to previous 1.34 (colored)

Force the ifaliasreq "addreq" to have 4-byte alignment, so that casting
one of its sockaddrs to a sockaddr_in doesn't cause an unaligned access
fault on the Alpha.

Revision 1.34 / (download) - annotate - [select for diffs], Mon Apr 21 01:17:58 1997 UTC (26 years, 10 months ago) by lukem
Branch: MAIN
Changes since 1.33: +27 -13 lines
Diff to previous 1.33 (colored)

Implemented two modifier flags for -a and -l: -d (only show "down" interfaces)
and -u (only show "up" interfaces)

Revision 1.33 / (download) - annotate - [select for diffs], Thu Apr 10 19:10:17 1997 UTC (26 years, 11 months ago) by is
Branch: MAIN
Changes since 1.32: +24 -4 lines
Diff to previous 1.32 (colored)

Add mtu n parameter. Part of code by Matthias Pfaller (PR 1648).

Revision 1.32 / (download) - annotate - [select for diffs], Thu Apr 3 02:07:59 1997 UTC (26 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.31: +226 -77 lines
Diff to previous 1.31 (colored)

- netatalk additions
- KNF
- prototype fixes
- ifconfig -a now prints all the address family parameters for all configured
  interfaces.

Revision 1.31 / (download) - annotate - [select for diffs], Thu Mar 27 22:50:12 1997 UTC (26 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.30: +36 -10 lines
Diff to previous 1.30 (colored)

Add a "-l" flag, which lists available network interfaces, with no
additional information.

Revision 1.30 / (download) - annotate - [select for diffs], Wed Mar 26 01:46:49 1997 UTC (26 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.29: +23 -6 lines
Diff to previous 1.29 (colored)

Print the station address of interfaces that have one.  From
Matt Thomas <matt@3am-software.com>

Revision 1.29 / (download) - annotate - [select for diffs], Tue Mar 25 01:37:11 1997 UTC (26 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.28: +3 -3 lines
Diff to previous 1.28 (colored)

Display the correct interface name in the event SIOCGIFMEDIA "succeeds"
but doesn't return any media types.

Revision 1.28 / (download) - annotate - [select for diffs], Mon Mar 24 00:45:30 1997 UTC (26 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.27: +4 -3 lines
Diff to previous 1.27 (colored)

Fix a slight bogon in printing active/current media, from Matt Thomas.

Revision 1.27 / (download) - annotate - [select for diffs], Tue Mar 18 05:04:50 1997 UTC (26 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.26: +5 -5 lines
Diff to previous 1.26 (colored)

Fix lookup_media_word() to properly distinguish between the "autoselect"
media type and error.  (oops!)

Revision 1.26 / (download) - annotate - [select for diffs], Tue Mar 18 01:50:01 1997 UTC (26 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.25: +22 -14 lines
Diff to previous 1.25 (colored)

Do that last change somewhat differently; We need to know the
currently selected media, and thus cannot allow E2BIG, since the
top-level kernel ioctl code won't perform the copyout of the
ifmediareq if it sees an "error".

Revision 1.25 / (download) - annotate - [select for diffs], Tue Mar 18 00:37:34 1997 UTC (26 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.24: +10 -4 lines
Diff to previous 1.24 (colored)

Ignore E2BIG in domediaopt() like we do in setmedia().  Oversight pointed
out by Andrew Gallatin <gallatin@CS.Duke.EDU>.

Revision 1.24 / (download) - annotate - [select for diffs], Mon Mar 17 03:08:48 1997 UTC (26 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.23: +535 -31 lines
Diff to previous 1.23 (colored)

Add support for BSD/OS-style media selection:
	- new "media" keyword specified media to select:
		ifconfig de0 media utp
	- new "mediaopt/-mediaopt" keywords for setting/clearing
	  media options (such as full-duplex)
	- new "-m" flag to display all supported media types for
	  a given interface.
Also, some generial cleanup of argument parsing while I was there.
Manual page updates from Jeremy Cooper <jeremy@netbsd.org>.

Revision 1.22.4.1 / (download) - annotate - [select for diffs], Wed Dec 11 03:37:10 1996 UTC (27 years, 3 months ago) by mycroft
Branch: netbsd-1-2
CVS Tags: netbsd-1-2-PATCH001
Changes since 1.22: +15 -17 lines
Diff to previous 1.22 (colored) next main 1.23 (colored)

From trunk:
Eliminate SS_PRIV; instead, pass down a proc pointer to the usrreq methods
that need it.
Fix numerous memory leaks and bogus return values.

Revision 1.23 / (download) - annotate - [select for diffs], Sun Sep 8 14:37:39 1996 UTC (27 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.22: +15 -17 lines
Diff to previous 1.22 (colored)

Update to match kernel changes.

Revision 1.22 / (download) - annotate - [select for diffs], Thu Jan 4 20:11:20 1996 UTC (28 years, 2 months ago) by pk
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-BETA
Branch point for: netbsd-1-2
Changes since 1.21: +6 -3 lines
Diff to previous 1.21 (colored)

Agree with kernel on format of SIOCGIFCONF results.

Revision 1.21 / (download) - annotate - [select for diffs], Sun Oct 8 23:03:54 1995 UTC (28 years, 5 months ago) by gwr
Branch: MAIN
CVS Tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.20: +27 -9 lines
Diff to previous 1.20 (colored)

Add support for -DINET_ONLY to make this smaller in a ramdisk.

Revision 1.20 / (download) - annotate - [select for diffs], Fri May 19 20:17:16 1995 UTC (28 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.19: +10 -11 lines
Diff to previous 1.19 (colored)

Use inet_aton(), not inet_addr().  Suggested by John Hawkinson.

Revision 1.19 / (download) - annotate - [select for diffs], Sat Mar 18 14:56:24 1995 UTC (28 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.18: +7 -2 lines
Diff to previous 1.18 (colored)

convert to new RCS Id conventions; reduce my headache

Revision 1.18 / (download) - annotate - [select for diffs], Sat Jan 21 21:22:16 1995 UTC (29 years, 1 month ago) by glass
Branch: MAIN
Changes since 1.17: +19 -10 lines
Diff to previous 1.17 (colored)

 fix usage message to include -a.  fix command line handling for same

Revision 1.17 / (download) - annotate - [select for diffs], Sun Dec 18 12:58:39 1994 UTC (29 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

spacing nit.

Revision 1.16 / (download) - annotate - [select for diffs], Mon Dec 5 20:16:12 1994 UTC (29 years, 3 months ago) by cgd
Branch: MAIN
Changes since 1.15: +63 -28 lines
Diff to previous 1.15 (colored)

more cleanups from Jim Jegers, passed over by me.

Revision 1.15 / (download) - annotate - [select for diffs], Mon Oct 31 04:24:09 1994 UTC (29 years, 4 months ago) by cgd
Branch: MAIN
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored)

ioctl types.

Revision 1.14 / (download) - annotate - [select for diffs], Fri Sep 23 14:27:24 1994 UTC (29 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.13: +17 -17 lines
Diff to previous 1.13 (colored)

Eliminate uses of some obsolete functions.

Revision 1.13 / (download) - annotate - [select for diffs], Fri Sep 23 01:38:52 1994 UTC (29 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.12: +154 -204 lines
Diff to previous 1.12 (colored)

Merge with 4.4-Lite version.

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Fri Sep 23 01:35:26 1994 UTC (29 years, 5 months ago) by mycroft
Branch: WFJ-920714, CSRG
CVS Tags: lite-2, lite-1
Changes since 1.1.1.1: +46 -65 lines
Diff to previous 1.1.1.1 (colored)

Import original 4.4-Lite version.

Revision 1.12 / (download) - annotate - [select for diffs], Sat Jan 22 02:04:35 1994 UTC (30 years, 1 month ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0, netbsd-1-0
Changes since 1.11: +20 -23 lines
Diff to previous 1.11 (colored)

(1) update usage info
(2) fix every instance of fprintf/exit except usage to use err()/errx()
(3) make netmask print out with a leading 0x, so that you can paste it back.

Revision 1.11 / (download) - annotate - [select for diffs], Fri Dec 10 11:29:42 1993 UTC (30 years, 3 months ago) by cgd
Branch: MAIN
Changes since 1.10: +2 -4 lines
Diff to previous 1.10 (colored)

add MULTICAST recognition

Revision 1.10 / (download) - annotate - [select for diffs], Fri Dec 10 11:24:07 1993 UTC (30 years, 3 months ago) by cgd
Branch: MAIN
Changes since 1.9: +8 -8 lines
Diff to previous 1.9 (colored)

LLC -> LINK, documentation

Revision 1.9 / (download) - annotate - [select for diffs], Sun Aug 1 18:26:52 1993 UTC (30 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)

Add RCS identifiers.

Revision 1.8 / (download) - annotate - [select for diffs], Wed Jun 9 20:04:38 1993 UTC (30 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: netbsd-0-9-base, netbsd-0-9-RELEASE, netbsd-0-9-BETA, netbsd-0-9-ALPHA2, netbsd-0-9-ALPHA, netbsd-0-9
Changes since 1.7: +1 -3 lines
Diff to previous 1.7 (colored)

removed aui/bnc hack from ifconfig. Use -llc0/llc0 instead.

Revision 1.7 / (download) - annotate - [select for diffs], Sun Jun 6 08:55:30 1993 UTC (30 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.6: +35 -25 lines
Diff to previous 1.6 (colored)

fix ifconfig once again. multiple protocols really cooked hte code i wrote
before for -a.

Revision 1.6 / (download) - annotate - [select for diffs], Fri May 21 12:48:49 1993 UTC (30 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.5: +4 -5 lines
Diff to previous 1.5 (colored)

Remove ifdefs hiding ISO and XNS functionality
(from Havard Eidnes <Havard.Eidnes@runit.sintef.no>)

Revision 1.5 / (download) - annotate - [select for diffs], Tue May 4 09:26:54 1993 UTC (30 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.4: +77 -7 lines
Diff to previous 1.4 (colored)

Added another sunos-ism: ifconfig -a

Revision 1.4 / (download) - annotate - [select for diffs], Tue Mar 23 00:28:32 1993 UTC (30 years, 11 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-alpha-1, netbsd-0-8
Changes since 1.3: +1 -1 lines
Diff to previous 1.3 (colored)

changed "Id" to "Header" for rcsids

Revision 1.3 / (download) - annotate - [select for diffs], Mon Mar 22 08:04:00 1993 UTC (30 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.2: +1 -11 lines
Diff to previous 1.2 (colored)

added rcs ids to all files

Revision 1.2 / (download) - annotate - [select for diffs], Sun Mar 21 18:04:42 1993 UTC (30 years, 11 months ago) by cgd
Branch: MAIN
CVS Tags: patchkit-0-2-2
Changes since 1.1: +20 -0 lines
Diff to previous 1.1 (colored)

after 0.2.2 "stable" patches applied

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 21 09:45:37 1993 UTC (30 years, 11 months ago) by cgd
Branch: WFJ-920714, CSRG
CVS Tags: WFJ-386bsd-01
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of 386bsd-0.1 sources

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (30 years, 11 months ago) by cgd
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>