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


Keyword substitution: kv
Default branch: MAIN


Revision 1.249.2.1: download - view: text, markup, annotated - select for diffs
Sat Aug 24 16:42:26 2024 UTC (5 months ago) by martin
Branches: netbsd-10
CVS tags: netbsd-10-1-RELEASE
Diff to: previous 1.249: preferred, colored; next MAIN 1.250: preferred, colored
Changes since revision 1.249: +38 -7 lines
Pull up following revision(s) (requested by ozaki-r in ticket #811):

	tests/net/if_shmif/t_shmif.sh: revision 1.1
	sbin/ifconfig/ifconfig.c: revision 1.251
	sbin/ifconfig/ifconfig.8: revision 1.130
	sys/rump/net/lib/libshmif/if_shmem.c: revision 1.85
	sys/rump/net/lib/libshmif/if_shmem.c: revision 1.86
	sys/rump/net/lib/libshmif/if_shmem.c: revision 1.87
	etc/mtree/NetBSD.dist.tests: revision 1.206
	distrib/sets/lists/tests/mi: revision 1.1333
	tests/net/if_shmif/Makefile: revision 1.1
	tests/net/Makefile: revision 1.42

shmif: change behaviors about link states

- Change the link state to UP on ifconfig linkstr
  - This behavior emulates physical devices
- Change the link state to UNKNOWN on ifconfig -linkstr just in case
- Reject sending/receiving packets if the link state is DOWN
  - Permit to send/receive packets on UNKNOWN, which is required
    to unbreak some ATF tests written in C

shmif: support media

It enables to link-down shmif by ifconfig media none and link-up
again by media auto.

ifconfig: show link state on -v

We could guess it through "media" or "status" output, however, we
sometimes want to know it directly for debugging or testing.

It is shown only if the -v option is specified.
tests: add tests for shmif

The test file is placed under tests/net, not tests/rump/rumpnet,
to leverage utility functions provided for tests in there.
shmem(4): Fix typo in comment: AFT -> ATF.

Also fix grammar (if I understood correctly what this meant: rump
servers written in C, rather than set up via shell scripts around
rump_server invoking ifconfig).

No functional change intended.

Revision 1.251: download - view: text, markup, annotated - select for diffs
Tue Aug 20 08:18:24 2024 UTC (5 months ago) by ozaki-r
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.250: preferred, colored
Changes since revision 1.250: +38 -7 lines
ifconfig: show link state on -v

We could guess it through "media" or "status" output, however, we
sometimes want to know it directly for debugging or testing.

It is shown only if the -v option is specified.

Revision 1.250: download - view: text, markup, annotated - select for diffs
Wed Jan 3 18:10:42 2024 UTC (12 months, 3 weeks ago) by andvar
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs
Diff to: previous 1.249: preferred, colored
Changes since revision 1.249: +4 -4 lines
s/addreseses/addresses/ in comments (and one missing whitespace).

Revision 1.249: download - view: text, markup, annotated - select for diffs
Fri Nov 25 08:41:05 2022 UTC (2 years, 2 months ago) by knakahara
Branches: MAIN
CVS tags: netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1
Branch point for: netbsd-10
Diff to: previous 1.248: preferred, colored
Changes since revision 1.248: +4 -2 lines
ifconfig(8) support unnumbered flag.

Revision 1.248: download - view: text, markup, annotated - select for diffs
Wed Oct 14 13:37:14 2020 UTC (4 years, 3 months ago) by roy
Branches: MAIN
CVS tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Diff to: previous 1.247: preferred, colored
Changes since revision 1.247: +12 -33 lines
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 - view: text, markup, annotated - select for diffs
Mon Sep 28 13:50:22 2020 UTC (4 years, 3 months ago) by roy
Branches: MAIN
Diff to: previous 1.246: preferred, colored
Changes since revision 1.246: +15 -29 lines
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 - view: text, markup, annotated - select for diffs
Sat Sep 26 23:43:26 2020 UTC (4 years, 4 months ago) by roy
Branches: MAIN
Diff to: previous 1.245: preferred, colored
Changes since revision 1.245: +16 -15 lines
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 - view: text, markup, annotated - select for diffs
Wed Sep 23 10:48:12 2020 UTC (4 years, 4 months ago) by roy
Branches: MAIN
Diff to: previous 1.244: preferred, colored
Changes since revision 1.244: +5 -5 lines
ifconfig: test cases want LINK_STATE_UNKNOWN to be treated as up.

Revision 1.244: download - view: text, markup, annotated - select for diffs
Wed Sep 23 02:09:18 2020 UTC (4 years, 4 months ago) by roy
Branches: MAIN
Diff to: previous 1.243: preferred, colored
Changes since revision 1.243: +12 -7 lines
ifconfig: teach carrier test about ifi_link_state from SIOCGIFDATA

Because not all interfaces support media.

Revision 1.243: download - view: text, markup, annotated - select for diffs
Tue Sep 22 14:14:17 2020 UTC (4 years, 4 months ago) by roy
Branches: MAIN
Diff to: previous 1.242: preferred, colored
Changes since revision 1.242: +11 -11 lines
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 - view: text, markup, annotated - select for diffs
Sun Jun 7 06:02:58 2020 UTC (4 years, 7 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.241: preferred, colored
Changes since revision 1.241: +11 -11 lines
Update for proplib(3) API changes.

Revision 1.236.16.3: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:03:20 2020 UTC (4 years, 9 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.236.16.2: preferred, colored; branchpoint 1.236: preferred, colored; next MAIN 1.237: preferred, colored
Changes since revision 1.236.16.2: +69 -1 lines
Mostly merge changes from HEAD upto 20200411

Revision 1.236.16.2: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:07:19 2020 UTC (4 years, 9 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.236.16.1: preferred, colored; branchpoint 1.236: preferred, colored
Changes since revision 1.236.16.1: +4 -4 lines
Merge changes from current as of 20200406

Revision 1.241: download - view: text, markup, annotated - select for diffs
Thu Jan 2 23:02:19 2020 UTC (5 years ago) by ryo
Branches: MAIN
CVS tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp
Diff to: previous 1.240: preferred, colored
Changes since revision 1.240: +4 -4 lines
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 - view: text, markup, annotated - select for diffs
Fri Aug 16 10:33:17 2019 UTC (5 years, 5 months ago) by msaitoh
Branches: MAIN
CVS tags: phil-wifi-20191119
Diff to: previous 1.239: preferred, colored
Changes since revision 1.239: +11 -11 lines
 Whitespace fix.

Revision 1.239: download - view: text, markup, annotated - select for diffs
Thu Jul 4 02:45:45 2019 UTC (5 years, 6 months ago) by ozaki-r
Branches: MAIN
CVS tags: netbsd-9-base, netbsd-9-4-RELEASE, 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
Diff to: previous 1.238: preferred, colored
Changes since revision 1.238: +70 -2 lines
Add descr,description/-descr,-description commands to ifconfig(8) to handle a description.

From t-kusaba@IIJ

Revision 1.236.16.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:05:34 2019 UTC (5 years, 7 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.236: preferred, colored
Changes since revision 1.236: +4 -2 lines
Sync with HEAD

Revision 1.236.14.2: download - view: text, markup, annotated - select for diffs
Wed Dec 26 14:01:29 2018 UTC (6 years, 1 month ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.236.14.1: preferred, colored; branchpoint 1.236: preferred, colored; next MAIN 1.237: preferred, colored
Changes since revision 1.236.14.1: +3 -2 lines
Sync with HEAD, resolve a few conflicts

Revision 1.238: download - view: text, markup, annotated - select for diffs
Fri Dec 21 08:58:08 2018 UTC (6 years, 1 month ago) by msaitoh
Branches: MAIN
CVS tags: phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226
Diff to: previous 1.237: preferred, colored
Changes since revision 1.237: +3 -2 lines
 Add SIOCSETHERCAP. It's used to change ec_capenable.

Revision 1.236.14.1: download - view: text, markup, annotated - select for diffs
Mon Nov 26 01:52:14 2018 UTC (6 years, 2 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.236: preferred, colored
Changes since revision 1.236: +3 -2 lines
Sync with HEAD, resolve a couple of conflicts

Revision 1.237: download - view: text, markup, annotated - select for diffs
Thu Nov 15 04:36:46 2018 UTC (6 years, 2 months ago) by ozaki-r
Branches: MAIN
CVS tags: pgoyette-compat-1126
Diff to: previous 1.236: preferred, colored
Changes since revision 1.236: +3 -2 lines
ifconfig: add linkstr/-linkstr to the help message

Revision 1.236: download - view: text, markup, annotated - select for diffs
Thu Jan 7 11:32:21 2016 UTC (9 years ago) by roy
Branches: 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-3-RELEASE, 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
Diff to: previous 1.235: preferred, colored
Changes since revision 1.235: +37 -15 lines
-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 - view: text, markup, annotated - select for diffs
Wed Jul 29 07:42:27 2015 UTC (9 years, 6 months ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.234: preferred, colored
Changes since revision 1.234: +4 -8 lines
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 - view: text, markup, annotated - select for diffs
Wed Apr 22 17:42:22 2015 UTC (9 years, 9 months ago) by roy
Branches: MAIN
Diff to: previous 1.233: preferred, colored
Changes since revision 1.233: +9 -26 lines
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 - view: text, markup, annotated - select for diffs
Fri Sep 12 08:54:26 2014 UTC (10 years, 4 months ago) by martin
Branches: MAIN
Diff to: previous 1.232: preferred, colored
Changes since revision 1.232: +3 -3 lines
Initialize timespec "end" for the benefit of some gcc versions getting
"may be used uninitialized" warnings wrong.

Revision 1.232: download - view: text, markup, annotated - select for diffs
Thu Sep 11 13:10:04 2014 UTC (10 years, 4 months ago) by roy
Branches: MAIN
Diff to: previous 1.231: preferred, colored
Changes since revision 1.231: +97 -9 lines
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 - view: text, markup, annotated - select for diffs
Wed Aug 20 00:02:25 2014 UTC (10 years, 5 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.227.6.2: preferred, colored; branchpoint 1.227: preferred, colored; next MAIN 1.228: preferred, colored
Changes since revision 1.227.6.2: +2 -12 lines
Rebase to HEAD as of a few days ago.

Revision 1.226.2.3: download - view: text, markup, annotated - select for diffs
Thu May 22 11:37:28 2014 UTC (10 years, 8 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.226.2.2: preferred, colored; branchpoint 1.226: preferred, colored; next MAIN 1.227: preferred, colored
Changes since revision 1.226.2.2: +7 -13 lines
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 - view: text, markup, annotated - select for diffs
Sat Oct 19 00:35:30 2013 UTC (11 years, 3 months ago) by christos
Branches: 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
Diff to: previous 1.230: preferred, colored
Changes since revision 1.230: +2 -11 lines
use the new scopeid functions

Revision 1.230: download - view: text, markup, annotated - select for diffs
Wed Jul 17 15:40:42 2013 UTC (11 years, 6 months ago) by christos
Branches: MAIN
CVS tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2
Diff to: previous 1.229: preferred, colored
Changes since revision 1.229: +2 -3 lines
Allow -v to be used with other commands (list scan for example) as documented.

Revision 1.227.6.2: download - view: text, markup, annotated - select for diffs
Mon Feb 25 00:28:08 2013 UTC (11 years, 11 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.227.6.1: preferred, colored; branchpoint 1.227: preferred, colored
Changes since revision 1.227.6.1: +7 -3 lines
resync with head

Revision 1.229: download - view: text, markup, annotated - select for diffs
Thu Feb 7 13:21:34 2013 UTC (11 years, 11 months ago) by apb
Branches: MAIN
CVS tags: agc-symver-base, agc-symver
Diff to: previous 1.228: preferred, colored
Changes since revision 1.228: +7 -3 lines
Abort on error from prop_dictionary_augment.

Revision 1.226.2.2: download - view: text, markup, annotated - select for diffs
Wed Jan 16 05:32:33 2013 UTC (12 years ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.226.2.1: preferred, colored; branchpoint 1.226: preferred, colored
Changes since revision 1.226.2.1: +26 -10 lines
sync with (a bit old) head

Revision 1.227.6.1: download - view: text, markup, annotated - select for diffs
Tue Nov 20 03:00:48 2012 UTC (12 years, 2 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.227: preferred, colored
Changes since revision 1.227: +26 -10 lines
Resync to 2012-11-19 00:00:00 UTC

Revision 1.228: download - view: text, markup, annotated - select for diffs
Thu Nov 1 13:43:23 2012 UTC (12 years, 2 months ago) by pgoyette
Branches: MAIN
CVS tags: yamt-pagecache-base8, yamt-pagecache-base7
Diff to: previous 1.227: preferred, colored
Changes since revision 1.227: +26 -10 lines
Use snprintb_m(3) to split flags/capabilities/enabled across multiple
output lines.

As discussed on current-users

Revision 1.226.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:05:40 2012 UTC (12 years, 9 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.226: preferred, colored
Changes since revision 1.226: +15 -11 lines
sync with head

Revision 1.227: download - view: text, markup, annotated - select for diffs
Sat Jan 28 15:01:44 2012 UTC (13 years ago) by mbalmer
Branches: 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
Diff to: previous 1.226: preferred, colored
Changes since revision 1.226: +15 -11 lines
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 - view: text, markup, annotated - select for diffs
Mon Aug 29 14:35:00 2011 UTC (13 years, 5 months ago) by joerg
Branches: MAIN
CVS tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base
Branch point for: yamt-pagecache
Diff to: previous 1.225: preferred, colored
Changes since revision 1.225: +3 -3 lines
Use __dead

Revision 1.225: download - view: text, markup, annotated - select for diffs
Tue Dec 14 10:51:51 2010 UTC (14 years, 1 month ago) by pooka
Branches: MAIN
CVS tags: matt-mips64-premerge-20101231, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Diff to: previous 1.224: preferred, colored
Changes since revision 1.224: +10 -4 lines
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 - view: text, markup, annotated - select for diffs
Mon Dec 13 17:35:08 2010 UTC (14 years, 1 month ago) by pooka
Branches: MAIN
Diff to: previous 1.223: preferred, colored
Changes since revision 1.223: +13 -13 lines
Convert from the .ifdef RUMP_ACTION stuff to RUMPPRG.

Revision 1.223: download - view: text, markup, annotated - select for diffs
Mon Nov 15 22:42:37 2010 UTC (14 years, 2 months ago) by pooka
Branches: MAIN
Diff to: previous 1.222: preferred, colored
Changes since revision 1.222: +71 -2 lines
Implement ifconfig linkstr as proposed on tech-net.

Revision 1.222: download - view: text, markup, annotated - select for diffs
Fri Nov 5 13:52:41 2010 UTC (14 years, 2 months ago) by pooka
Branches: MAIN
Diff to: previous 1.221: preferred, colored
Changes since revision 1.221: +4 -6 lines
adapt to new rumpclient_init() signature

Revision 1.221: download - view: text, markup, annotated - select for diffs
Thu Nov 4 23:31:12 2010 UTC (14 years, 2 months ago) by pooka
Branches: MAIN
Diff to: previous 1.220: preferred, colored
Changes since revision 1.220: +6 -3 lines
Update RUMP_ACTION to use the newstyle rump client.

Revision 1.213.2.1.4.1: download - view: text, markup, annotated - select for diffs
Wed Apr 21 05:26:34 2010 UTC (14 years, 9 months ago) by matt
Branches: matt-nb5-mips64
CVS tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Diff to: previous 1.213.2.1: preferred, colored; next MAIN 1.213.2.2: preferred, colored
Changes since revision 1.213.2.1: +8 -13 lines
sync to netbsd-5

Revision 1.220: download - view: text, markup, annotated - select for diffs
Fri Aug 7 18:53:37 2009 UTC (15 years, 5 months ago) by dyoung
Branches: MAIN
CVS tags: matt-premerge-20091211
Diff to: previous 1.219: preferred, colored
Changes since revision 1.219: +8 -5 lines
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 - view: text, markup, annotated - select for diffs
Tue May 26 16:03:24 2009 UTC (15 years, 8 months ago) by pooka
Branches: MAIN
Diff to: previous 1.218: preferred, colored
Changes since revision 1.218: +5 -2 lines
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 - view: text, markup, annotated - select for diffs
Wed May 13 19:19:02 2009 UTC (15 years, 8 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.214: preferred, colored; next MAIN 1.215: preferred, colored
Changes since revision 1.214: +9 -14 lines
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 - view: text, markup, annotated - select for diffs
Sun May 3 13:17:52 2009 UTC (15 years, 8 months ago) by bouyer
Branches: 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
Diff to: previous 1.213.2.1: preferred, colored; branchpoint 1.213: preferred, colored; next MAIN 1.214: preferred, colored
Changes since revision 1.213.2.1: +8 -13 lines
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 - view: text, markup, annotated - select for diffs
Tue Apr 21 22:46:39 2009 UTC (15 years, 9 months ago) by dyoung
Branches: MAIN
CVS tags: jym-xensuspend-nbase, jym-xensuspend-base
Diff to: previous 1.217: preferred, colored
Changes since revision 1.217: +3 -8 lines
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 - view: text, markup, annotated - select for diffs
Tue Apr 21 22:13:10 2009 UTC (15 years, 9 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.216: preferred, colored
Changes since revision 1.216: +3 -3 lines
Cosmetic: add some whitespace for my ease of reading.

Revision 1.216: download - view: text, markup, annotated - select for diffs
Tue Apr 21 21:57:14 2009 UTC (15 years, 9 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.215: preferred, colored
Changes since revision 1.215: +7 -7 lines
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 - view: text, markup, annotated - select for diffs
Sat Apr 4 18:22:54 2009 UTC (15 years, 9 months ago) by snj
Branches: 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
Diff to: previous 1.213: preferred, colored
Changes since revision 1.213: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Sat Apr 4 17:10:19 2009 UTC (15 years, 9 months ago) by plunky
Branches: MAIN
Diff to: previous 1.214: preferred, colored
Changes since revision 1.214: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Sun Jan 18 00:24:29 2009 UTC (16 years ago) by lukem
Branches: MAIN
Branch point for: jym-xensuspend
Diff to: previous 1.213: preferred, colored
Changes since revision 1.213: +3 -3 lines
fix -Wsign-compare issues

Revision 1.181.4.3: download - view: text, markup, annotated - select for diffs
Sun Sep 28 11:17:11 2008 UTC (16 years, 4 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.181.4.2: preferred, colored; branchpoint 1.181: preferred, colored; next MAIN 1.182: preferred, colored
Changes since revision 1.181.4.2: +342 -870 lines
Sync with HEAD.

Revision 1.193.2.2: download - view: text, markup, annotated - select for diffs
Thu Sep 18 04:28:24 2008 UTC (16 years, 4 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.193.2.1: preferred, colored; next MAIN 1.194: preferred, colored
Changes since revision 1.193.2.1: +344 -872 lines
Sync with wrstuden-revivesa-base-2.

Revision 1.213: download - view: text, markup, annotated - select for diffs
Fri Aug 1 22:29:13 2008 UTC (16 years, 5 months ago) by dyoung
Branches: 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
Diff to: previous 1.212: preferred, colored
Changes since revision 1.212: +3 -4 lines
Extract common code.  Create subroutine paddr_prefix_size().

Revision 1.212: download - view: text, markup, annotated - select for diffs
Sun Jul 20 01:20:22 2008 UTC (16 years, 6 months ago) by lukem
Branches: MAIN
Diff to: previous 1.211: preferred, colored
Changes since revision 1.211: +4 -4 lines
Remove the \n and tabs from the __COPYRIGHT() strings.
(Tweak some to use a consistent format.)

Revision 1.211: download - view: text, markup, annotated - select for diffs
Tue Jul 15 21:27:58 2008 UTC (16 years, 6 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.210: preferred, colored
Changes since revision 1.210: +28 -28 lines
Cosmetic: s/xenv/oenv/

Revision 1.210: download - view: text, markup, annotated - select for diffs
Tue Jul 15 21:19:24 2008 UTC (16 years, 6 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.209: preferred, colored
Changes since revision 1.209: +3 -3 lines
Make usage() static.

Revision 1.209: download - view: text, markup, annotated - select for diffs
Tue Jul 15 20:56:13 2008 UTC (16 years, 6 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.208: preferred, colored
Changes since revision 1.208: +45 -29 lines
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 - view: text, markup, annotated - select for diffs
Wed Jul 2 07:44:14 2008 UTC (16 years, 6 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.207: preferred, colored
Changes since revision 1.207: +274 -817 lines
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 - view: text, markup, annotated - select for diffs
Sun Jun 29 08:41:57 2008 UTC (16 years, 7 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.181.4.1: preferred, colored; branchpoint 1.181: preferred, colored
Changes since revision 1.181.4.1: +2 -2 lines
Sync with HEAD.

Revision 1.193.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 23 04:29:57 2008 UTC (16 years, 7 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.193: preferred, colored
Changes since revision 1.193: +67 -219 lines
Sync w/ -current. 34 merge conflicts to follow.

Revision 1.184.2.3: download - view: text, markup, annotated - select for diffs
Tue Jun 17 09:13:39 2008 UTC (16 years, 7 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.184.2.2: preferred, colored; branchpoint 1.184: preferred, colored; next MAIN 1.185: preferred, colored
Changes since revision 1.184.2.2: +4 -4 lines
sync with head.

Revision 1.184.2.2: download - view: text, markup, annotated - select for diffs
Wed Jun 4 02:04:37 2008 UTC (16 years, 7 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.184.2.1: preferred, colored; branchpoint 1.184: preferred, colored
Changes since revision 1.184.2.1: +11 -11 lines
sync with head

Revision 1.207: download - view: text, markup, annotated - select for diffs
Tue Jun 3 21:03:27 2008 UTC (16 years, 7 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-pf42-base4, wrstuden-revivesa-base-1, wrstuden-revivesa-base
Diff to: previous 1.206: preferred, colored
Changes since revision 1.206: +3 -3 lines
Remove one more struct afswtch.af_getprefix() remnant.

Revision 1.206: download - view: text, markup, annotated - select for diffs
Tue Jun 3 21:02:49 2008 UTC (16 years, 7 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.205: preferred, colored
Changes since revision 1.205: +3 -3 lines
Remove remnants of struct afswtch.af_getprefix().

Revision 1.181.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:21:22 2008 UTC (16 years, 7 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.181: preferred, colored
Changes since revision 1.181: +992 -755 lines
Sync with HEAD.

Revision 1.205: download - view: text, markup, annotated - select for diffs
Mon May 19 18:00:31 2008 UTC (16 years, 8 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-pf42-base3, hpcarm-cleanup-nbase
Diff to: previous 1.204: preferred, colored
Changes since revision 1.204: +11 -11 lines
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 - view: text, markup, annotated - select for diffs
Sun May 18 12:30:53 2008 UTC (16 years, 8 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.184: preferred, colored
Changes since revision 1.184: +992 -741 lines
sync with head.

Revision 1.204: download - view: text, markup, annotated - select for diffs
Mon May 12 22:06:13 2008 UTC (16 years, 8 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-pf42-base2
Diff to: previous 1.203: preferred, colored
Changes since revision 1.203: +11 -5 lines
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 - view: text, markup, annotated - select for diffs
Sun May 11 22:07:23 2008 UTC (16 years, 8 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.202: preferred, colored
Changes since revision 1.202: +4 -8 lines
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 - view: text, markup, annotated - select for diffs
Thu May 8 07:13:20 2008 UTC (16 years, 8 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.201: preferred, colored
Changes since revision 1.201: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Wed May 7 23:55:06 2008 UTC (16 years, 8 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.200: preferred, colored
Changes since revision 1.200: +31 -109 lines
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 - view: text, markup, annotated - select for diffs
Wed May 7 21:29:27 2008 UTC (16 years, 8 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.199: preferred, colored
Changes since revision 1.199: +4 -40 lines
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 - view: text, markup, annotated - select for diffs
Wed May 7 20:45:01 2008 UTC (16 years, 8 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.198: preferred, colored
Changes since revision 1.198: +7 -18 lines
Move ISO, AppleTalk, carp(4) syntax from ifconfig.c to af_iso.c,
af_atalk.c, carp.c, respectively.

Revision 1.198: download - view: text, markup, annotated - select for diffs
Wed May 7 20:12:31 2008 UTC (16 years, 8 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.197: preferred, colored
Changes since revision 1.197: +9 -9 lines
Sprinkle 'static const' on keyword objects.

Revision 1.197: download - view: text, markup, annotated - select for diffs
Wed May 7 20:11:15 2008 UTC (16 years, 8 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.196: preferred, colored
Changes since revision 1.196: +3 -7 lines
Move vlan(4) syntax from ifconfig.c into vlan.c.

Revision 1.196: download - view: text, markup, annotated - select for diffs
Wed May 7 20:03:27 2008 UTC (16 years, 8 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.195: preferred, colored
Changes since revision 1.195: +4 -7 lines
Move tunnel syntax into tunnel.c.  Move net80211 'list' command
syntax into ieee80211.c.

Revision 1.195: download - view: text, markup, annotated - select for diffs
Wed May 7 19:55:24 2008 UTC (16 years, 8 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.194: preferred, colored
Changes since revision 1.194: +6 -28 lines
Move net80211 and agr(4) syntax out of ifconfig.c and into ieee80211.c
and agr.c, respectively.

Revision 1.194: download - view: text, markup, annotated - select for diffs
Wed May 7 18:08:30 2008 UTC (16 years, 8 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.193: preferred, colored
Changes since revision 1.193: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Tue May 6 21:58:05 2008 UTC (16 years, 8 months ago) by dyoung
Branches: MAIN
Branch point for: wrstuden-revivesa
Diff to: previous 1.192: preferred, colored
Changes since revision 1.192: +6 -4 lines
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 - view: text, markup, annotated - select for diffs
Tue May 6 21:20:05 2008 UTC (16 years, 8 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.191: preferred, colored
Changes since revision 1.191: +20 -10 lines
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 - view: text, markup, annotated - select for diffs
Tue May 6 18:16:34 2008 UTC (16 years, 8 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.190: preferred, colored
Changes since revision 1.190: +3 -3 lines
Fix syntax error in last.

Revision 1.190: download - view: text, markup, annotated - select for diffs
Tue May 6 18:09:50 2008 UTC (16 years, 8 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.189: preferred, colored
Changes since revision 1.189: +6 -9 lines
Cosmetic: use return rc ? 0 : -1;

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

Revision 1.189: download - view: text, markup, annotated - select for diffs
Tue May 6 17:29:04 2008 UTC (16 years, 8 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.188: preferred, colored
Changes since revision 1.188: +63 -65 lines
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 - view: text, markup, annotated - select for diffs
Tue May 6 16:15:17 2008 UTC (16 years, 8 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.187: preferred, colored
Changes since revision 1.187: +19 -33 lines
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 - view: text, markup, annotated - select for diffs
Tue May 6 04:33:42 2008 UTC (16 years, 8 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.186: preferred, colored
Changes since revision 1.186: +1128 -712 lines
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 - view: text, markup, annotated - select for diffs
Mon Apr 28 20:23:08 2008 UTC (16 years, 9 months ago) by martin
Branches: MAIN
Diff to: previous 1.185: preferred, colored
Changes since revision 1.185: +2 -9 lines
Remove clause 3 and 4 from TNF licenses

Revision 1.185: download - view: text, markup, annotated - select for diffs
Mon Apr 21 05:33:55 2008 UTC (16 years, 9 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.184: preferred, colored
Changes since revision 1.184: +7 -6 lines
Change int to bool in a couple of places.

Revision 1.184: download - view: text, markup, annotated - select for diffs
Tue Apr 15 22:26:58 2008 UTC (16 years, 9 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base
Branch point for: yamt-pf42
Diff to: previous 1.183: preferred, colored
Changes since revision 1.183: +2 -9 lines
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 - view: text, markup, annotated - select for diffs
Mon Apr 14 15:57:15 2008 UTC (16 years, 9 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.182: preferred, colored
Changes since revision 1.182: +2 -7 lines
Cosmetic: delete dead code.

Revision 1.182: download - view: text, markup, annotated - select for diffs
Fri Apr 11 01:14:28 2008 UTC (16 years, 9 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.181: preferred, colored
Changes since revision 1.181: +27 -29 lines
Cosmetic: use NULL instead of 0 for pointers.  Shorten staircase.

Revision 1.181.2.1: download - view: text, markup, annotated - select for diffs
Fri Feb 22 02:53:32 2008 UTC (16 years, 11 months ago) by keiichi
Branches: keiichi-mipv6
Diff to: previous 1.181: preferred, colored; next MAIN 1.182: preferred, colored
Changes since revision 1.181: +6 -2 lines
imported Mobile IPv6 code developed by the SHISA project
(http://www.mobileip.jp/).

Revision 1.180.4.1: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:38:08 2008 UTC (17 years ago) by matt
Branches: matt-armv6
Diff to: previous 1.180: preferred, colored; next MAIN 1.181: preferred, colored
Changes since revision 1.180: +4 -2 lines
sync with HEAD

Revision 1.180.6.1: download - view: text, markup, annotated - select for diffs
Thu Dec 27 00:46:59 2007 UTC (17 years, 1 month ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.180: preferred, colored; next MAIN 1.181: preferred, colored
Changes since revision 1.180: +4 -2 lines
Sync with HEAD.

Revision 1.181: download - view: text, markup, annotated - select for diffs
Sun Dec 16 13:49:22 2007 UTC (17 years, 1 month ago) by degroote
Branches: 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
Diff to: previous 1.180: preferred, colored
Changes since revision 1.180: +4 -2 lines
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 - view: text, markup, annotated - select for diffs
Sun Oct 14 05:54:35 2007 UTC (17 years, 3 months ago) by riz
Branches: netbsd-3
Diff to: previous 1.152.2.1: preferred, colored; branchpoint 1.152: preferred, colored; next MAIN 1.153: preferred, colored
Changes since revision 1.152.2.1: +26 -2 lines
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 - view: text, markup, annotated - select for diffs
Tue Jan 9 09:19:02 2007 UTC (18 years ago) by dyoung
Branches: 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
Diff to: previous 1.179: preferred, colored
Changes since revision 1.179: +4 -2 lines
Let us adjust the 802.11 fragmentation threshold with ifconfig ath0
frag 256, for example.

Revision 1.179: download - view: text, markup, annotated - select for diffs
Thu Nov 23 19:43:52 2006 UTC (18 years, 2 months ago) by yamt
Branches: 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
Diff to: previous 1.178: preferred, colored
Changes since revision 1.178: +4 -2 lines
implement ipv6 TSO.
partly from Matthias Scheler.  tested by him.

Revision 1.178: download - view: text, markup, annotated - select for diffs
Mon Nov 13 05:13:39 2006 UTC (18 years, 2 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.177: preferred, colored
Changes since revision 1.177: +36 -3 lines
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 - view: text, markup, annotated - select for diffs
Mon Oct 16 02:52:43 2006 UTC (18 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.176: preferred, colored
Changes since revision 1.176: +7 -7 lines
- get rid of p_cfunc2
- add missing initializers

Revision 1.176: download - view: text, markup, annotated - select for diffs
Sat Aug 26 18:14:28 2006 UTC (18 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.175: preferred, colored
Changes since revision 1.175: +2 -11 lines
Programs that use efun.

Revision 1.175: download - view: text, markup, annotated - select for diffs
Sat Aug 26 16:59:27 2006 UTC (18 years, 5 months ago) by matt
Branches: MAIN
Diff to: previous 1.174: preferred, colored
Changes since revision 1.174: +2 -6 lines
Nuke a leftover XNS fragment.

Revision 1.174: download - view: text, markup, annotated - select for diffs
Sat Aug 26 16:20:20 2006 UTC (18 years, 5 months ago) by matt
Branches: MAIN
Diff to: previous 1.173: preferred, colored
Changes since revision 1.173: +2 -4 lines
Remove XNS support.

Revision 1.173: download - view: text, markup, annotated - select for diffs
Thu Jul 13 14:02:03 2006 UTC (18 years, 6 months ago) by martin
Branches: MAIN
CVS tags: abandoned-netbsd-4-base, abandoned-netbsd-4
Diff to: previous 1.172: preferred, colored
Changes since revision 1.172: +26 -2 lines
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 - view: text, markup, annotated - select for diffs
Fri Jun 16 23:48:35 2006 UTC (18 years, 7 months ago) by elad
Branches: MAIN
Diff to: previous 1.171: preferred, colored
Changes since revision 1.171: +28 -19 lines
fix incorrect usage of strncpy() to (an internal implementation of)
estrlcpy().

okay christos

Revision 1.171: download - view: text, markup, annotated - select for diffs
Thu May 18 09:05:50 2006 UTC (18 years, 8 months ago) by liamjfoy
Branches: MAIN
Diff to: previous 1.170: preferred, colored
Changes since revision 1.170: +16 -2 lines
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 - view: text, markup, annotated - select for diffs
Sat Apr 29 21:32:29 2006 UTC (18 years, 9 months ago) by rpaulo
Branches: MAIN
Diff to: previous 1.169: preferred, colored
Changes since revision 1.169: +7 -2 lines
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 - view: text, markup, annotated - select for diffs
Fri Mar 24 22:50:59 2006 UTC (18 years, 10 months ago) by riz
Branches: 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
Diff to: previous 1.152: preferred, colored
Changes since revision 1.152: +37 -14 lines
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 - view: text, markup, annotated - select for diffs
Thu Aug 11 20:56:05 2005 UTC (19 years, 5 months ago) by rpaulo
Branches: MAIN
Diff to: previous 1.168: preferred, colored
Changes since revision 1.168: +37 -14 lines
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 - view: text, markup, annotated - select for diffs
Sun Jul 24 01:58:38 2005 UTC (19 years, 6 months ago) by snj
Branches: 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
Diff to: previous 1.141.4.1: preferred, colored; branchpoint 1.141: preferred, colored; next MAIN 1.142: preferred, colored
Changes since revision 1.141.4.1: +293 -531 lines
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 - view: text, markup, annotated - select for diffs
Sun Jul 24 01:36:26 2005 UTC (19 years, 6 months ago) by snj
Branches: netbsd-2
Diff to: previous 1.141: preferred, colored
Changes since revision 1.141: +2 -12 lines
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 - view: text, markup, annotated - select for diffs
Mon May 2 15:35:16 2005 UTC (19 years, 8 months ago) by yamt
Branches: MAIN
Diff to: previous 1.167: preferred, colored
Changes since revision 1.167: +38 -12 lines
split IFCAP_CSUM_xxx to IFCAP_CSUM_xxx_Rx and IFCAP_CSUM_xxx_Tx.

Revision 1.167: download - view: text, markup, annotated - select for diffs
Sun Mar 20 02:51:47 2005 UTC (19 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.166: preferred, colored
Changes since revision 1.166: +2 -9 lines
IFFBITS and IFCAPBITS are now defined in <net/if.h>

Revision 1.166: download - view: text, markup, annotated - select for diffs
Sun Mar 20 02:43:50 2005 UTC (19 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.165: preferred, colored
Changes since revision 1.165: +6 -163 lines
Split the IPv4 support into its own file.

Revision 1.165: download - view: text, markup, annotated - select for diffs
Sun Mar 20 01:10:51 2005 UTC (19 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.164: preferred, colored
Changes since revision 1.164: +2 -6 lines
Move a comment.

Revision 1.164: download - view: text, markup, annotated - select for diffs
Sun Mar 20 01:09:16 2005 UTC (19 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.163: preferred, colored
Changes since revision 1.163: +7 -426 lines
Split IPv6 support out into its own file.

Revision 1.163: download - view: text, markup, annotated - select for diffs
Sun Mar 20 00:02:58 2005 UTC (19 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.162: preferred, colored
Changes since revision 1.162: +3 -125 lines
Split OSI support off into its own file.

Revision 1.162: download - view: text, markup, annotated - select for diffs
Sat Mar 19 23:46:03 2005 UTC (19 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.161: preferred, colored
Changes since revision 1.161: +5 -73 lines
Split XNS support into its own file.

Revision 1.161: download - view: text, markup, annotated - select for diffs
Sat Mar 19 23:32:55 2005 UTC (19 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.160: preferred, colored
Changes since revision 1.160: +8 -134 lines
Split off AppleTalk support into its own file.

Revision 1.160: download - view: text, markup, annotated - select for diffs
Sat Mar 19 23:16:55 2005 UTC (19 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.159: preferred, colored
Changes since revision 1.159: +9 -9 lines
const'ify afswtch

Revision 1.159: download - view: text, markup, annotated - select for diffs
Sat Mar 19 23:13:42 2005 UTC (19 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.158: preferred, colored
Changes since revision 1.158: +3 -342 lines
Split off 802.11 interface handling into its own file.

Revision 1.158: download - view: text, markup, annotated - select for diffs
Sat Mar 19 22:57:06 2005 UTC (19 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.157: preferred, colored
Changes since revision 1.157: +16 -7 lines
Don't hare-code inet/inet6 in tunnel_status(), lookup the address family
name instead.

Revision 1.157: download - view: text, markup, annotated - select for diffs
Sat Mar 19 17:32:26 2005 UTC (19 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.156: preferred, colored
Changes since revision 1.156: +4 -129 lines
Split tunnel support into its own file.

Revision 1.156: download - view: text, markup, annotated - select for diffs
Sat Mar 19 03:56:06 2005 UTC (19 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.155: preferred, colored
Changes since revision 1.155: +3 -2 lines
Move extern decls to extern.h

Revision 1.155: download - view: text, markup, annotated - select for diffs
Sat Mar 19 03:53:55 2005 UTC (19 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.154: preferred, colored
Changes since revision 1.154: +3 -103 lines
Split VLAN configuration bits out into a separate file.

Revision 1.154: download - view: text, markup, annotated - select for diffs
Fri Mar 18 14:30:08 2005 UTC (19 years, 10 months ago) by yamt
Branches: MAIN
Diff to: previous 1.153: preferred, colored
Changes since revision 1.153: +3 -2 lines
update usage() for agr(4).  pointed by Thomas Klausner.

Revision 1.153: download - view: text, markup, annotated - select for diffs
Fri Mar 18 11:11:51 2005 UTC (19 years, 10 months ago) by yamt
Branches: MAIN
Diff to: previous 1.152: preferred, colored
Changes since revision 1.152: +7 -2 lines
add agr(4), a pseudo network device driver for link aggregation.

Revision 1.152: download - view: text, markup, annotated - select for diffs
Sun Mar 6 00:13:36 2005 UTC (19 years, 10 months ago) by matt
Branches: 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
Diff to: previous 1.151: preferred, colored
Changes since revision 1.151: +5 -3 lines
Add ifconfig support for TCP Segment Offload

Revision 1.151: download - view: text, markup, annotated - select for diffs
Sun Feb 6 06:15:57 2005 UTC (19 years, 11 months ago) by perry
Branches: MAIN
Diff to: previous 1.150: preferred, colored
Changes since revision 1.150: +8 -8 lines
remove obsolete "register" declarations.

Revision 1.150: download - view: text, markup, annotated - select for diffs
Thu Jan 20 16:16:10 2005 UTC (20 years ago) by xtraeme
Branches: MAIN
Diff to: previous 1.149: preferred, colored
Changes since revision 1.149: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Mon Dec 20 23:04:55 2004 UTC (20 years, 1 month ago) by dyoung
Branches: MAIN
Diff to: previous 1.148: preferred, colored
Changes since revision 1.148: +68 -2 lines
ifconfig -v prints 802.11 statistics.  ifconfig -v prints and zeroes
802.11 statistics.

Revision 1.148: download - view: text, markup, annotated - select for diffs
Tue Nov 16 05:59:32 2004 UTC (20 years, 2 months ago) by itojun
Branches: MAIN
Diff to: previous 1.147: preferred, colored
Changes since revision 1.147: +2 -10 lines
NI_WITHSCOPEID was not picked up by IETF standardization process.

Revision 1.147: download - view: text, markup, annotated - select for diffs
Thu Nov 11 20:37:18 2004 UTC (20 years, 2 months ago) by dsl
Branches: MAIN
Diff to: previous 1.146: preferred, colored
Changes since revision 1.146: +54 -168 lines
Functions for converting media types to/from text are now in libutil.

Revision 1.146: download - view: text, markup, annotated - select for diffs
Thu Oct 28 20:10:29 2004 UTC (20 years, 3 months ago) by dsl
Branches: MAIN
Diff to: previous 1.145: preferred, colored
Changes since revision 1.145: +7 -7 lines
More isdigit() calls that need (unsigned char) cast

Revision 1.145: download - view: text, markup, annotated - select for diffs
Mon Oct 11 20:13:37 2004 UTC (20 years, 3 months ago) by dsl
Branches: MAIN
Diff to: previous 1.144: preferred, colored
Changes since revision 1.144: +184 -307 lines
De __P

Revision 1.144: download - view: text, markup, annotated - select for diffs
Mon Oct 11 17:13:55 2004 UTC (20 years, 3 months ago) by dsl
Branches: MAIN
Diff to: previous 1.143: preferred, colored
Changes since revision 1.143: +66 -67 lines
Remove all the caddr_t - mainly casts of the 3rd arg to ioctl()

Revision 1.143: download - view: text, markup, annotated - select for diffs
Tue Jul 27 14:25:19 2004 UTC (20 years, 6 months ago) by yamt
Branches: MAIN
Diff to: previous 1.142: preferred, colored
Changes since revision 1.142: +3 -3 lines
err -> errx where appropriate.

Revision 1.142: download - view: text, markup, annotated - select for diffs
Tue Jul 6 23:26:31 2004 UTC (20 years, 6 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.141: preferred, colored
Changes since revision 1.141: +2 -12 lines
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 - view: text, markup, annotated - select for diffs
Mon Mar 1 00:11:33 2004 UTC (20 years, 11 months ago) by perry
Branches: 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
Diff to: previous 1.140: preferred, colored
Changes since revision 1.140: +4 -3 lines
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 - view: text, markup, annotated - select for diffs
Fri Feb 27 21:36:17 2004 UTC (20 years, 11 months ago) by itojun
Branches: MAIN
Diff to: previous 1.139: preferred, colored
Changes since revision 1.139: +6 -4 lines
check strlcpy error.  idea from Ryan McBride

Revision 1.139: download - view: text, markup, annotated - select for diffs
Mon Oct 13 08:27:35 2003 UTC (21 years, 3 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.138: preferred, colored
Changes since revision 1.138: +73 -7 lines
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 - view: text, markup, annotated - select for diffs
Thu Aug 7 10:04:24 2003 UTC (21 years, 5 months ago) by agc
Branches: MAIN
Diff to: previous 1.137: preferred, colored
Changes since revision 1.137: +3 -7 lines
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 - view: text, markup, annotated - select for diffs
Wed Jun 11 19:51:31 2003 UTC (21 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.136: preferred, colored
Changes since revision 1.136: +19 -3 lines
PR/21860: Robert Elz: ifconfig doesn't allow addr/N notation for INET6

Revision 1.136: download - view: text, markup, annotated - select for diffs
Sat May 17 23:07:22 2003 UTC (21 years, 8 months ago) by itojun
Branches: MAIN
Diff to: previous 1.135: preferred, colored
Changes since revision 1.135: +6 -7 lines
use strlcpy

Revision 1.135: download - view: text, markup, annotated - select for diffs
Sat May 17 00:48:13 2003 UTC (21 years, 8 months ago) by lukem
Branches: MAIN
Diff to: previous 1.134: preferred, colored
Changes since revision 1.134: +3 -3 lines
Change -b from skipping  POINTTOPOINT|LOOPBACK  to skipping  ! BROADCAST.
Fixes my [bin/21604]

Revision 1.134: download - view: text, markup, annotated - select for diffs
Sat Apr 12 01:07:43 2003 UTC (21 years, 9 months ago) by perry
Branches: MAIN
Diff to: previous 1.133: preferred, colored
Changes since revision 1.133: +18 -13 lines
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 - view: text, markup, annotated - select for diffs
Mon Sep 30 05:38:13 2002 UTC (22 years, 4 months ago) by onoe
Branches: MAIN
CVS tags: fvdl_fs64_base
Diff to: previous 1.132: preferred, colored
Changes since revision 1.132: +23 -9 lines
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 - view: text, markup, annotated - select for diffs
Mon Sep 23 00:10:28 2002 UTC (22 years, 4 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.131: preferred, colored
Changes since revision 1.131: +3 -3 lines
Add missing newline.

Revision 1.131: download - view: text, markup, annotated - select for diffs
Sun Sep 22 15:29:23 2002 UTC (22 years, 4 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.130: preferred, colored
Changes since revision 1.130: +67 -3 lines
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 - view: text, markup, annotated - select for diffs
Fri Sep 20 21:21:53 2002 UTC (22 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.129: preferred, colored
Changes since revision 1.129: +14 -47 lines
use snprintb()

Revision 1.129: download - view: text, markup, annotated - select for diffs
Sat Jul 20 08:36:26 2002 UTC (22 years, 6 months ago) by grant
Branches: MAIN
Diff to: previous 1.128: preferred, colored
Changes since revision 1.128: +3 -3 lines
sweep of errx/warnx, remove unnecessary trailing \n

Revision 1.128: download - view: text, markup, annotated - select for diffs
Fri Jun 14 09:12:08 2002 UTC (22 years, 7 months ago) by itojun
Branches: MAIN
Diff to: previous 1.127: preferred, colored
Changes since revision 1.127: +4 -3 lines
grab eui64 only from the same interface.

Revision 1.127: download - view: text, markup, annotated - select for diffs
Fri Jun 14 09:02:00 2002 UTC (22 years, 7 months ago) by itojun
Branches: MAIN
Diff to: previous 1.126: preferred, colored
Changes since revision 1.126: +84 -41 lines
support "eui64" option (grab interface ID from link-local addr).
from: ww@styx.org

Revision 1.126: download - view: text, markup, annotated - select for diffs
Fri Jun 14 01:07:01 2002 UTC (22 years, 7 months ago) by itojun
Branches: MAIN
Diff to: previous 1.125: preferred, colored
Changes since revision 1.125: +4 -5 lines
init variable before strtoul

Revision 1.125: download - view: text, markup, annotated - select for diffs
Fri Jun 14 01:04:41 2002 UTC (22 years, 7 months ago) by itojun
Branches: MAIN
Diff to: previous 1.124: preferred, colored
Changes since revision 1.124: +20 -7 lines
metric and mtu are u_long, not int.

Revision 1.124: download - view: text, markup, annotated - select for diffs
Thu May 23 21:38:01 2002 UTC (22 years, 8 months ago) by matt
Branches: MAIN
Diff to: previous 1.123: preferred, colored
Changes since revision 1.123: +65 -10 lines
Add support to print interface counters (via SIOCGIFDATA) when the [new]
option -v is provided.

Revision 1.123: download - view: text, markup, annotated - select for diffs
Mon May 6 20:14:36 2002 UTC (22 years, 8 months ago) by thorpej
Branches: 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
Diff to: previous 1.122: preferred, colored
Changes since revision 1.122: +4 -4 lines
Don't bother testing if a u_short is > 0xffff -- that test is always false.

Revision 1.122: download - view: text, markup, annotated - select for diffs
Thu Apr 25 09:39:17 2002 UTC (22 years, 9 months ago) by itojun
Branches: MAIN
Diff to: previous 1.121: preferred, colored
Changes since revision 1.121: +16 -14 lines
use in_aliasreq for inet address manipulation, not ifaliasreq.  they have
different alignment constraint.  [tests on 64bit arch wanted]

Revision 1.121: download - view: text, markup, annotated - select for diffs
Fri Nov 2 05:57:38 2001 UTC (23 years, 2 months ago) by lukem
Branches: MAIN
Diff to: previous 1.120: preferred, colored
Changes since revision 1.120: +116 -114 lines
fix many -Wshadow warnings

Revision 1.120: download - view: text, markup, annotated - select for diffs
Wed Oct 24 22:10:15 2001 UTC (23 years, 3 months ago) by atatat
Branches: MAIN
Diff to: previous 1.119: preferred, colored
Changes since revision 1.119: +76 -75 lines
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 - view: text, markup, annotated - select for diffs
Sat Oct 6 17:05:29 2001 UTC (23 years, 3 months ago) by bjh21
Branches: MAIN
Diff to: previous 1.118: preferred, colored
Changes since revision 1.118: +13 -18 lines
Use getnameinfo() to format AF_LINK addresses again.

Revision 1.118: download - view: text, markup, annotated - select for diffs
Fri Oct 5 20:50:19 2001 UTC (23 years, 3 months ago) by bjh21
Branches: MAIN
Diff to: previous 1.117: preferred, colored
Changes since revision 1.117: +16 -11 lines
Revert last change.  getnameinfo() AF_LINK support is going away until I can
make it lint-clean.

Revision 1.117: download - view: text, markup, annotated - select for diffs
Thu Oct 4 23:12:22 2001 UTC (23 years, 3 months ago) by bjh21
Branches: MAIN
Diff to: previous 1.116: preferred, colored
Changes since revision 1.116: +13 -18 lines
Use getnameinfo() to format AF_LINK addresses rather than doing it ourselves.

Revision 1.116: download - view: text, markup, annotated - select for diffs
Wed Sep 26 07:20:16 2001 UTC (23 years, 4 months ago) by itojun
Branches: MAIN
Diff to: previous 1.115: preferred, colored
Changes since revision 1.115: +2 -3 lines
remove duplicated line in cmds[].

Revision 1.115: download - view: text, markup, annotated - select for diffs
Mon Sep 17 17:36:06 2001 UTC (23 years, 4 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.114: preferred, colored
Changes since revision 1.114: +7 -3 lines
Add tcp4csum-rx and udp4csum-rx commands for interfaces that only
support TCP/UDP checksums on the in-bound direction.

Revision 1.114: download - view: text, markup, annotated - select for diffs
Sun Aug 19 01:27:43 2001 UTC (23 years, 5 months ago) by itojun
Branches: MAIN
Diff to: previous 1.113: preferred, colored
Changes since revision 1.113: +18 -7 lines
snprintf return value audit.  from deraadt

Revision 1.113: download - view: text, markup, annotated - select for diffs
Thu Aug 9 01:25:35 2001 UTC (23 years, 5 months ago) by david
Branches: MAIN
Diff to: previous 1.112: preferred, colored
Changes since revision 1.112: +8 -5 lines
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 - view: text, markup, annotated - select for diffs
Wed Aug 8 21:22:35 2001 UTC (23 years, 5 months ago) by david
Branches: MAIN
Diff to: previous 1.111: preferred, colored
Changes since revision 1.111: +11 -2 lines
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 - view: text, markup, annotated - select for diffs
Tue Jul 31 23:27:35 2001 UTC (23 years, 6 months ago) by itojun
Branches: MAIN
Diff to: previous 1.110: preferred, colored
Changes since revision 1.110: +31 -2 lines
embed scopeid on scoped ipv6 address. sync with kame

Revision 1.110: download - view: text, markup, annotated - select for diffs
Wed Jul 25 17:29:14 2001 UTC (23 years, 6 months ago) by itojun
Branches: MAIN
Diff to: previous 1.109: preferred, colored
Changes since revision 1.109: +6 -4 lines
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 - view: text, markup, annotated - select for diffs
Thu Jun 21 13:36:24 2001 UTC (23 years, 7 months ago) by onoe
Branches: MAIN
Diff to: previous 1.108: preferred, colored
Changes since revision 1.108: +61 -38 lines
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 - view: text, markup, annotated - select for diffs
Sat Jun 2 16:17:06 2001 UTC (23 years, 8 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.107: preferred, colored
Changes since revision 1.107: +56 -2 lines
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 - view: text, markup, annotated - select for diffs
Tue May 1 11:06:43 2001 UTC (23 years, 9 months ago) by he
Branches: netbsd-1-5
CVS tags: netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001
Diff to: previous 1.79.4.6: preferred, colored; branchpoint 1.79: preferred, colored; next MAIN 1.80: preferred, colored
Changes since revision 1.79.4.6: +17 -14 lines
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 - view: text, markup, annotated - select for diffs
Sat Apr 28 04:11:10 2001 UTC (23 years, 9 months ago) by itojun
Branches: MAIN
Diff to: previous 1.106: preferred, colored
Changes since revision 1.106: +14 -14 lines
make -A a default.  present MAC adderss on all ifconfig operations.

Revision 1.106: download - view: text, markup, annotated - select for diffs
Sat Apr 28 00:00:06 2001 UTC (23 years, 9 months ago) by itojun
Branches: MAIN
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +2 -157 lines
assume the presense of getifaddrs(3).

Revision 1.105: download - view: text, markup, annotated - select for diffs
Fri Apr 27 09:10:04 2001 UTC (23 years, 9 months ago) by itojun
Branches: MAIN
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +4 -3 lines
sync usage() more to the reality.  document alias/-alias.

Revision 1.104: download - view: text, markup, annotated - select for diffs
Fri Apr 27 09:08:45 2001 UTC (23 years, 9 months ago) by itojun
Branches: MAIN
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +8 -5 lines
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 - view: text, markup, annotated - select for diffs
Thu Mar 1 08:35:16 2001 UTC (23 years, 11 months ago) by itojun
Branches: MAIN
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +5 -5 lines
whitespace at EOL

Revision 1.102: download - view: text, markup, annotated - select for diffs
Thu Mar 1 08:34:10 2001 UTC (23 years, 11 months ago) by itojun
Branches: MAIN
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +5 -4 lines
on "tunnel" subcommand, use specified address family.

Revision 1.101: download - view: text, markup, annotated - select for diffs
Fri Feb 23 19:49:54 2001 UTC (23 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +4 -3 lines
PR/12275:Kimmo Suominen: show -C in usage

Revision 1.100: download - view: text, markup, annotated - select for diffs
Tue Feb 20 15:35:21 2001 UTC (23 years, 11 months ago) by itojun
Branches: MAIN
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +25 -88 lines
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 - view: text, markup, annotated - select for diffs
Mon Feb 19 22:56:20 2001 UTC (23 years, 11 months ago) by cgd
Branches: MAIN
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +4 -5 lines
convert to use getprogname()

Revision 1.98: download - view: text, markup, annotated - select for diffs
Sun Feb 4 20:05:20 2001 UTC (23 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +4 -3 lines
fix nested externs

Revision 1.79.4.6: download - view: text, markup, annotated - select for diffs
Fri Jan 26 01:37:09 2001 UTC (24 years ago) by jhawk
Branches: netbsd-1-5
Diff to: previous 1.79.4.5: preferred, colored; branchpoint 1.79: preferred, colored
Changes since revision 1.79.4.5: +3 -3 lines
Pull up revision 1.94 (requested by itojun):
  Initialize an uninitialized pointer. PR11702.

Revision 1.97: download - view: text, markup, annotated - select for diffs
Wed Jan 24 18:06:51 2001 UTC (24 years ago) by garbled
Branches: MAIN
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +3 -3 lines
Fix the usage string so it displays the -b and s options to ifconfig -l

Revision 1.96: download - view: text, markup, annotated - select for diffs
Wed Jan 17 06:10:37 2001 UTC (24 years ago) by itojun
Branches: MAIN
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +6 -4 lines
unbroken slash notation (10.0.0.0/8) for IPv4.

Revision 1.95: download - view: text, markup, annotated - select for diffs
Wed Jan 17 06:07:32 2001 UTC (24 years ago) by itojun
Branches: MAIN
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +30 -20 lines
support "prefixlen n" for IPv4 too.

Revision 1.94: download - view: text, markup, annotated - select for diffs
Mon Jan 8 14:06:12 2001 UTC (24 years ago) by itojun
Branches: MAIN
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +3 -3 lines
uninitialized pointer.  PR 11702

Revision 1.79.4.5: download - view: text, markup, annotated - select for diffs
Sun Dec 31 20:13:54 2000 UTC (24 years, 1 month ago) by jhawk
Branches: netbsd-1-5
Diff to: previous 1.79.4.4: preferred, colored; branchpoint 1.79: preferred, colored
Changes since revision 1.79.4.4: +110 -0 lines
Pull up revision 1.89 (requested by bouyer):
	Add support for 802.1Q virtual LANs.

Revision 1.79.4.4: download - view: text, markup, annotated - select for diffs
Sun Dec 31 17:57:33 2000 UTC (24 years, 1 month ago) by jhawk
Branches: netbsd-1-5
Diff to: previous 1.79.4.3: preferred, colored; branchpoint 1.79: preferred, colored
Changes since revision 1.79.4.3: +113 -8 lines
Pull up revision 1.81, 1.87 (requested by bouyer):
  Support cloning of network pseudo-interfaces.

Revision 1.93: download - view: text, markup, annotated - select for diffs
Tue Dec 12 20:27:42 2000 UTC (24 years, 1 month ago) by onoe
Branches: MAIN
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +8 -12 lines
Add powersave/powersavesleep into usage.
Fold usage output (still 14 lines...)

Revision 1.92: download - view: text, markup, annotated - select for diffs
Tue Dec 12 04:08:40 2000 UTC (24 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +56 -3 lines
Add powersave, -powersave, and powersavesleep to manipulate 802.11
power management parameters.

Revision 1.91: download - view: text, markup, annotated - select for diffs
Tue Nov 7 14:47:59 2000 UTC (24 years, 2 months ago) by itojun
Branches: MAIN
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +4 -2 lines
show IPv6 interface address status "deprecated" (preferred lifetime = 0).
RFC2462.  sync with kame.

Revision 1.90: download - view: text, markup, annotated - select for diffs
Mon Oct 2 22:30:40 2000 UTC (24 years, 3 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +17 -3 lines
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 - view: text, markup, annotated - select for diffs
Wed Sep 27 23:00:24 2000 UTC (24 years, 4 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +112 -2 lines
Add vlan(4) support.  From Andy Doran <ad@netbsd.org>.

Revision 1.79.4.3: download - view: text, markup, annotated - select for diffs
Fri Jul 21 18:55:56 2000 UTC (24 years, 6 months ago) by onoe
Branches: netbsd-1-5
CVS tags: netbsd-1-5-RELEASE, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2
Diff to: previous 1.79.4.2: preferred, colored; branchpoint 1.79: preferred, colored
Changes since revision 1.79.4.2: +184 -39 lines
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 - view: text, markup, annotated - select for diffs
Fri Jul 21 18:45:44 2000 UTC (24 years, 6 months ago) by onoe
Branches: netbsd-1-5
Diff to: previous 1.79.4.1: preferred, colored; branchpoint 1.79: preferred, colored
Changes since revision 1.79.4.1: +58 -10 lines
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 - view: text, markup, annotated - select for diffs
Fri Jul 21 04:53:03 2000 UTC (24 years, 6 months ago) by onoe
Branches: MAIN
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +184 -39 lines
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 - view: text, markup, annotated - select for diffs
Thu Jul 20 18:42:03 2000 UTC (24 years, 6 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +64 -6 lines
Add a -C flag, to list all available network interface cloners.

Revision 1.86: download - view: text, markup, annotated - select for diffs
Wed Jul 19 06:01:24 2000 UTC (24 years, 6 months ago) by enami
Branches: MAIN
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +4 -4 lines
- Fix off-by-one error in previous.
- Fix a typo of ioctl name in warning message.

Revision 1.85: download - view: text, markup, annotated - select for diffs
Wed Jul 19 04:43:34 2000 UTC (24 years, 6 months ago) by onoe
Branches: MAIN
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +15 -5 lines
check the length of nwid argument before copy to avoid SEGV.
pointed out by enami-san

Revision 1.84: download - view: text, markup, annotated - select for diffs
Thu Jul 6 08:20:51 2000 UTC (24 years, 6 months ago) by onoe
Branches: MAIN
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +5 -4 lines
cast u_char for ctype (nwid stuff) to fix possible overrun problems.

Revision 1.83: download - view: text, markup, annotated - select for diffs
Thu Jul 6 00:50:49 2000 UTC (24 years, 6 months ago) by onoe
Branches: MAIN
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +7 -4 lines
warn instead of print 802.11 nwid with bad length field.

Revision 1.82: download - view: text, markup, annotated - select for diffs
Wed Jul 5 02:35:55 2000 UTC (24 years, 6 months ago) by onoe
Branches: MAIN
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +44 -10 lines
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 - view: text, markup, annotated - select for diffs
Sun Jul 2 00:28:01 2000 UTC (24 years, 7 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +51 -4 lines
Add `create' and `destroy' commands.

Revision 1.79.4.1: download - view: text, markup, annotated - select for diffs
Fri Jun 30 18:12:46 2000 UTC (24 years, 7 months ago) by thorpej
Branches: netbsd-1-5
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +251 -92 lines
- 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 - view: text, markup, annotated - select for diffs
Fri Jun 30 17:45:11 2000 UTC (24 years, 7 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +251 -92 lines
- 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 - view: text, markup, annotated - select for diffs
Thu Apr 20 02:08:55 2000 UTC (24 years, 9 months ago) by enami
Branches: MAIN
CVS tags: netbsd-1-5-base, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +18 -10 lines
Allocate flagreq on stack.

Revision 1.78: download - view: text, markup, annotated - select for diffs
Thu Apr 13 07:39:57 2000 UTC (24 years, 9 months ago) by itojun
Branches: MAIN
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +110 -2 lines
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 - view: text, markup, annotated - select for diffs
Thu Apr 13 07:16:54 2000 UTC (24 years, 9 months ago) by itojun
Branches: MAIN
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +42 -113 lines
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 - view: text, markup, annotated - select for diffs
Mon Apr 3 03:54:42 2000 UTC (24 years, 10 months ago) by enami
Branches: MAIN
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +32 -16 lines
Explicitly pick up ''the first address'' to delete.

Revision 1.75: download - view: text, markup, annotated - select for diffs
Mon Mar 20 21:10:03 2000 UTC (24 years, 10 months ago) by onoe
Branches: MAIN
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Sat Mar 18 21:10:50 2000 UTC (24 years, 10 months ago) by castor
Branches: MAIN
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +9 -9 lines
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 - view: text, markup, annotated - select for diffs
Mon Mar 6 09:00:13 2000 UTC (24 years, 10 months ago) by enami
Branches: MAIN
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +2 -3 lines
Remove unnecessary continue statement.

Revision 1.72: download - view: text, markup, annotated - select for diffs
Mon Mar 6 08:45:35 2000 UTC (24 years, 10 months ago) by enami
Branches: MAIN
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +2 -5 lines
Remove now unnecessary assignment.  It looks like 4.4lite merge left over.

Revision 1.71: download - view: text, markup, annotated - select for diffs
Mon Mar 6 08:08:15 2000 UTC (24 years, 10 months ago) by enami
Branches: MAIN
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +3 -3 lines
Don't copy from destination to destination.

Revision 1.70: download - view: text, markup, annotated - select for diffs
Mon Mar 6 01:06:17 2000 UTC (24 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +40 -24 lines
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 - view: text, markup, annotated - select for diffs
Wed Mar 1 03:21:56 2000 UTC (24 years, 11 months ago) by enami
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +3 -3 lines
Salvage the better comment appeared in rev 1.51 but gone in 1.53.

Revision 1.68: download - view: text, markup, annotated - select for diffs
Fri Feb 18 08:14:26 2000 UTC (24 years, 11 months ago) by itojun
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +12 -10 lines
more fix to SIOCGIFCONF alignment.

Revision 1.67: download - view: text, markup, annotated - select for diffs
Tue Jan 25 06:11:25 2000 UTC (25 years ago) by mycroft
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +3 -3 lines
Fix a buglet that caused media-specific options to *always* be printed, even if
they were not set.

Revision 1.66: download - view: text, markup, annotated - select for diffs
Tue Jan 25 02:16:57 2000 UTC (25 years ago) by thorpej
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +3 -3 lines
Fix a logic buglet in status printing code.

Revision 1.65: download - view: text, markup, annotated - select for diffs
Tue Jan 25 01:46:57 2000 UTC (25 years ago) by thorpej
Branches: MAIN
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +6 -5 lines
- 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 - view: text, markup, annotated - select for diffs
Tue Jan 25 01:03:21 2000 UTC (25 years ago) by thorpej
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +3 -3 lines
Update copyright.

Revision 1.63: download - view: text, markup, annotated - select for diffs
Tue Jan 25 00:59:39 2000 UTC (25 years ago) by thorpej
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +32 -19 lines
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 - view: text, markup, annotated - select for diffs
Mon Jan 24 23:24:16 2000 UTC (25 years ago) by chopps
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +37 -2 lines
allow setting (and reporting) nwid for ieee 802.11 devices.

Revision 1.61: download - view: text, markup, annotated - select for diffs
Mon Jan 24 22:31:27 2000 UTC (25 years ago) by thorpej
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Wed Jan 12 10:29:35 2000 UTC (25 years ago) by joda
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +32 -2 lines
implement netmask slash notation for IP and IPv6 addresses

Revision 1.58.4.1: download - view: text, markup, annotated - select for diffs
Mon Dec 27 18:30:25 1999 UTC (25 years, 1 month ago) by wrstuden
Branches: wrstuden-devbsize
Diff to: previous 1.58: preferred, colored; next MAIN 1.59: preferred, colored
Changes since revision 1.58: +66 -10 lines
Pull up to last week's -current.

Revision 1.59: download - view: text, markup, annotated - select for diffs
Mon Dec 13 15:24:45 1999 UTC (25 years, 1 month ago) by itojun
Branches: MAIN
CVS tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +66 -10 lines
bring in KAME scopeid hack.  always show scopeid if it is scoped.
sync with latest KAME.

Revision 1.58: download - view: text, markup, annotated - select for diffs
Thu Jul 29 15:40:48 1999 UTC (25 years, 6 months ago) by itojun
Branches: MAIN
CVS tags: comdex-fall-1999-base, comdex-fall-1999
Branch point for: wrstuden-devbsize
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +29 -8 lines
fix alignment problem of SIOCGIFCONF, on 64bit arch.

Revision 1.57: download - view: text, markup, annotated - select for diffs
Mon Jul 26 19:38:36 1999 UTC (25 years, 6 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +4 -3 lines
Make the previous actually compile.

Revision 1.56: download - view: text, markup, annotated - select for diffs
Mon Jul 26 12:00:47 1999 UTC (25 years, 6 months ago) by darrenr
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +3 -3 lines
cleanup error message

Revision 1.55: download - view: text, markup, annotated - select for diffs
Mon Jul 26 11:56:55 1999 UTC (25 years, 6 months ago) by darrenr
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +7 -3 lines
don't allow destination addresses to be set for non-Point-to-point interfaces

Revision 1.54: download - view: text, markup, annotated - select for diffs
Sat Jul 3 17:31:15 1999 UTC (25 years, 7 months ago) by sommerfeld
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +59 -6 lines
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 - view: text, markup, annotated - select for diffs
Thu Jul 1 13:19:20 1999 UTC (25 years, 7 months ago) by itojun
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +396 -17 lines
make ifconfig IPv6-ready.
TODO: update manpage for new options.

Revision 1.50.2.2: download - view: text, markup, annotated - select for diffs
Fri Jun 18 17:42:19 1999 UTC (25 years, 7 months ago) by perry
Branches: netbsd-1-4
CVS tags: netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001
Diff to: previous 1.50.2.1: preferred, colored; branchpoint 1.50: preferred, colored; next MAIN 1.51: preferred, colored
Changes since revision 1.50.2.1: +4 -2 lines
pullup 1.51->1.52 (thorpej)

Revision 1.50.2.1: download - view: text, markup, annotated - select for diffs
Fri Jun 18 16:44:15 1999 UTC (25 years, 7 months ago) by perry
Branches: netbsd-1-4
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +9 -4 lines
pullup 1.50->1.51 (thorpej): Don't force "inet" on status display

Revision 1.52: download - view: text, markup, annotated - select for diffs
Tue May 18 18:01:08 1999 UTC (25 years, 8 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +4 -2 lines
Fix a slight braino in last.

Revision 1.51: download - view: text, markup, annotated - select for diffs
Mon May 17 16:00:05 1999 UTC (25 years, 8 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +9 -4 lines
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 - view: text, markup, annotated - select for diffs
Thu Apr 1 08:12:23 1999 UTC (25 years, 10 months ago) by chopps
Branches: MAIN
CVS tags: netbsd-1-4-base, netbsd-1-4-RELEASE
Branch point for: netbsd-1-4
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +22 -16 lines
revert the previous changes that removed special cased ioctls for ISO
stuff.

Revision 1.49: download - view: text, markup, annotated - select for diffs
Sun Sep 6 17:51:32 1998 UTC (26 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +108 -8 lines
Add support for displaying interface alias information. Based on PR/6109 by
Phil Nelson.

Revision 1.48: download - view: text, markup, annotated - select for diffs
Sat Aug 8 22:40:57 1998 UTC (26 years, 5 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +4 -3 lines
Oops, add the "instance" command to the usage info.

Revision 1.47: download - view: text, markup, annotated - select for diffs
Sat Aug 8 22:33:17 1998 UTC (26 years, 5 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +51 -3 lines
Allow the user to explicitly set the media instance.

Revision 1.46: download - view: text, markup, annotated - select for diffs
Sat Aug 8 18:14:20 1998 UTC (26 years, 5 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +19 -19 lines
Hm, actions might not always be deferred; rename appropriately.

Revision 1.45: download - view: text, markup, annotated - select for diffs
Sat Aug 8 01:30:18 1998 UTC (26 years, 5 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +139 -103 lines
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 - view: text, markup, annotated - select for diffs
Thu Aug 6 19:22:00 1998 UTC (26 years, 5 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +25 -16 lines
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 - view: text, markup, annotated - select for diffs
Thu Aug 6 03:47:28 1998 UTC (26 years, 5 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +4 -2 lines
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 - view: text, markup, annotated - select for diffs
Thu Aug 6 02:24:40 1998 UTC (26 years, 5 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +91 -205 lines
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 - view: text, markup, annotated - select for diffs
Wed Aug 5 23:35:17 1998 UTC (26 years, 5 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +24 -19 lines
Copyright assigned to The NetBSD Foundation, Inc.

Revision 1.40: download - view: text, markup, annotated - select for diffs
Wed Oct 1 02:19:43 1997 UTC (27 years, 4 months ago) by enami
Branches: 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
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +2 -3 lines
Don't declare optind.

Revision 1.39: download - view: text, markup, annotated - select for diffs
Mon Sep 15 01:53:36 1997 UTC (27 years, 4 months ago) by lukem
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +14 -14 lines
* cleanup for WARNS=1
* deprecate register
* use .Nm correctly

Revision 1.38: download - view: text, markup, annotated - select for diffs
Mon Sep 8 05:26:08 1997 UTC (27 years, 4 months ago) by mrg
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +7 -2 lines
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 - view: text, markup, annotated - select for diffs
Mon Jul 14 12:54:27 1997 UTC (27 years, 6 months ago) by is
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +4 -4 lines
ifr_metric vs. ifr_mtu: don't confuse people. Its a union anyway.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Fri May 30 05:44:11 1997 UTC (27 years, 8 months ago) by lukem
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +6 -4 lines
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 - view: text, markup, annotated - select for diffs
Mon May 5 06:32:11 1997 UTC (27 years, 8 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Mon Apr 21 01:17:58 1997 UTC (27 years, 9 months ago) by lukem
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +27 -13 lines
Implemented two modifier flags for -a and -l: -d (only show "down" interfaces)
and -u (only show "up" interfaces)

Revision 1.33: download - view: text, markup, annotated - select for diffs
Thu Apr 10 19:10:17 1997 UTC (27 years, 9 months ago) by is
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +24 -4 lines
Add mtu n parameter. Part of code by Matthias Pfaller (PR 1648).

Revision 1.32: download - view: text, markup, annotated - select for diffs
Thu Apr 3 02:07:59 1997 UTC (27 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +226 -77 lines
- netatalk additions
- KNF
- prototype fixes
- ifconfig -a now prints all the address family parameters for all configured
  interfaces.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Thu Mar 27 22:50:12 1997 UTC (27 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +36 -10 lines
Add a "-l" flag, which lists available network interfaces, with no
additional information.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Wed Mar 26 01:46:49 1997 UTC (27 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +23 -6 lines
Print the station address of interfaces that have one.  From
Matt Thomas <matt@3am-software.com>

Revision 1.29: download - view: text, markup, annotated - select for diffs
Tue Mar 25 01:37:11 1997 UTC (27 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +3 -3 lines
Display the correct interface name in the event SIOCGIFMEDIA "succeeds"
but doesn't return any media types.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Mon Mar 24 00:45:30 1997 UTC (27 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +4 -3 lines
Fix a slight bogon in printing active/current media, from Matt Thomas.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Tue Mar 18 05:04:50 1997 UTC (27 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +5 -5 lines
Fix lookup_media_word() to properly distinguish between the "autoselect"
media type and error.  (oops!)

Revision 1.26: download - view: text, markup, annotated - select for diffs
Tue Mar 18 01:50:01 1997 UTC (27 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +22 -14 lines
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 - view: text, markup, annotated - select for diffs
Tue Mar 18 00:37:34 1997 UTC (27 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +10 -4 lines
Ignore E2BIG in domediaopt() like we do in setmedia().  Oversight pointed
out by Andrew Gallatin <gallatin@CS.Duke.EDU>.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Mon Mar 17 03:08:48 1997 UTC (27 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +535 -31 lines
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 - view: text, markup, annotated - select for diffs
Wed Dec 11 03:37:10 1996 UTC (28 years, 1 month ago) by mycroft
Branches: netbsd-1-2
CVS tags: netbsd-1-2-PATCH001
Diff to: previous 1.22: preferred, colored; next MAIN 1.23: preferred, colored
Changes since revision 1.22: +15 -17 lines
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 - view: text, markup, annotated - select for diffs
Sun Sep 8 14:37:39 1996 UTC (28 years, 4 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +15 -17 lines
Update to match kernel changes.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Thu Jan 4 20:11:20 1996 UTC (29 years ago) by pk
Branches: MAIN
CVS tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-BETA
Branch point for: netbsd-1-2
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +6 -3 lines
Agree with kernel on format of SIOCGIFCONF results.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Sun Oct 8 23:03:54 1995 UTC (29 years, 3 months ago) by gwr
Branches: MAIN
CVS tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +27 -9 lines
Add support for -DINET_ONLY to make this smaller in a ramdisk.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Fri May 19 20:17:16 1995 UTC (29 years, 8 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +10 -11 lines
Use inet_aton(), not inet_addr().  Suggested by John Hawkinson.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Sat Mar 18 14:56:24 1995 UTC (29 years, 10 months ago) by cgd
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +7 -2 lines
convert to new RCS Id conventions; reduce my headache

Revision 1.18: download - view: text, markup, annotated - select for diffs
Sat Jan 21 21:22:16 1995 UTC (30 years ago) by glass
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +19 -10 lines
 fix usage message to include -a.  fix command line handling for same

Revision 1.17: download - view: text, markup, annotated - select for diffs
Sun Dec 18 12:58:39 1994 UTC (30 years, 1 month ago) by cgd
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +2 -2 lines
spacing nit.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Mon Dec 5 20:16:12 1994 UTC (30 years, 1 month ago) by cgd
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +63 -28 lines
more cleanups from Jim Jegers, passed over by me.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Mon Oct 31 04:24:09 1994 UTC (30 years, 3 months ago) by cgd
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +3 -3 lines
ioctl types.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Fri Sep 23 14:27:24 1994 UTC (30 years, 4 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +17 -17 lines
Eliminate uses of some obsolete functions.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Fri Sep 23 01:38:52 1994 UTC (30 years, 4 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +154 -204 lines
Merge with 4.4-Lite version.

Revision 1.1.1.2 (vendor branch): download - view: text, markup, annotated - select for diffs
Fri Sep 23 01:35:26 1994 UTC (30 years, 4 months ago) by mycroft
Branches: WFJ-920714, CSRG
CVS tags: lite-2, lite-1
Diff to: previous 1.1.1.1: preferred, colored
Changes since revision 1.1.1.1: +46 -65 lines
Import original 4.4-Lite version.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Sat Jan 22 02:04:35 1994 UTC (31 years ago) by cgd
Branches: 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
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +20 -23 lines
(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 - view: text, markup, annotated - select for diffs
Fri Dec 10 11:29:42 1993 UTC (31 years, 1 month ago) by cgd
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +2 -4 lines
add MULTICAST recognition

Revision 1.10: download - view: text, markup, annotated - select for diffs
Fri Dec 10 11:24:07 1993 UTC (31 years, 1 month ago) by cgd
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +8 -8 lines
LLC -> LINK, documentation

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sun Aug 1 18:26:52 1993 UTC (31 years, 6 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +2 -2 lines
Add RCS identifiers.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Wed Jun 9 20:04:38 1993 UTC (31 years, 7 months ago) by deraadt
Branches: 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
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +1 -3 lines
removed aui/bnc hack from ifconfig. Use -llc0/llc0 instead.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Sun Jun 6 08:55:30 1993 UTC (31 years, 7 months ago) by deraadt
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +35 -25 lines
fix ifconfig once again. multiple protocols really cooked hte code i wrote
before for -a.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Fri May 21 12:48:49 1993 UTC (31 years, 8 months ago) by cgd
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +4 -5 lines
Remove ifdefs hiding ISO and XNS functionality
(from Havard Eidnes <Havard.Eidnes@runit.sintef.no>)

Revision 1.5: download - view: text, markup, annotated - select for diffs
Tue May 4 09:26:54 1993 UTC (31 years, 9 months ago) by deraadt
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +77 -7 lines
Added another sunos-ism: ifconfig -a

Revision 1.4: download - view: text, markup, annotated - select for diffs
Tue Mar 23 00:28:32 1993 UTC (31 years, 10 months ago) by cgd
Branches: MAIN
CVS tags: netbsd-alpha-1, netbsd-0-8
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +1 -1 lines
changed "Id" to "Header" for rcsids

Revision 1.3: download - view: text, markup, annotated - select for diffs
Mon Mar 22 08:04:00 1993 UTC (31 years, 10 months ago) by cgd
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +1 -11 lines
added rcs ids to all files

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun Mar 21 18:04:42 1993 UTC (31 years, 10 months ago) by cgd
Branches: MAIN
CVS tags: patchkit-0-2-2
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +20 -0 lines
after 0.2.2 "stable" patches applied

Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Sun Mar 21 09:45:37 1993 UTC (31 years, 10 months ago) by cgd
Branches: WFJ-920714, CSRG
CVS tags: WFJ-386bsd-01
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0 lines
initial import of 386bsd-0.1 sources

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Mar 21 09:45:37 1993 UTC (31 years, 10 months ago) by cgd
Branches: MAIN
Initial revision

Diff request

This form allows you to request diffs 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.

Log view options

CVSweb <webmaster@jp.NetBSD.org>