Up to [local] / src / sbin / ifconfig
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.472 / (download) - annotate - [select for diffs], Sat May 18 02:44:22 2024 UTC (2 weeks ago) by jsg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.471: +1 -3 lines
Diff to previous 1.471 (colored)
remove prototype with no matching function
Revision 1.471 / (download) - annotate - [select for diffs], Tue Apr 23 13:34:50 2024 UTC (5 weeks, 4 days ago) by jsg
Branch: MAIN
Changes since 1.470: +2 -2 lines
Diff to previous 1.470 (colored)
correct indentation; no functional change ok tb@
Revision 1.470 / (download) - annotate - [select for diffs], Thu Nov 23 03:38:34 2023 UTC (6 months, 1 week ago) by dlg
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE,
OPENBSD_7_5
Changes since 1.469: +2 -1 lines
Diff to previous 1.469 (colored)
add an endpoint command for "bridges" that use addresses as endpoints. this can be used to add static entries on interfaces like vxlan(4).
Revision 1.469 / (download) - annotate - [select for diffs], Thu Nov 23 03:22:14 2023 UTC (6 months, 1 week ago) by dlg
Branch: MAIN
Changes since 1.468: +82 -41 lines
Diff to previous 1.468 (colored)
add support for specifying ports on the src address in tunnel endpoints.
Revision 1.468 / (download) - annotate - [select for diffs], Sun Oct 29 14:23:04 2023 UTC (7 months ago) by millert
Branch: MAIN
Changes since 1.467: +2 -2 lines
Diff to previous 1.467 (colored)
Use clock_gettime(), not timespec_get() like other parts of ifconfig. This makes is possible to build the base system with a C99 compiler. OK deraadt@ mvs@
Revision 1.467 / (download) - annotate - [select for diffs], Fri Jun 9 12:22:01 2023 UTC (11 months, 3 weeks ago) by kn
Branch: MAIN
CVS Tags: OPENBSD_7_4_BASE,
OPENBSD_7_4
Changes since 1.466: +2 -1 lines
Diff to previous 1.466 (colored)
Readd "-wgpsk", accidentially dropped in r1.465 adding "wgdescr" Noticed by Bradley Latus Diff from Jane Johansson OK tb
Revision 1.466 / (download) - annotate - [select for diffs], Wed Jun 7 18:42:40 2023 UTC (11 months, 3 weeks ago) by bluhm
Branch: MAIN
Changes since 1.465: +3 -3 lines
Diff to previous 1.465 (colored)
Rename ifconfig tcprecvoffload to tcplro. It is shorter and more consistent. discussed with jan@ mvs@ chris@ claudio@ dlg@
Revision 1.465 / (download) - annotate - [select for diffs], Thu Jun 1 18:57:54 2023 UTC (12 months ago) by kn
Branch: MAIN
Changes since 1.464: +29 -2 lines
Diff to previous 1.464 (colored)
Add support for wireguard peer descriptions "wgdescr[iption] foo" to label one peer (amongst many) on a wg(4) interface, "-wgdescr[iption]" or "wgdescr ''" to remove the label, completely analogous to existing interface discriptions. Idea/initial diff from Mikolaj Kucharski (OK sthen) Tests/prodded by Hrvoje Popovski Tweaks/manual bits from me Feedback deraadt sthen mvs claudio OK claudio
Revision 1.464 / (download) - annotate - [select for diffs], Tue May 16 14:32:54 2023 UTC (12 months, 2 weeks ago) by jan
Branch: MAIN
Changes since 1.463: +5 -5 lines
Diff to previous 1.463 (colored)
Use separate IFCAPs for LRO and TSO. This diff introduces separate capabilities for TCP offloading. We split this into LRO (large receive offloading) and TSO (TCP segmentation offloading). LRO can be turned on/off via tcprecvoffload option of ifconfig and is not inherited to sub interfaces. TSO is inherited by sub interfaces to signal this hardware offloading capability to the network stack. With tweaks from bluhm, claudio and dlg ok bluhm, claudio
Revision 1.463 / (download) - annotate - [select for diffs], Fri May 12 18:24:13 2023 UTC (12 months, 3 weeks ago) by jan
Branch: MAIN
Changes since 1.462: +112 -110 lines
Diff to previous 1.462 (colored)
Add interface names in front of error messages. Suggested by Hrvoje Popovski. ok phessler@
Revision 1.462 / (download) - annotate - [select for diffs], Wed Mar 8 04:43:06 2023 UTC (14 months, 3 weeks ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE,
OPENBSD_7_3
Changes since 1.461: +1 -52 lines
Diff to previous 1.461 (colored)
Delete obsolete /* ARGSUSED */ lint comments. ok miod@ millert@
Revision 1.461 / (download) - annotate - [select for diffs], Wed Jan 18 21:57:10 2023 UTC (16 months, 1 week ago) by stsp
Branch: MAIN
Changes since 1.460: +1 -8 lines
Diff to previous 1.460 (colored)
remove redundant SIOCS80211JOIN ioctl call in ifconfig delifjoinlist() Found by Mathias Koehler, thanks!
Revision 1.460 / (download) - annotate - [select for diffs], Sun Dec 18 18:56:38 2022 UTC (17 months, 1 week ago) by kn
Branch: MAIN
Changes since 1.459: +5 -8 lines
Diff to previous 1.459 (colored)
Unify RSSI check Two spots in ifconfig print the signal strength, one for the "ieee80211: " line and one for each SSID in scan output. Only the former checks nr_rssi, which is not needed as nr_max_rssi alone indicates whether the driver reports signal strength in percentage or dBm. Zap the nr_rssi check to simplify; "worst case" we display 0% or 0dBm instead of nothing. Feedback OK stsp
Revision 1.459 / (download) - annotate - [select for diffs], Sat Nov 26 07:26:43 2022 UTC (18 months ago) by jmc
Branch: MAIN
Changes since 1.458: +3 -4 lines
Diff to previous 1.458 (colored)
- in SYNOPSIS, redo the formatting for "address" and "dest address" to avoid an ugly line split on narrower terminals - in usage(), match the output
Revision 1.458 / (download) - annotate - [select for diffs], Fri Nov 25 23:09:20 2022 UTC (18 months ago) by deraadt
Branch: MAIN
Changes since 1.457: +84 -14 lines
Diff to previous 1.457 (colored)
ifconfig -M <mac> finds the address on an interface and prints it. cloned (virtual) interfaces are skipped, and if the MAC is on more than 1 interface, no answer either. The mac must be in same format as the ifconfig lladdr output (complete lowercase with :) idea from florian, ok afresh1
Revision 1.457 / (download) - annotate - [select for diffs], Wed Oct 26 17:06:31 2022 UTC (19 months ago) by kn
Branch: MAIN
Changes since 1.456: +43 -41 lines
Diff to previous 1.456 (colored)
Limit wireguard peers listing to -A or wg-interface ifconfig(8) output can get too long when always printing `wgpeers' for all wg(4) interfaces, so omit it output is requested and/or output is limited to the interface group "wg" or a specific interface "wgX". No install media size change as wireguard code is under #ifndef SMALL. Diff from Mikolaj Kucharski <mikolaj AT kucharski DOT name> makes Hrvoje Popovski happy manual bits from jmc OK sthen
Revision 1.456 / (download) - annotate - [select for diffs], Fri Jul 8 07:04:54 2022 UTC (22 months, 3 weeks ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE,
OPENBSD_7_2
Changes since 1.455: +1 -9 lines
Diff to previous 1.455 (colored)
remove unused variables
Revision 1.455 / (download) - annotate - [select for diffs], Mon Jun 27 15:11:23 2022 UTC (23 months ago) by jan
Branch: MAIN
Changes since 1.454: +5 -3 lines
Diff to previous 1.454 (colored)
Introduce Large Receive Offloading of TCP segment offloading for ix(4). It is disabled by default. Also add a tso option to ifconfig(8) to enable and disable this feature. ok deraadt
Revision 1.454 / (download) - annotate - [select for diffs], Thu Apr 7 16:41:13 2022 UTC (2 years, 1 month ago) by naddy
Branch: MAIN
Changes since 1.453: +2 -2 lines
Diff to previous 1.453 (colored)
constify ifmedia descriptions; ok deraadt@ miod@
Revision 1.453 / (download) - annotate - [select for diffs], Mon Mar 7 08:13:13 2022 UTC (2 years, 2 months ago) by stsp
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE,
OPENBSD_7_1
Changes since 1.452: +9 -5 lines
Diff to previous 1.452 (colored)
rename net80211 ioctl struct ieee80211_channel to struct ieee80211_chaninfo ioctls should use dedicated names for their structs, but SIOCG80211ALLCHANS duplicated struct ieee80211_channel. We cannot make changes to the kernel's version of ieee80211_channel while an ioctl is squatting on the struct name. Helpful guidance from deraadt@ Tested in a ports bulk build by sthen@, and tested by Mikhail. ok sthen@
Revision 1.452 / (download) - annotate - [select for diffs], Tue Feb 22 09:55:54 2022 UTC (2 years, 3 months ago) by dlg
Branch: MAIN
Changes since 1.451: +1 -5 lines
Diff to previous 1.451 (colored)
don't hide the mtu on "bridge" interfaces. interfaces like vxlan and nvgre have bridges inside them and respond to bridge ioctls, but they are still interfaces that handle l3 traffic so the mtu means something on them. if we don't want bridge to show an mtu, that can be done by bridge(4) instead of having ifconfig make assumptions like this. noticed by jason tubnor ok deraadt@ claudio@
Revision 1.451 / (download) - annotate - [select for diffs], Tue Nov 23 19:13:45 2021 UTC (2 years, 6 months ago) by kn
Branch: MAIN
Changes since 1.450: +5 -3 lines
Diff to previous 1.450 (colored)
Use system uptime not UTC time to calculate PPPoE session duration Systems without RTC are likely to boot with wrong time, but pppoe(4) used microtime(9) anyway to remember when a new session began. (In)adequately, ifconfig(8) used gettimeofday(2) and calculated the difference between two absoloute dates to infer the PPPoE session duration. This goes off the rails if the wall clock jumps in between, e.g. due to NTP kicking in. Use getmicrouptime(9) and clock_gettime(2)/CLOCK_BOOTTIME instead to rely on the monotonically increasing system uptime instead to fix this. Reported and tested by Peter J. Philipp <pjp AT delphinusdns DOT org> on some octeon box without RTC. I've seen this on a Edgerouter 4 as well (2m uptime, 19d session). OK claudio
Revision 1.450 / (download) - annotate - [select for diffs], Wed Nov 17 18:00:24 2021 UTC (2 years, 6 months ago) by bket
Branch: MAIN
Changes since 1.449: +26 -1 lines
Diff to previous 1.449 (colored)
Display DNS information from sppp(4) in ifconfig(8) Behaviour is similar to that of umb(4). OK kn@
Revision 1.449 / (download) - annotate - [select for diffs], Thu Nov 11 09:39:16 2021 UTC (2 years, 6 months ago) by claudio
Branch: MAIN
Changes since 1.448: +1 -3 lines
Diff to previous 1.448 (colored)
Remove switch(4) specific bits from ifconfig. OK deraadt@ patrick@
Revision 1.448 / (download) - annotate - [select for diffs], Wed Nov 3 02:02:36 2021 UTC (2 years, 6 months ago) by kn
Branch: MAIN
Changes since 1.447: +1 -6 lines
Diff to previous 1.447 (colored)
Zap swapips remnants There since 1998, probably dead long before. "I am sure swabips died before you were born." deraadt
Revision 1.447 / (download) - annotate - [select for diffs], Tue Nov 2 23:39:27 2021 UTC (2 years, 6 months ago) by kn
Branch: MAIN
Changes since 1.446: +2 -2 lines
Diff to previous 1.446 (colored)
fix previous
Revision 1.446 / (download) - annotate - [select for diffs], Tue Nov 2 23:36:43 2021 UTC (2 years, 6 months ago) by kn
Branch: MAIN
Changes since 1.445: +2 -2 lines
Diff to previous 1.445 (colored)
Return non-zero on failed "nwkey" command Fail early and exit non-zero immediately instead of indicating success and possibly carrying the next ifconfig command. Found at install when wifi interfaces are reset with "-nwid -nwkey -wpa": Which network interface do you wish to configure? (or 'done') [bse0] bwfm0 ifconfig: SIOCS80211NWKEY: Operation not supported by device Access point? (ESSID, 'any', list# or '?') [any] 2 Security protocol? (O)pen, (W)EP, WPA-(P)SK [O] bwfm(4) currently does not support WEP. OK stsp
Revision 1.445 / (download) - annotate - [select for diffs], Wed Oct 6 06:14:08 2021 UTC (2 years, 7 months ago) by florian
Branch: MAIN
Changes since 1.444: +1 -12 lines
Diff to previous 1.444 (colored)
Remove autoconfprivacy deprecation warning. OK deraadt
Revision 1.444 / (download) - annotate - [select for diffs], Mon Jul 12 15:09:18 2021 UTC (2 years, 10 months ago) by beck
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE,
OPENBSD_7_0
Changes since 1.443: +5 -5 lines
Diff to previous 1.443 (colored)
Change the error reporting pattern throughout the tree when unveil fails to report the path that the failure occured on. Suggested by deraadt@ after some tech discussion. Work done and verified by Ashton Fagg <ashton@fagg.id.au> ok deraadt@ semarie@ claudio@
Revision 1.443 / (download) - annotate - [select for diffs], Sun Jul 4 19:22:32 2021 UTC (2 years, 10 months ago) by sthen
Branch: MAIN
Changes since 1.442: +10 -5 lines
Diff to previous 1.442 (colored)
store provider ID in umb(4), and display it in ifconfig. OK stsp deraadt Previously only the provider's display name was used. The text used depends on how the SIM is configured and not just on the network in use (for example, an MVNO SIM on another network will often display the MVNO's name rather than that of the underlying network). I have a SIM that roams to any network in my country - whichever network it roams onto, the display name is the same, so you can't tell which network you're really using. By printing the provider ID (in GSM-land this is MCC+MNC) it's easy to lookup and check this. As the provider was printed on the ifconfig line also showing subscriber-id and ICCID it was already a bit long, and adding the provider-id there is a bit too much, so move it to the output line showing APN, now looking like : subscriber-id 2400xxxxxxxxxxx ICC-id 8946203xxxxxxxxxxxxx : device EM7455 IMEI 01458xxxxxxxxxx firmware SWI9X30C_02.24.0 : APN key provider Tele2 IoT provider-id 23420
Revision 1.442 / (download) - annotate - [select for diffs], Sat Mar 20 17:11:49 2021 UTC (3 years, 2 months ago) by florian
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE,
OPENBSD_6_9
Changes since 1.441: +6 -3 lines
Diff to previous 1.441 (colored)
RFC 8981 allows the configuration of only temporary IPv6 addresses. Keep "temporary" the default when setting inet6 autoconf but make it possible to disable the "autoconf" flag but keep "temporary" enabled. The normal usecase to only have temporary autoconf addresses would be "inet6 temporary" in hostname.if OK kn
Revision 1.441 / (download) - annotate - [select for diffs], Tue Mar 16 19:24:36 2021 UTC (3 years, 2 months ago) by kn
Branch: MAIN
Changes since 1.440: +4 -4 lines
Diff to previous 1.440 (colored)
Move setifrtlabel() and *keepalive() prototypes out of SMALL Those commands are not supported under SMALL; unless I overlooked others, this should be the last bit to declare all prototypes correctly wrt. SMALL (the overall unsorted order of both prototypes and commands makes this hard to spot). No object change, with and without SMALL.
Revision 1.440 / (download) - annotate - [select for diffs], Sat Mar 13 21:23:29 2021 UTC (3 years, 2 months ago) by kn
Branch: MAIN
Changes since 1.439: +0 -2 lines
Diff to previous 1.439 (colored)
Remove "deletetunnel" (deprecated with 6.4) OK deraadt
Revision 1.439 / (download) - annotate - [select for diffs], Sat Mar 13 21:21:36 2021 UTC (3 years, 2 months ago) by kn
Branch: MAIN
Changes since 1.438: +6 -4 lines
Diff to previous 1.438 (colored)
Move all rdomain bits under SMALL "[-]rdomain" commands are ignored under SMALL but their prototypes, the global and therefore dead print logic are still in. OK deraadt
Revision 1.438 / (download) - annotate - [select for diffs], Sat Mar 13 21:14:15 2021 UTC (3 years, 2 months ago) by kn
Branch: MAIN
Changes since 1.437: +16 -16 lines
Diff to previous 1.437 (colored)
Move MPLS related function prototypes under SMALL OK deraadt
Revision 1.437 / (download) - annotate - [select for diffs], Fri Mar 12 17:25:02 2021 UTC (3 years, 2 months ago) by florian
Branch: MAIN
Changes since 1.436: +27 -5 lines
Diff to previous 1.436 (colored)
Add deprecation warning for autoconfprivacy. While here check address family for 'temporary' option, only inet6 is allowed. OK kn
Revision 1.436 / (download) - annotate - [select for diffs], Thu Mar 11 19:53:39 2021 UTC (3 years, 2 months ago) by florian
Branch: MAIN
Changes since 1.435: +9 -6 lines
Diff to previous 1.435 (colored)
When RFC 8981 obsoleted RFC 4941 the terminology changed from "privacy extensions" to "temporary address extensions" Change ifconfig(8) to output temporary after temporary addresses and add "temporary" option which is an alias for autoconfprivacy for now. Also make AUTOCONF6TEMP a positiv flag that is set by default. Previously the negative flag "INET6_NOPRIVACY" was set when privacy addresses were disabled. This makes the flags output less ugly and will allow us to disable autoconf addresses while having temporary addresses enabled in the future. More work is needed in slaacd. input benno, jmc, deraadt previous verison OK benno OK jmc, kn
Revision 1.435 / (download) - annotate - [select for diffs], Thu Mar 4 07:46:26 2021 UTC (3 years, 2 months ago) by jsg
Branch: MAIN
Changes since 1.434: +2 -2 lines
Diff to previous 1.434 (colored)
remove extra argument to printf
Revision 1.434 / (download) - annotate - [select for diffs], Sat Feb 20 01:17:45 2021 UTC (3 years, 3 months ago) by dlg
Branch: MAIN
Changes since 1.433: +4 -2 lines
Diff to previous 1.433 (colored)
add support for handling the interface monitor flag ok benno@
Revision 1.433 / (download) - annotate - [select for diffs], Wed Feb 10 14:45:27 2021 UTC (3 years, 3 months ago) by bluhm
Branch: MAIN
Changes since 1.432: +9 -9 lines
Diff to previous 1.432 (colored)
Use the same check in kernel and ifconfig for group names. ifconfig delete group does not need name sanitation. The kernel will just report that it does not exist. OK deraadt@ gnezdo@ anton@ mvs@ claudio@
Revision 1.432 / (download) - annotate - [select for diffs], Sat Jan 16 17:44:29 2021 UTC (3 years, 4 months ago) by claudio
Branch: MAIN
Changes since 1.431: +3 -2 lines
Diff to previous 1.431 (colored)
Only recover the scope_id if it was not set. This way this code works both with and without embedded scope. OK bluhm@ florian@
Revision 1.431 / (download) - annotate - [select for diffs], Wed Dec 30 18:57:28 2020 UTC (3 years, 5 months ago) by benno
Branch: MAIN
Changes since 1.430: +9 -6 lines
Diff to previous 1.430 (colored)
getifaddrs() can return entries where ifa_addr is NULL. Check for this before accessing anything in ifa_addr. ok claudio@
Revision 1.430 / (download) - annotate - [select for diffs], Fri Nov 6 21:24:47 2020 UTC (3 years, 6 months ago) by kn
Branch: MAIN
Changes since 1.429: +12 -9 lines
Diff to previous 1.429 (colored)
Keep track of allowed ips pointer correctly Someone reported wg(4) not working on macppc; fix ifconfig(8)'s "wgaip" to interate over data structures in the same way as the kernel does. Analysis and fiff from Jason A. Donenfeld Tested on macppc, sparc64 and amd64 by me
Revision 1.429 / (download) - annotate - [select for diffs], Wed Oct 7 14:38:54 2020 UTC (3 years, 7 months ago) by denis
Branch: MAIN
Changes since 1.428: +3 -3 lines
Diff to previous 1.428 (colored)
Fix display of P2P link to be consistent over all AF. OK kn@, input from claudio@
Revision 1.428 / (download) - annotate - [select for diffs], Wed Oct 7 11:36:05 2020 UTC (3 years, 7 months ago) by denis
Branch: MAIN
Changes since 1.427: +2 -2 lines
Diff to previous 1.427 (colored)
Reverse previous, needs discussion.
Revision 1.427 / (download) - annotate - [select for diffs], Wed Oct 7 11:34:11 2020 UTC (3 years, 7 months ago) by denis
Branch: MAIN
Changes since 1.426: +2 -2 lines
Diff to previous 1.426 (colored)
Fix display of P2P link to be consistent over all AF.
Revision 1.426 / (download) - annotate - [select for diffs], Tue Sep 15 15:23:11 2020 UTC (3 years, 8 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE,
OPENBSD_6_8
Changes since 1.425: +2 -2 lines
Diff to previous 1.425 (colored)
umb(4) shows the speed of the LTE connection but misses the b in Mbps. OK kettenis@
Revision 1.425 / (download) - annotate - [select for diffs], Wed Aug 5 06:12:43 2020 UTC (3 years, 9 months ago) by kn
Branch: MAIN
Changes since 1.424: +1 -2 lines
Diff to previous 1.424 (colored)
Merge switch_status() into bridge_status() This is to reduce duplicate code and prepare for bridge_status() to cover all bridge like interfaces: bridge(4), switch(4) and tpmr(4). OK dlg
Revision 1.424 / (download) - annotate - [select for diffs], Fri Jul 3 17:42:50 2020 UTC (3 years, 10 months ago) by florian
Branch: MAIN
Changes since 1.423: +2 -2 lines
Diff to previous 1.423 (colored)
Rename IN6_IFF_PRIVACY to IN6_IFF_TEMPORARY. This is the name the other BSDs use for this, there is no reason to be different, the IPv6 RFCs call these addresses temporary, and some software in ports wants to use this as well. Most recently pointed out for firefox by landry. OK claudio, sthen
Revision 1.423 / (download) - annotate - [select for diffs], Mon Jun 22 02:08:43 2020 UTC (3 years, 11 months ago) by dlg
Branch: MAIN
Changes since 1.422: +8 -9 lines
Diff to previous 1.422 (colored)
use (undocumented) base64 code in libc instead of libcrypto. naddy gave me a pointer in the right direction ok millert@ deraadt@ looks good to matt dunwoodie
Revision 1.422 / (download) - annotate - [select for diffs], Sun Jun 21 12:20:06 2020 UTC (3 years, 11 months ago) by dlg
Branch: MAIN
Changes since 1.421: +323 -1 lines
Diff to previous 1.421 (colored)
teach ifconfig about wireguard. note that this links ifconfig with libcrypto to get at base64 encoding and decoding routines. im looking at an alternative way to do that, so hopefully this is temporary. secondly, note that all the wireguard stuff is under ifndef SMALL, so the special build of ifconfig for install media does include wireguard support, and also does not need libcrypto. from Matt Dunwoodie and Jason A. Donenfeld ok deraadt@
Revision 1.421 / (download) - annotate - [select for diffs], Thu Feb 27 08:28:35 2020 UTC (4 years, 3 months ago) by stsp
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE,
OPENBSD_6_7
Changes since 1.420: +2 -2 lines
Diff to previous 1.420 (colored)
Do not set A_JOIN unconditionally. Otherwise join "" takes effect even though that is not what the user intended, e.g. if an invalid hex SSID was given on the command line. ok sthen@
Revision 1.420 / (download) - annotate - [select for diffs], Mon Feb 24 10:39:00 2020 UTC (4 years, 3 months ago) by stsp
Branch: MAIN
Changes since 1.419: +2 -2 lines
Diff to previous 1.419 (colored)
fix column alignment of 'ifconfig joinlist'; padding had an extra " "
Revision 1.419 / (download) - annotate - [select for diffs], Mon Feb 24 10:06:05 2020 UTC (4 years, 3 months ago) by stsp
Branch: MAIN
Changes since 1.418: +1 -3 lines
Diff to previous 1.418 (colored)
Don't needlessly cap SSID width in 'ifconfig joinlist' (matters with hex SSIDs). ok kevlo@
Revision 1.418 / (download) - annotate - [select for diffs], Tue Feb 18 08:09:37 2020 UTC (4 years, 3 months ago) by gerhard
Branch: MAIN
Changes since 1.417: +11 -2 lines
Diff to previous 1.417 (colored)
Add IPv6 support to umb(4). ok job@ bluhm@ claudio@ job@ tested with 'telnet -6 towel.blinkenlights.nl' on Fibocom L831-EAU on IIJ MIO's network (Japan), with 'inet6 autoconf' in /etc/hostname.umb0.
Revision 1.417 / (download) - annotate - [select for diffs], Fri Dec 27 14:34:46 2019 UTC (4 years, 5 months ago) by stsp
Branch: MAIN
Changes since 1.416: +17 -15 lines
Diff to previous 1.416 (colored)
Fix ifconfig WPA key installation with max allowed length SSIDs. ok claudio phessler deraadt sthen
Revision 1.416 / (download) - annotate - [select for diffs], Sat Nov 30 05:42:31 2019 UTC (4 years, 6 months ago) by bluhm
Branch: MAIN
Changes since 1.415: +2 -1 lines
Diff to previous 1.415 (colored)
ifconfig(8) did silently ignore the netmask parameter for inet6 and interpreted only prefixlen. Also accept netmask for IPv6. This is consistent to our man page and the route(8) command. OK benno@
Revision 1.415 / (download) - annotate - [select for diffs], Wed Nov 27 17:49:09 2019 UTC (4 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.414: +5 -4 lines
Diff to previous 1.414 (colored)
use _PATH_ names for unveil if possible
Revision 1.414 / (download) - annotate - [select for diffs], Thu Oct 24 18:54:10 2019 UTC (4 years, 7 months ago) by bluhm
Branch: MAIN
Changes since 1.413: +144 -144 lines
Diff to previous 1.413 (colored)
Fix ifconfig(8) compiler warnings regarding variable "name" reuse. Call the global variable with the name of the interface "ifname". Do not pass it around, just use it globally. Do not use "ifname" for anything else. OK deraadt@
Revision 1.413 / (download) - annotate - [select for diffs], Thu Oct 17 18:37:38 2019 UTC (4 years, 7 months ago) by bluhm
Branch: MAIN
Changes since 1.412: +235 -228 lines
Diff to previous 1.412 (colored)
Fix some compiler warings in ifconfig(8). Move all prototypes and variables used in multiple .c files into common ifconfig.h. Basically this renames brconfig.h to ifconfig.h and also uses it for sff.c. Fix missing prototypes. Global variable name s is bad as it shadows local variables. Call it sock and use it everywhere. OK deraadt@
Revision 1.412 / (download) - annotate - [select for diffs], Mon Sep 2 12:54:21 2019 UTC (4 years, 9 months ago) by stsp
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE,
OPENBSD_6_6
Changes since 1.411: +33 -7 lines
Diff to previous 1.411 (colored)
Make net80211 expose reasons for association failures to userland and have ifconfig display them in 'scan' output and on the ieee80211 status line if the failure is applicable to an already selected AP (e.g. wrong WPA key). This will hopefully reduce the amount of help requests for what often turn out to be trivial misconfiguration issues that were previously hard to diagnose without debug mode. ifconfig must be recompiled with the new ieee80211_ioctl.h to stay in sync with the kernel. A full 'make build' will do the right thing! Very helpful input by mpi@ and deraadt@
Revision 1.411 / (download) - annotate - [select for diffs], Fri Aug 30 03:52:20 2019 UTC (4 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.410: +3 -3 lines
Diff to previous 1.410 (colored)
whitespace, found while pondering improvements to sffdump
Revision 1.410 / (download) - annotate - [select for diffs], Mon Aug 26 15:23:49 2019 UTC (4 years, 9 months ago) by claudio
Branch: MAIN
Changes since 1.409: +3 -4 lines
Diff to previous 1.409 (colored)
Adjust umb DNS printing code since the type of those addresses changed. OK gerhard@
Revision 1.409 / (download) - annotate - [select for diffs], Thu Aug 8 16:48:48 2019 UTC (4 years, 9 months ago) by mestre
Branch: MAIN
Changes since 1.408: +2 -1 lines
Diff to previous 1.408 (colored)
added /* no filesystem visibility */ above unveil("/", "") since "" is too easy to misread. as per suggestion by and OK deraadt@
Revision 1.408 / (download) - annotate - [select for diffs], Thu Jul 25 15:23:38 2019 UTC (4 years, 10 months ago) by krw
Branch: MAIN
Changes since 1.407: +4 -4 lines
Diff to previous 1.407 (colored)
AF_INET comes before AF_INET6. Shorten line to <80 chars. pointed out by claudio@
Revision 1.407 / (download) - annotate - [select for diffs], Thu Jul 25 13:56:23 2019 UTC (4 years, 10 months ago) by krw
Branch: MAIN
Changes since 1.406: +4 -1 lines
Diff to previous 1.406 (colored)
Add IFXF_AUTOCONF4 to if_xflags to match IFXF_AUTOCONF6. Let ifconfig set/unset it. ok deraadt@ kmos@
Revision 1.406 / (download) - annotate - [select for diffs], Thu Jul 25 00:07:34 2019 UTC (4 years, 10 months ago) by dlg
Branch: MAIN
Changes since 1.405: +12 -11 lines
Diff to previous 1.405 (colored)
make a half-hearted attempt to shrink trunkport info a bit it's hard to balance being understandable without a legend or a big manpage, and not using a lot of space. ok deraadt@
Revision 1.405 / (download) - annotate - [select for diffs], Wed Jul 24 01:48:53 2019 UTC (4 years, 10 months ago) by dlg
Branch: MAIN
Changes since 1.404: +19 -1 lines
Diff to previous 1.404 (colored)
print out lacp actor and parter info this is useful for diagnosing mismatches between configurations on sets of ports (and debugging aggr(4)).
Revision 1.404 / (download) - annotate - [select for diffs], Wed Jul 3 03:24:01 2019 UTC (4 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.403: +2 -2 lines
Diff to previous 1.403 (colored)
snprintf/vsnprintf return < 0 on error, rather than -1.
Revision 1.403 / (download) - annotate - [select for diffs], Fri Jun 28 13:32:44 2019 UTC (4 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.402: +95 -95 lines
Diff to previous 1.402 (colored)
When system calls indicate an error they return -1, not some arbitrary value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
Revision 1.402 / (download) - annotate - [select for diffs], Fri May 10 01:29:31 2019 UTC (5 years ago) by guenther
Branch: MAIN
Changes since 1.401: +1 -2 lines
Diff to previous 1.401 (colored)
Delete superfluous #includes of <ifaddrs.h>, <net/if_dl.h>, and <net/if_enc.h> ok krw@, jsg@
Revision 1.401 / (download) - annotate - [select for diffs], Fri Apr 19 04:24:25 2019 UTC (5 years, 1 month ago) by dlg
Branch: MAIN
Changes since 1.400: +69 -4 lines
Diff to previous 1.400 (colored)
add support for getting and setting rxprio this complements txprio and should finish support for RFC 2983 ok claudio@
Revision 1.400 / (download) - annotate - [select for diffs], Mon Apr 15 12:04:37 2019 UTC (5 years, 1 month ago) by kn
Branch: MAIN
Changes since 1.399: +5 -90 lines
Diff to previous 1.399 (colored)
Remove old vlan and [-]vlandev code These were deprecated with 6.3, but instead of removing them all together, keep [-]vlan and [-]vlandev as aliases for [-]vnetid and [-]parent. Alias idea from sthen OK dlg sthen benno
Revision 1.399 / (download) - annotate - [select for diffs], Thu Apr 11 11:32:24 2019 UTC (5 years, 1 month ago) by sthen
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE,
OPENBSD_6_5
Changes since 1.398: +12 -7 lines
Diff to previous 1.398 (colored)
print transceiver information inline with standard interface details (like media/joinlist do) rather than totally separate; this also allows "ifconfig -a sff" or "ifconfig ix sff". tweak display format to make it look closer to the standard lines. ok deraadt
Revision 1.398 / (download) - annotate - [select for diffs], Wed Apr 10 10:14:37 2019 UTC (5 years, 1 month ago) by dlg
Branch: MAIN
Changes since 1.397: +22 -1 lines
Diff to previous 1.397 (colored)
add support for fetching and parsing SFF module info and diags this is very basic, and will get cut up a lot by sthen@ soon, but it was enough to get us started with. at the moment it shows the type of module, some vendor and products strings, and detects if the device supports diag and then shows it. qsfp info is structured very differently, but i'll let sfp support settle before trying to make it look the same. so far only ix(4) and some ixl(4) with up to date firmware implement the backend ioctl for this. no em(4) yet :( suggestions from mikeb@ ok deraadt@ sthen@ this was started because of a question from rachel roch
Revision 1.397 / (download) - annotate - [select for diffs], Mon Mar 11 11:25:48 2019 UTC (5 years, 2 months ago) by dlg
Branch: MAIN
Changes since 1.396: +2 -2 lines
Diff to previous 1.396 (colored)
remove an extra ; on a line no functional change
Revision 1.396 / (download) - annotate - [select for diffs], Tue Feb 26 03:57:55 2019 UTC (5 years, 3 months ago) by dlg
Branch: MAIN
Changes since 1.395: +1 -174 lines
Diff to previous 1.395 (colored)
get rid of the mpw goop this reduces the output that mpw interfaces generate from 3 lines to the one generic mpls and pwe3 line. mpw can be configured with the individual ioctls, and gains the ability to do flow aware transport.
Revision 1.395 / (download) - annotate - [select for diffs], Tue Feb 26 03:26:50 2019 UTC (5 years, 3 months ago) by dlg
Branch: MAIN
Changes since 1.394: +213 -10 lines
Diff to previous 1.394 (colored)
implement support for pwe3 ioctls this allows individual configuration of the use of control words, flow aware tranport labels, and the local and remote label plus neighbor individually. discussed with claudio@ at a2k19 ok mpi@
Revision 1.394 / (download) - annotate - [select for diffs], Wed Feb 20 19:17:17 2019 UTC (5 years, 3 months ago) by jca
Branch: MAIN
Changes since 1.393: +3 -3 lines
Diff to previous 1.393 (colored)
Tweak previous, use the same wording everywhere ok deraadt@
Revision 1.393 / (download) - annotate - [select for diffs], Wed Feb 20 04:02:18 2019 UTC (5 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.392: +4 -4 lines
Diff to previous 1.392 (colored)
avoid abbreviation "AF" when "address family" fits on the line; noted by Alfred Morgan
Revision 1.392 / (download) - annotate - [select for diffs], Tue Feb 19 08:12:30 2019 UTC (5 years, 3 months ago) by stsp
Branch: MAIN
Changes since 1.391: +4 -2 lines
Diff to previous 1.391 (colored)
Make ifconfig(8) display whether bwfm(4) firmware is using 802.11ac. ok patrick@ mpi@
Revision 1.391 / (download) - annotate - [select for diffs], Wed Jan 23 22:17:58 2019 UTC (5 years, 4 months ago) by krw
Branch: MAIN
Changes since 1.390: +1 -3 lines
Diff to previous 1.390 (colored)
Nuke unused variable. ok phessler@
Revision 1.390 / (download) - annotate - [select for diffs], Sat Jan 19 21:06:02 2019 UTC (5 years, 4 months ago) by phessler
Branch: MAIN
Changes since 1.389: +6 -7 lines
Diff to previous 1.389 (colored)
properly error out instead of only printing a warning when some join commands failed OK deraadt@
Revision 1.389 / (download) - annotate - [select for diffs], Fri Jan 18 20:25:35 2019 UTC (5 years, 4 months ago) by phessler
Branch: MAIN
Changes since 1.388: +29 -2 lines
Diff to previous 1.388 (colored)
let users automatically use join to connect to any open wifi network. if a known network is visible, always prefer that instead. requested by many, OK stsp@
Revision 1.388 / (download) - annotate - [select for diffs], Thu Jan 17 04:28:21 2019 UTC (5 years, 4 months ago) by phessler
Branch: MAIN
Changes since 1.387: +9 -1 lines
Diff to previous 1.387 (colored)
do not allow users to specify "join" or "nwid" twice on the same ifconfig call
Revision 1.387 / (download) - annotate - [select for diffs], Thu Nov 29 00:12:34 2018 UTC (5 years, 6 months ago) by dlg
Branch: MAIN
Changes since 1.386: +26 -1 lines
Diff to previous 1.386 (colored)
handle tunnel ecn configuration and reporting. tested with normal and special ifconfig builds. ok claudio@
Revision 1.386 / (download) - annotate - [select for diffs], Sun Nov 25 12:14:01 2018 UTC (5 years, 6 months ago) by phessler
Branch: MAIN
Changes since 1.385: +72 -5 lines
Diff to previous 1.385 (colored)
print more details about the join'd networks we have saved when a user runs ifconfig if joinlist OK stsp@
Revision 1.385 / (download) - annotate - [select for diffs], Sun Nov 25 12:10:38 2018 UTC (5 years, 6 months ago) by phessler
Branch: MAIN
Changes since 1.384: +23 -21 lines
Diff to previous 1.384 (colored)
merge the wpa related settings, instead of overriding them this fixes setting wpaprotos (e.g. enabling wpa1) OK stsp@
Revision 1.384 / (download) - annotate - [select for diffs], Tue Nov 20 20:49:26 2018 UTC (5 years, 6 months ago) by phessler
Branch: MAIN
Changes since 1.383: +9 -5 lines
Diff to previous 1.383 (colored)
when printing essids return the number of chars we printed, like printf OK stsp@
Revision 1.383 / (download) - annotate - [select for diffs], Wed Nov 14 21:25:04 2018 UTC (5 years, 6 months ago) by kn
Branch: MAIN
Changes since 1.382: +7 -1 lines
Diff to previous 1.382 (colored)
Warn on deprecated 'vlan' and 'vlandev' option usage These were superseeded by 'vnetid' and 'parent' in june 2017 and will be removed in the future. "Looks right" deraadt, OK benno
Revision 1.382 / (download) - annotate - [select for diffs], Mon Nov 12 23:40:37 2018 UTC (5 years, 6 months ago) by dlg
Branch: MAIN
Changes since 1.381: +66 -1 lines
Diff to previous 1.381 (colored)
add support for txprio settings on interfaces display of the currently configured txprio setting is added to the encap line, since it's configuring something that affects the population of an encapsulation header. it also adds a txprio argument to ifconfig so the setting can be changed to "payload", "packet", or a number between 0 and 7. ok claudio@
Revision 1.381 / (download) - annotate - [select for diffs], Sat Nov 10 18:14:47 2018 UTC (5 years, 6 months ago) by kn
Branch: MAIN
Changes since 1.380: +2 -2 lines
Diff to previous 1.380 (colored)
Fix vnetid range 0 and 4095 are reserved IDs as per 802.1Q and vlan(4), setting them will fail. OK denis
Revision 1.380 / (download) - annotate - [select for diffs], Mon Oct 15 11:25:55 2018 UTC (5 years, 7 months ago) by florian
Branch: MAIN
Changes since 1.379: +1 -7 lines
Diff to previous 1.379 (colored)
The struct members addr and dstaddr in struct if_laddrreq are struct sockaddr_storage which is guarantee to be large enough, no need to check ai_addrlen. We can also trust the resolver to give us a sockaddr_in6 sized object if we ask for AF_INET6 OK kn, deraadt
Revision 1.379 / (download) - annotate - [select for diffs], Sun Sep 30 18:19:24 2018 UTC (5 years, 8 months ago) by denis
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE,
OPENBSD_6_4
Changes since 1.378: +4 -1 lines
Diff to previous 1.378 (colored)
deny non-contiguous netmask OK job@
Revision 1.378 / (download) - annotate - [select for diffs], Sun Sep 9 20:32:55 2018 UTC (5 years, 8 months ago) by phessler
Branch: MAIN
Changes since 1.377: +76 -6 lines
Diff to previous 1.377 (colored)
convert the things we save in 'join' into a single ioctl. mixing related settings over multiple calls was risky and racy. Pass essid, wpa, and wep paramaters in a single ioctl and process it atomically. no change for 'nwid' users OK stsp@ benno@
Revision 1.377 / (download) - annotate - [select for diffs], Sat Sep 8 15:21:03 2018 UTC (5 years, 8 months ago) by phessler
Branch: MAIN
Changes since 1.376: +9 -1 lines
Diff to previous 1.376 (colored)
Enforce that "join" and "nwid" may not be used at the same time. OK stsp@
Revision 1.376 / (download) - annotate - [select for diffs], Wed Aug 15 14:43:30 2018 UTC (5 years, 9 months ago) by florian
Branch: MAIN
Changes since 1.375: +6 -2 lines
Diff to previous 1.375 (colored)
Restore ability to use hostnames to configure ip addresses. Unveil /etc/{resolv.conf,hosts,services} which keeps it in sync with the kernel bypass for pledge("dns"). OK deraadt pointed out by & OK stsp
Revision 1.375 / (download) - annotate - [select for diffs], Sun Aug 12 23:50:31 2018 UTC (5 years, 9 months ago) by ccardenas
Branch: MAIN
Changes since 1.374: +77 -2 lines
Diff to previous 1.374 (colored)
Add administrative options to LACP trunk implementation. The trunk driver now has a new ioctl (SIOCxTRUNKOPTS), which for now only has options for LACP: * Mode - Active or Passive (default Active) * Timeout - Fast or Slow (default Slow) * System Priority - 1(high) to 65535(low) (default 32768/0x8000) * Port Priority - 1(high) to 65535(low) (default 32768/0x8000) * IFQ Priority - 0 to NUM_QUEUES (default 6) At the moment, ifconfig only has options for lacpmode and lacptimeout plumbed as those are the immediate need. The approach taken for the options was to make them on a "trunk" vs a "port" as what's typically seen on various NOSes (JunOS, NXOS, etc...) as it's uncommon for a host to have one link "Passive" and the other "Active" in a given trunk. Just like on a NOS, when applying lacpmode or lacptimeout, the settings are immediately applied to all existing ports in the trunk and to all future ports brought into the trunk. Tested by many on a plethora of NIC drivers and switches. Ok remi@
Revision 1.374 / (download) - annotate - [select for diffs], Sun Aug 12 18:33:55 2018 UTC (5 years, 9 months ago) by stsp
Branch: MAIN
Changes since 1.373: +5 -12 lines
Diff to previous 1.373 (colored)
Make ifconfig's -joinlist command work as advertised. ok deraadt phessler
Revision 1.373 / (download) - annotate - [select for diffs], Sat Aug 11 09:18:49 2018 UTC (5 years, 9 months ago) by benno
Branch: MAIN
Changes since 1.372: +13 -8 lines
Diff to previous 1.372 (colored)
Fix problems ofthe ifconfig argument parser with "ifconfig <if> join". Due to the way the parsing works, you cannot have an option that accepts strings as argument or no argument, without side effects: for example "join <nwid>" could only join networks that did not have a nwid identical to another ifconfig option, i.e. "join mtu" or "join join" would not work. Solve this by making join always require an nwid. Listing all the configured nwids for auto-join is moved to the new option "joinlist". Removing _all_ auto-join configuration is moved to "-joinlist". deraadt@ likes it and ok phessler@ stsp@
Revision 1.372 / (download) - annotate - [select for diffs], Wed Aug 8 17:26:52 2018 UTC (5 years, 9 months ago) by florian
Branch: MAIN
Changes since 1.371: +21 -1 lines
Diff to previous 1.371 (colored)
ifconfig cannot be pledged because of its overwhelming amount of used ioctls. Furthermore due to the way the command line parser is written it is difficult to apply the traditional first initialize then pledge pattern. unveil(2) gives us a different approach: By veiling everything with unveil("/", "") and then locking down unveil with unveil(NULL, NULL) we remove all filesystem access from ifconfig kind of like giving a regular user a chroot without any files. OK deraadt
Revision 1.371 / (download) - annotate - [select for diffs], Wed Aug 8 15:30:29 2018 UTC (5 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.370: +3 -3 lines
Diff to previous 1.370 (colored)
tabs are ok at start of line, but internally space seperation is the norm
Revision 1.370 / (download) - annotate - [select for diffs], Mon Aug 6 11:42:18 2018 UTC (5 years, 9 months ago) by benno
Branch: MAIN
Changes since 1.369: +55 -3 lines
Diff to previous 1.369 (colored)
make ifconfig <if> join display the list of networks configured for auto-join with feedback from florian and stsp ok florian@ phessler@ (on previous versions of the diff) stsp@
Revision 1.369 / (download) - annotate - [select for diffs], Fri Jul 13 08:41:32 2018 UTC (5 years, 10 months ago) by krw
Branch: MAIN
Changes since 1.368: +2 -3 lines
Diff to previous 1.368 (colored)
Unused variables. ok henning@ phessler@
Revision 1.368 / (download) - annotate - [select for diffs], Wed Jul 11 20:18:09 2018 UTC (5 years, 10 months ago) by phessler
Branch: MAIN
Changes since 1.367: +97 -7 lines
Diff to previous 1.367 (colored)
Introduce 'auto-join' to the wifi 802.11 stack. This allows a system to remember which ESSIDs it wants to connect to, any relevant security configuration, and switch to it when the network we are currently connected to is no longer available. Works when connecting and switching between WPA2/WPA1/WEP/clear encryptions. example hostname.if: join home wpakey password join work wpakey mekmitasdigoat join open-lounge join cafe wpakey cafe2018 join "wepnetwork" nwkey "12345" dhcp inet6 autoconf up OK stsp@ reyk@ and enthusiasm from every hackroom I've been in for the last 3 years
Revision 1.367 / (download) - annotate - [select for diffs], Mon May 28 08:53:35 2018 UTC (6 years ago) by kn
Branch: MAIN
Changes since 1.366: +1 -2 lines
Diff to previous 1.366 (colored)
Remove unused <sys/param.h> OK sthen mpi
Revision 1.366 / (download) - annotate - [select for diffs], Sat May 12 02:02:34 2018 UTC (6 years ago) by ccardenas
Branch: MAIN
Changes since 1.365: +16 -1 lines
Diff to previous 1.365 (colored)
Make LACP_STATE_BITS accessible to userland Update ifconfig to display LACP State (Actor and Partner) on each trunk port Ok benno@, phessler@, and tb@
Revision 1.365 / (download) - annotate - [select for diffs], Thu Apr 26 12:50:07 2018 UTC (6 years, 1 month ago) by pirofti
Branch: MAIN
Changes since 1.364: +6 -10 lines
Diff to previous 1.364 (colored)
net80211: stub SIOCS80211SCAN, make ifconfig scan instant. The following removes the functionality of the SIOCS80211SCAN ioctl. After long discussions with stps@, mpi@, and deraadt@ we decided that this was the correct way of fixing ifconfig scan from blocking the network stack. The kernel will continue scanning in the background and filling the nodes array, but ifconfig scan commands will now basically do just a SIOCG80211ALLNODES and pretty print the array. So the output stays the same but is instant. In fact, when the interface is freshly brought up, if you type fast enough, you can see the array being filled by running multiple ifconfig scans in sequence. The SIOCS80211SCAN ioctl stays for now as wi(4), pgt(4) and malo(4) still need it around. But not for long... Another change that this introduces is the fact that ifconfig scan no longer plays with UP and DOWN. If the interface is down it complains and exits. This is needed in order to maintain the nodes list. Works on iwm(4), iwn(4), urtwn(4), run(4) and athn(4). Tested by mpi@, landry@, florian@, thanks! OK mpi@.
Revision 1.364 / (download) - annotate - [select for diffs], Thu Apr 26 12:23:56 2018 UTC (6 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.363: +1 -4 lines
Diff to previous 1.363 (colored)
Do not try getnetbyname(3) if gethostbyname(3) returns no result. This is part of the project to delete /etc/networks support. OK deraadt@
Revision 1.363 / (download) - annotate - [select for diffs], Thu Apr 26 06:58:50 2018 UTC (6 years, 1 month ago) by akoshibe
Branch: MAIN
Changes since 1.362: +12 -1 lines
Diff to previous 1.362 (colored)
Add a '-tunneldomain' ifconfig(8) option as shorthand for 'tunneldomain 0' to be consistent with the '-rdomain' option. Suggested by dlg OK benno, jca, kn, phessler, jmc
Revision 1.362 / (download) - annotate - [select for diffs], Tue Feb 27 22:32:26 2018 UTC (6 years, 3 months ago) by dlg
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE,
OPENBSD_6_3
Changes since 1.361: +92 -22 lines
Diff to previous 1.361 (colored)
handle "tunnels" without a destination address this is used for mgre, which has a local address but dynamically addresses other endpoints based on routing information. "tunneladdr" takes a single address (where "tunnel" takes two) and sets the destination address in the ioctl to an AF_UNSPEC destination. tunnel status is changed so it recognises this and only outputs the local address if the destination is AF_UNSPEC. the tunnel status is also changed so it can tell the difference between tunnels being unsupported on the interface (ie, ENOTTY comes back) or if there's just no address configured yet (EADDRNOTAVAIL), which allows the other tunnel params like ttl and df to be shown. tested with and without -DSMALL
Revision 1.361 / (download) - annotate - [select for diffs], Fri Feb 23 05:17:39 2018 UTC (6 years, 3 months ago) by akoshibe
Branch: MAIN
Changes since 1.360: +12 -1 lines
Diff to previous 1.360 (colored)
Add unsetrdomain() and option -rdomain to return an interface to routing domain 0. OK phessler, henning, deraadt, stsp, benno
Revision 1.360 / (download) - annotate - [select for diffs], Tue Feb 20 15:33:16 2018 UTC (6 years, 3 months ago) by tb
Branch: MAIN
Changes since 1.359: +15 -15 lines
Diff to previous 1.359 (colored)
Move getvnetflowid() out of #ifndef SMALL to unbreak 'make release'. Diff from jsg, ok millert, benno
Revision 1.359 / (download) - annotate - [select for diffs], Tue Feb 20 03:45:06 2018 UTC (6 years, 3 months ago) by dlg
Branch: MAIN
Changes since 1.358: +64 -17 lines
Diff to previous 1.358 (colored)
add support for toggling partitioning a vnetid into a netid and flowid "vnetflowid" enables it on an interface, and "-vnetflowid" disables it. a vnetid will be suffixed with + on the encap line if it an interface reports that it is enabled.
Revision 1.358 / (download) - annotate - [select for diffs], Mon Feb 19 00:23:57 2018 UTC (6 years, 3 months ago) by dlg
Branch: MAIN
Changes since 1.357: +27 -1 lines
Diff to previous 1.357 (colored)
add support for setting and displaying whether a tunnel allows fragmentation ifconfig will output "nodf" or "df" on tunnel interfaces that support the ioctl., and accepts "tunneldf" and "-tunneldf" as options to try and configure it.
Revision 1.357 / (download) - annotate - [select for diffs], Sat Feb 10 05:55:26 2018 UTC (6 years, 3 months ago) by florian
Branch: MAIN
Changes since 1.356: +3 -1 lines
Diff to previous 1.356 (colored)
ifconfig can be used to to set interface flag to not do RFC 7217. OK naddy, sthen man page bits input & OK jmc
Revision 1.356 / (download) - annotate - [select for diffs], Thu Feb 8 21:54:55 2018 UTC (6 years, 3 months ago) by dlg
Branch: MAIN
Changes since 1.355: +14 -6 lines
Diff to previous 1.355 (colored)
when using tunnelttl, let -1 mean "copy the ttl from the inner traffic". tunnelttl now accepts "copy" as an argument, and prints "copy" when it sees -1. ok claudio@
Revision 1.355 / (download) - annotate - [select for diffs], Thu Feb 8 13:15:32 2018 UTC (6 years, 3 months ago) by mpi
Branch: MAIN
Changes since 1.354: +3 -1 lines
Diff to previous 1.354 (colored)
Add a new '-protected' option for bridge members. Bridge members that are part of the same protected domain, refered by a number between 1 and 31, cannot talk to each others. This is useful to isolate VMs or untrusted networks at layer 2. Members can be part of multiple protected domain making it possible to create complex protected setups. ok ccardenas@, claudio@, dlg@, henning@
Revision 1.354 / (download) - annotate - [select for diffs], Fri Feb 2 13:39:52 2018 UTC (6 years, 3 months ago) by stsp
Branch: MAIN
Changes since 1.353: +3 -1 lines
Diff to previous 1.353 (colored)
Make 'ifconfig if0 wpaakms 802.1x' implicitly enable WPA. Requring WPA to be enabled separately via 'ifconfig if0 wpa' was confusing. ok mlarkin phessler mpi
Revision 1.353 / (download) - annotate - [select for diffs], Tue Jan 16 10:33:55 2018 UTC (6 years, 4 months ago) by mpi
Branch: MAIN
Changes since 1.352: +3 -1 lines
Diff to previous 1.352 (colored)
Recycle IFF_NOTRAILERS into IFF_STATICARP and document ownerhsip of IFF* flags. inputs from jmc@, ok bluhm@, visa@
Revision 1.352 / (download) - annotate - [select for diffs], Tue Jan 9 10:02:02 2018 UTC (6 years, 4 months ago) by mpi
Branch: MAIN
Changes since 1.351: +5 -64 lines
Diff to previous 1.351 (colored)
Stop printing <not displayed> for wireless keys we know the kernel no longer export them to userland. ok stsp@, deraadt@, jca@
Revision 1.351 / (download) - annotate - [select for diffs], Fri Nov 17 18:04:51 2017 UTC (6 years, 6 months ago) by benno
Branch: MAIN
Changes since 1.350: +7 -5 lines
Diff to previous 1.350 (colored)
replace the deletetunnel option with -tunnel ok bluhm@
Revision 1.350 / (download) - annotate - [select for diffs], Sun Nov 5 22:09:26 2017 UTC (6 years, 6 months ago) by benno
Branch: MAIN
Changes since 1.349: +1 -3 lines
Diff to previous 1.349 (colored)
ifconfig <if> giftunnel was deprecated in 2001, it's never too late to remove it ok phessler@ beck@
Revision 1.349 / (download) - annotate - [select for diffs], Mon Oct 30 10:04:07 2017 UTC (6 years, 7 months ago) by mpi
Branch: MAIN
Changes since 1.348: +2 -2 lines
Diff to previous 1.348 (colored)
Exit printing an error message if SIOCSIFMEDIA fails. from Jesper Wallin.
Revision 1.348 / (download) - annotate - [select for diffs], Tue Aug 29 21:10:20 2017 UTC (6 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE,
OPENBSD_6_2
Changes since 1.347: +3 -3 lines
Diff to previous 1.347 (colored)
quarterly rescan of the tree: remove unneccessary sys/param.h, and annotate the ones which are needed.
Revision 1.347 / (download) - annotate - [select for diffs], Tue Aug 29 20:06:51 2017 UTC (6 years, 9 months ago) by stsp
Branch: MAIN
Changes since 1.346: +2 -2 lines
Diff to previous 1.346 (colored)
Don't use isset() from sys/param.h in ifconfig. Requested by deraadt
Revision 1.346 / (download) - annotate - [select for diffs], Tue Aug 1 19:01:08 2017 UTC (6 years, 10 months ago) by benno
Branch: MAIN
Changes since 1.345: +2 -1 lines
Diff to previous 1.345 (colored)
use AI_NUMERICHOST for getaddrinfo(), we can only configure ip adresses on pflow(4) interfaces, so don't try to resolve hostnames. Report and fix from pjp -AT- centroid.eu ok florian@
Revision 1.345 / (download) - annotate - [select for diffs], Sun Jun 25 22:22:06 2017 UTC (6 years, 11 months ago) by stsp
Branch: MAIN
Changes since 1.344: +8 -3 lines
Diff to previous 1.344 (colored)
Make ifconfig(8) default to prefixlen 128 when setting an IPv6 destination address on a point-to-point interface. Makes it easier to configure IPv6 on interfaces such as gif(4). Specifying 'prefixlen 128' is no longer required. This is consistent with IPv4 where a netmask is not required either. ok mpi@ bluhm@ benno@
Revision 1.344 / (download) - annotate - [select for diffs], Thu Jun 8 19:23:39 2017 UTC (6 years, 11 months ago) by tedu
Branch: MAIN
Changes since 1.343: +1 -109 lines
Diff to previous 1.343 (colored)
remove the timeslot code, it was only for now deleted T1 devices. ok sthen
Revision 1.343 / (download) - annotate - [select for diffs], Tue Jun 6 04:52:40 2017 UTC (6 years, 11 months ago) by dlg
Branch: MAIN
Changes since 1.342: +5 -5 lines
Diff to previous 1.342 (colored)
make vnetid and parent commands available in SMALL ifconfigs. the code behind the commands has been built on SMALL forever, this just moves it available in the cmd table. the binary doesnt change size.
Revision 1.342 / (download) - annotate - [select for diffs], Mon Jun 5 05:10:23 2017 UTC (6 years, 11 months ago) by dlg
Branch: MAIN
Changes since 1.341: +1 -20 lines
Diff to previous 1.341 (colored)
remove vlan(4) specific output handling vlan(4) now understands the generic vnetid and ifparent ioctls, so this is redundant. ok henning@
Revision 1.341 / (download) - annotate - [select for diffs], Wed May 31 05:25:12 2017 UTC (7 years ago) by dlg
Branch: MAIN
Changes since 1.340: +72 -15 lines
Diff to previous 1.340 (colored)
fold the vnetid and parent lines into a single encap line. this is a modest attempt to shorten the ifconfig output. encap wont show up if neither vnetid or parent are supplied by an interface. whitespace tweaks from benno@ output tweaks from reyk@ ok deraadt@ henning@
Revision 1.340 / (download) - annotate - [select for diffs], Tue Mar 21 07:24:36 2017 UTC (7 years, 2 months ago) by stsp
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE,
OPENBSD_6_1
Changes since 1.339: +3 -3 lines
Diff to previous 1.339 (colored)
Replace a magic number with the corresponding macro from ieee80211_ioctl.h. No functional change. ok deraadt@ tb@
Revision 1.339 / (download) - annotate - [select for diffs], Sun Mar 12 03:18:57 2017 UTC (7 years, 2 months ago) by stsp
Branch: MAIN
Changes since 1.338: +7 -6 lines
Diff to previous 1.338 (colored)
Make ifconfig scan display both wpa1 and wpa2 if both are supported. ok henning@ phessler@
Revision 1.338 / (download) - annotate - [select for diffs], Sat Mar 11 13:22:36 2017 UTC (7 years, 2 months ago) by stsp
Branch: MAIN
Changes since 1.337: +3 -3 lines
Diff to previous 1.337 (colored)
Make 'ifconfig scan' display AP encryption correctly if WEP is configured on the local wifi interface. ifconfig was mistakenly showing the common supported subset of client and AP, rather than showing the AP's capabilities. Exposes WPA protocol capabilities in struct ieee80211_nodereq, which means ifconfig must be recompiled to run on a new kernel. ok deraadt@ mpi@
Revision 1.337 / (download) - annotate - [select for diffs], Sat Jan 21 08:31:44 2017 UTC (7 years, 4 months ago) by krw
Branch: MAIN
Changes since 1.336: +5 -5 lines
Diff to previous 1.336 (colored)
Nuke whitespace foolish enough to expose itself during the great "warning:" rectification.
Revision 1.336 / (download) - annotate - [select for diffs], Sun Dec 25 20:30:41 2016 UTC (7 years, 5 months ago) by krw
Branch: MAIN
Changes since 1.335: +1 -2 lines
Diff to previous 1.335 (colored)
gcc says "if you define labels and don't use them, I will whine." ok tom@
Revision 1.335 / (download) - annotate - [select for diffs], Tue Dec 20 13:26:24 2016 UTC (7 years, 5 months ago) by stsp
Branch: MAIN
Changes since 1.334: +5 -3 lines
Diff to previous 1.334 (colored)
Make 'ifconfig if0 wpa' and 'ifconfig if0 -wpa' reset WPA params (does not include the wpakey) to their defaults. And make 'ifconfig if0 wpaprotos' reset WPA crypto parameters to settings which are appropriate for the specified WPA protocol version.
Revision 1.334 / (download) - annotate - [select for diffs], Tue Dec 13 01:36:21 2016 UTC (7 years, 5 months ago) by dlg
Branch: MAIN
Changes since 1.333: +2 -6 lines
Diff to previous 1.333 (colored)
make setting and getting tunnel addresses wrt to ipv6 scope handling. setting a tunnel addresses uses a sockaddr_in6 from getaddrinfo, which sets sin6_scope_id for scoped addresses. this is nice and portable. reading a tunnel address assumed the scope was embedded in link local addresses in sin6_addr, and unpacked the scope back into sin6_scope_id. this is inconsistent with the code that sets tunnel addresses. this fixes the read path so it assumes the kernel sets sin6_scope_id like it it assumes the kernel will read on the set side. noone likes the kame hack of embedding the scope id in the addreses. ok mpi@
Revision 1.333 / (download) - annotate - [select for diffs], Thu Nov 10 14:36:03 2016 UTC (7 years, 6 months ago) by gerhard
Branch: MAIN
Changes since 1.332: +3 -3 lines
Diff to previous 1.332 (colored)
The simple UTF-16 decode routine stopped too early due to wrong calculation of the output buffer size. Thus elements like subscriber-id, ICC-id, IMEI were shown truncated. Some modules report a phone number that already has the '+' prefix. Don't add another one when printing it. Patch from Bryan Vyhmeister ok otto
Revision 1.332 / (download) - annotate - [select for diffs], Tue Nov 8 14:37:20 2016 UTC (7 years, 6 months ago) by mestre
Branch: MAIN
Changes since 1.331: +21 -22 lines
Diff to previous 1.331 (colored)
- Declare usage() as __dead void (remaining prototypes are not declared as static, so keep it that way for consistency) - s/usage(1)/usage() and inside call exit(1) explicitly since all usage() calls always use that value (also update comment to reflect this change) - Remove main() prototype - s/exit/return in main() to enable SSP Feedback from jca@ and tb@ and OK from both (with their remarks in)
Revision 1.331 / (download) - annotate - [select for diffs], Mon Oct 17 10:49:17 2016 UTC (7 years, 7 months ago) by rzalamena
Branch: MAIN
Changes since 1.330: +2 -2 lines
Diff to previous 1.330 (colored)
Use strtoull() to read the datapath id and expect "datapath" instead of "datapathid" as stated by the man page. ok reyk@
Revision 1.330 / (download) - annotate - [select for diffs], Sat Sep 3 13:46:57 2016 UTC (7 years, 8 months ago) by reyk
Branch: MAIN
Changes since 1.329: +18 -7 lines
Diff to previous 1.329 (colored)
Add support for a multipoint-to-multipoint mode in vxlan(4). In this mode, vxlan(4) must be configured to accept any virtual network identifier with "vnetid any" and added to a bridge(4) or switch(4). This way the driver will dynamically learn the tunnel endpoints and their vnetids for the responses and can be used to dynamically bridge between VXLANs. It is also being used in combination with switch(4) and the OpenFlow tunnel classifiers. With input from yasuoka@ goda@ OK deraadt@ dlg@
Revision 1.329 / (download) - annotate - [select for diffs], Fri Sep 2 10:01:36 2016 UTC (7 years, 9 months ago) by goda
Branch: MAIN
Changes since 1.328: +5 -1 lines
Diff to previous 1.328 (colored)
Add switch(4) support to ifconfig ok deraadt@ yasuoka@ reyk@ henning@
Revision 1.328 / (download) - annotate - [select for diffs], Wed Aug 31 13:32:27 2016 UTC (7 years, 9 months ago) by stsp
Branch: MAIN
Changes since 1.327: +4 -4 lines
Diff to previous 1.327 (colored)
Rename ifconfig's setinstance() function to setrdomain(). Less confusing. ok claudio@ jca@
Revision 1.327 / (download) - annotate - [select for diffs], Fri Aug 19 09:06:24 2016 UTC (7 years, 9 months ago) by jsg
Branch: MAIN
Changes since 1.326: +2 -2 lines
Diff to previous 1.326 (colored)
correct a rate test introduced in rev 1.326 ok stsp@
Revision 1.326 / (download) - annotate - [select for diffs], Mon Aug 15 22:16:46 2016 UTC (7 years, 9 months ago) by stsp
Branch: MAIN
Changes since 1.325: +15 -5 lines
Diff to previous 1.325 (colored)
When running 'ifconfig scan' in hostap mode display the current Tx rate our AP is using to send frames to an associated node. This used to always display the node's highest supported Rx rate, which isn't all that interesting. ok mpi@
Revision 1.325 / (download) - annotate - [select for diffs], Wed Aug 3 20:45:36 2016 UTC (7 years, 9 months ago) by vgross
Branch: MAIN
Changes since 1.324: +3 -3 lines
Diff to previous 1.324 (colored)
Fix typo, spotted by Holger Mikolon <holger@mikolon.com>
Revision 1.324 / (download) - annotate - [select for diffs], Wed Jun 15 19:39:33 2016 UTC (7 years, 11 months ago) by gerhard
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE,
OPENBSD_6_0
Changes since 1.323: +425 -1 lines
Diff to previous 1.323 (colored)
Add umb(4) - a driver for the Mobile Broadband Interface Model (MBIM) The umb(4) driver provides support for USB MBIM devices. Those devices establish connections via celluar networks such as GPRS, UMTS, and LTE. ok mpi@ sthen@ additional feedback from deraadt@ jmc@ stsp@ kettenis@
Revision 1.323 / (download) - annotate - [select for diffs], Fri Jun 10 20:33:29 2016 UTC (7 years, 11 months ago) by vgross
Branch: MAIN
Changes since 1.322: +37 -7 lines
Diff to previous 1.322 (colored)
Add the "llprio" field to struct ifnet, and the corresponding keyword to ifconfig. "llprio" allows one to set the priority of packets that do not go through pf(4), as the case is for arp(4) or bpf(4). ok sthen@ mikeb@
Revision 1.322 / (download) - annotate - [select for diffs], Tue May 3 17:52:33 2016 UTC (8 years, 1 month ago) by jca
Branch: MAIN
Changes since 1.321: +7 -39 lines
Diff to previous 1.321 (colored)
Remove INET6 #ifdefs ifconfig.c doesn't build without -DINET6, and those #ifdefs clutter the code. ok bluhm@ henning@
Revision 1.321 / (download) - annotate - [select for diffs], Thu Apr 28 13:51:22 2016 UTC (8 years, 1 month ago) by stsp
Branch: MAIN
Changes since 1.320: +13 -4 lines
Diff to previous 1.320 (colored)
Show 11n HT rate in ifconfig scan output. Needs a new kernel. ok mpi@
Revision 1.320 / (download) - annotate - [select for diffs], Mon Apr 18 06:20:23 2016 UTC (8 years, 1 month ago) by mpi
Branch: MAIN
Changes since 1.319: +9 -3 lines
Diff to previous 1.319 (colored)
Print interface index after priority. Suggestion from claudio@, ok benno@, sthen@
Revision 1.319 / (download) - annotate - [select for diffs], Wed Apr 6 11:48:51 2016 UTC (8 years, 1 month ago) by dlg
Branch: MAIN
Changes since 1.318: +89 -92 lines
Diff to previous 1.318 (colored)
move the parent and vnetid stuff around so it builds on ramdisks too. ramdisk breakage found by jsg@ ok jsg@
Revision 1.318 / (download) - annotate - [select for diffs], Wed Apr 6 01:39:17 2016 UTC (8 years, 1 month ago) by dlg
Branch: MAIN
Changes since 1.317: +22 -3 lines
Diff to previous 1.317 (colored)
move getting the vnetid out next to getting the ifparent its now separate to getting the tunnel address. ok mpi@
Revision 1.317 / (download) - annotate - [select for diffs], Wed Mar 2 19:45:10 2016 UTC (8 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.316: +4 -1 lines
Diff to previous 1.316 (colored)
repair for ramdisk builds
Revision 1.316 / (download) - annotate - [select for diffs], Wed Mar 2 00:00:16 2016 UTC (8 years, 3 months ago) by dlg
Branch: MAIN
Changes since 1.315: +52 -1 lines
Diff to previous 1.315 (colored)
provide generic ioctls for managing an interfaces parent in the future this will subsume the individual vlandev, carpdev, pppoedev, foodev options for things like vlan, carp, pppoe, etc. inspired by vnetid ok mpi@ jmatthew@
Revision 1.315 / (download) - annotate - [select for diffs], Wed Jan 13 09:35:45 2016 UTC (8 years, 4 months ago) by stsp
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE,
OPENBSD_5_9
Changes since 1.314: +25 -2 lines
Diff to previous 1.314 (colored)
Make 'ifconfig $if mode' a valid subcommand that works independently of the 'media' subcommand. Allow clearing the mode with 'ifconfig $if -mode'. This makes commands such as 'ifconfig iwn0 mode 11a' work without having to type all of 'ifconfig iwn0 media autoselect mode 11a'. ok sthen@ deraadt@ jmc@
Revision 1.314 / (download) - annotate - [select for diffs], Wed Jan 6 21:37:00 2016 UTC (8 years, 4 months ago) by tedu
Branch: MAIN
Changes since 1.313: +2 -2 lines
Diff to previous 1.313 (colored)
correct format string. ok deraadt stsp
Revision 1.313 / (download) - annotate - [select for diffs], Sun Jan 3 10:33:27 2016 UTC (8 years, 5 months ago) by mpi
Branch: MAIN
Changes since 1.312: +1 -20 lines
Diff to previous 1.312 (colored)
Remove obsolete and undocumented "-carpdev" option, from Fabian Raetz. ok benno@, claudio@
Revision 1.312 / (download) - annotate - [select for diffs], Fri Jan 1 12:50:54 2016 UTC (8 years, 5 months ago) by jung
Branch: MAIN
Changes since 1.311: +2 -3 lines
Diff to previous 1.311 (colored)
rmeove unused noprint variable from Fabian Raetz via tech@ ok krw
Revision 1.311 / (download) - annotate - [select for diffs], Thu Dec 10 17:26:59 2015 UTC (8 years, 5 months ago) by mmcc
Branch: MAIN
Changes since 1.310: +2 -3 lines
Diff to previous 1.310 (colored)
Remove NULL-checks before free(). ok tb@
Revision 1.310 / (download) - annotate - [select for diffs], Wed Dec 9 16:02:44 2015 UTC (8 years, 5 months ago) by mpi
Branch: MAIN
Changes since 1.309: +7 -9 lines
Diff to previous 1.309 (colored)
Revert SIOCDIFADDR_IN6 fix. It's not possible to fix this issue in ifconfig(8) because in_control() and in6_control() have a subtle semantic difference which result in breaking alias for IPv4. in_control() always select the first address on the list of an interface whereas in6_control() doesn't. That's why ifconfig(8) passes an empty "struct in_aliasreq" and that fails in netinet6. Breakage reported by deraadt@
Revision 1.309 / (download) - annotate - [select for diffs], Sun Dec 6 12:52:18 2015 UTC (8 years, 5 months ago) by tedu
Branch: MAIN
Changes since 1.308: +1 -13 lines
Diff to previous 1.308 (colored)
remove trailers option that was already obsolete when this code was imported. ok benno krw
Revision 1.308 / (download) - annotate - [select for diffs], Sun Dec 6 12:50:05 2015 UTC (8 years, 5 months ago) by tedu
Branch: MAIN
Changes since 1.307: +3 -39 lines
Diff to previous 1.307 (colored)
remove txpower option. only relevant to the now irrelevant wi driver. (several other drivers misleadingly claim generic 802.11 txpower, but do not in fact do anything. the knob is not connected to the radio.) ok benno jsg krw reyk
Revision 1.307 / (download) - annotate - [select for diffs], Wed Nov 25 10:52:25 2015 UTC (8 years, 6 months ago) by mpi
Branch: MAIN
Changes since 1.306: +9 -7 lines
Diff to previous 1.306 (colored)
Put back 1.305 without breaking the hand rolled inet_net_pton(3) case for IPv4. Tested by sebastia@ and krw@
Revision 1.306 / (download) - annotate - [select for diffs], Mon Nov 23 17:53:52 2015 UTC (8 years, 6 months ago) by mpi
Branch: MAIN
Changes since 1.305: +5 -7 lines
Diff to previous 1.305 (colored)
Revert previous it introduces a regression found by krw@
Revision 1.305 / (download) - annotate - [select for diffs], Mon Nov 23 10:33:23 2015 UTC (8 years, 6 months ago) by mpi
Branch: MAIN
Changes since 1.304: +7 -5 lines
Diff to previous 1.304 (colored)
Initialize SIOCDIFADDR{_IN6,} argument as intended. How this could have been unotified for so long? Thanks to sebastia@ for reporting a breakage when re-configuring an IPv6 static address. ok sebastia@
Revision 1.304 / (download) - annotate - [select for diffs], Sat Oct 24 10:52:05 2015 UTC (8 years, 7 months ago) by reyk
Branch: MAIN
Changes since 1.303: +32 -1 lines
Diff to previous 1.303 (colored)
Add pair(4), a vether-based virtual Ethernet driver to interconnect rdomains and bridges on the local system. This can be used to route through local rdomains, to create L2 devices (like trunks) between them, and many other things. Discussed with many, with input from mpi@ OK sthen@ phessler@ yasuoka@ mikeb@
Revision 1.303 / (download) - annotate - [select for diffs], Fri Oct 23 01:19:04 2015 UTC (8 years, 7 months ago) by dlg
Branch: MAIN
Changes since 1.302: +13 -3 lines
Diff to previous 1.302 (colored)
tweak the vnetid so it can be optional and therefore cleared/deleted. the abstract vnetid is promoted to a uin32_t, and adds a SIOCDVNETID ioctl so it can be cleared. this is all because i set an assignment on implementing a virtual network interface and the students got confused when vnetid 0 didnt show up in ifconfig output. the vnetid in the vxlan(4) protocol is optional, but the current code confuses 0 with no vnetid being set. this makes it clear. ok reyk@ who also simplified my diff
Revision 1.302 / (download) - annotate - [select for diffs], Sat Oct 3 10:44:23 2015 UTC (8 years, 8 months ago) by florian
Branch: MAIN
Changes since 1.301: +121 -57 lines
Diff to previous 1.301 (colored)
IPv6 transport for pflow data. Input deraadt@ Bug fix & OK benno@
Revision 1.301 / (download) - annotate - [select for diffs], Fri Sep 11 15:59:40 2015 UTC (8 years, 8 months ago) by stsp
Branch: MAIN
Changes since 1.300: +12 -1 lines
Diff to previous 1.300 (colored)
In `ifconfig media` output, stop advertising media with fixed data rates on wireless interfaces. They are not needed by mere mortals. ok phessler miod kettenis deraadt mpi
Revision 1.300 / (download) - annotate - [select for diffs], Fri Sep 11 13:02:59 2015 UTC (8 years, 8 months ago) by stsp
Branch: MAIN
Changes since 1.299: +35 -33 lines
Diff to previous 1.299 (colored)
Fix ifconfig for ifmedia64.
Revision 1.299 / (download) - annotate - [select for diffs], Sun Jul 26 22:37:40 2015 UTC (8 years, 10 months ago) by chl
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE,
OPENBSD_5_8
Changes since 1.298: +1 -2 lines
Diff to previous 1.298 (colored)
remove unused variable ok mpi@ rzalamena@
Revision 1.298 / (download) - annotate - [select for diffs], Wed Jul 22 06:20:06 2015 UTC (8 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.297: +3 -1 lines
Diff to previous 1.297 (colored)
process_mpw_commands should not go to install-media ifconfig
Revision 1.297 / (download) - annotate - [select for diffs], Tue Jul 21 17:50:23 2015 UTC (8 years, 10 months ago) by rzalamena
Branch: MAIN
Changes since 1.296: +176 -1 lines
Diff to previous 1.296 (colored)
Teach ifconfig(8) about mpw(4) commands. ok claudio@, renato@, mpi@.
Revision 1.296 / (download) - annotate - [select for diffs], Thu Feb 5 10:30:25 2015 UTC (9 years, 3 months ago) by henning
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE,
OPENBSD_5_7
Changes since 1.295: +2 -0 lines
Diff to previous 1.295 (colored)
implement "ifconfig <if> -inet", removing all inet addresses for symmetry with -inet6 mostly. ok phessler theo
Revision 1.295 / (download) - annotate - [select for diffs], Fri Jan 16 06:39:58 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.294: +10 -6 lines
Diff to previous 1.294 (colored)
Replace <sys/param.h> with <limits.h> and other less dirty headers where possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
Revision 1.294 / (download) - annotate - [select for diffs], Fri Jan 9 20:34:21 2015 UTC (9 years, 4 months ago) by sthen
Branch: MAIN
Changes since 1.293: +3 -3 lines
Diff to previous 1.293 (colored)
Change rssi passed to ifconfig(8) to a signed value to fix printing signal strengths on 802.11 interfaces. ok stsp@ Power on wireless interfaces is usually scaled in dBm. rssi (received signal strength) is expected to be a -ve dBm values (i.e. [much] <1mW). Some (though not all!) drivers store this as negative values, so it needs to be passed to ifconfig that way for printing, not cast to an unsigned value. Valid range is something like -40 to -90dBm, so the range available with a signed char is reasonable whether it's stored as a +ve or -ve number.
Revision 1.293 / (download) - annotate - [select for diffs], Tue Jan 6 21:26:46 2015 UTC (9 years, 4 months ago) by stsp
Branch: MAIN
Changes since 1.292: +23 -13 lines
Diff to previous 1.292 (colored)
Remove the NOINET6 interface flag, a left-over from the times when IPv6 was enabled by default. Add AFATTACH/AFDETACH ioctls which enable/disable an address family for an interface (currently used for IPv6 only). New kernel needs new ifconfig for IPv6 configuration (address assignment still works with old ifconfig making this easy to cross over). Committing on behalf of henning@ who is currently lebensmittelvergiftet. ok stsp, benno, mpi
Revision 1.292 / (download) - annotate - [select for diffs], Sun Jan 4 12:30:39 2015 UTC (9 years, 4 months ago) by mpi
Branch: MAIN
Changes since 1.291: +14 -1 lines
Diff to previous 1.291 (colored)
Sort wireless nodes by signal strength, from Simon Nicolussi. ok stsp@, deraadt@
Revision 1.291 / (download) - annotate - [select for diffs], Sat Jan 3 06:09:36 2015 UTC (9 years, 5 months ago) by jsg
Branch: MAIN
Changes since 1.290: +2 -2 lines
Diff to previous 1.290 (colored)
move the list_cloners() prototype out of #ifndef SMALL missed in rev 1.290
Revision 1.290 / (download) - annotate - [select for diffs], Thu Jan 1 22:53:39 2015 UTC (9 years, 5 months ago) by krw
Branch: MAIN
Changes since 1.289: +1 -9 lines
Diff to previous 1.289 (colored)
Enable 'ifconfig -C' (list dynamic interface types) on install media. Use this feature in install scripts to eliminate manually maintained list of dynamic interface types. '-C' brought to my attention by reyk@, tweaks to install script to use -C in get_ifdevs() from rpe@. ok rpe@ deraadt@
Revision 1.289 / (download) - annotate - [select for diffs], Fri Nov 14 15:09:29 2014 UTC (9 years, 6 months ago) by tedu
Branch: MAIN
Changes since 1.288: +4 -1 lines
Diff to previous 1.288 (colored)
sort names for -C. ok reyk
Revision 1.288 / (download) - annotate - [select for diffs], Fri Nov 14 15:03:11 2014 UTC (9 years, 6 months ago) by henning
Branch: MAIN
Changes since 1.287: +127 -127 lines
Diff to previous 1.287 (colored)
move the trunk related functions out of ifdef SMALL, to allow trunk on RAMDISKs. grows ifconfig on SMALL media slightly, verified to still fit on amd64 i386 sparc64 alpha hppa macppc by me. ok krw reyk
Revision 1.287 / (download) - annotate - [select for diffs], Sat Jul 12 19:58:17 2014 UTC (9 years, 10 months ago) by henning
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE,
OPENBSD_5_6
Changes since 1.286: +1 -1 lines
Diff to previous 1.286 (colored)
ewps, that giant table has -inet6 twice, for SMALL and !SMALL no breakage involved, but wasn't correct in the SMALL case either
Revision 1.286 / (download) - annotate - [select for diffs], Fri Jul 11 16:41:51 2014 UTC (9 years, 10 months ago) by henning
Branch: MAIN
Changes since 1.285: +34 -1 lines
Diff to previous 1.285 (colored)
allow IFXF_AUTOCONF6 to be set and cleared. "ifconfig <if> inet6 autoconf" to turn it on, -autoconf to turn it off. show AUTOCONF6 in the flags line. -inet6 turns IFXF_AUTOCONF6 off as well. ok stsp benno florian bluhm
Revision 1.285 / (download) - annotate - [select for diffs], Thu Jul 10 14:32:28 2014 UTC (9 years, 10 months ago) by stsp
Branch: MAIN
Changes since 1.284: +13 -1 lines
Diff to previous 1.284 (colored)
Return RSN (WPA) information to userland during wireless scan, and make ifconfig show whether a wireless network uses WEP or WPA. Since struct ieee80211_nodereq grows in size old ifconfig won't be able to scan when running on a new kernel. While here, add missing ioctl constant IEEE80211_WPA_CIPHER_BIP. ok jsg@
Revision 1.284 / (download) - annotate - [select for diffs], Mon Jun 23 18:44:43 2014 UTC (9 years, 11 months ago) by henning
Branch: MAIN
Changes since 1.283: +2 -1 lines
Diff to previous 1.283 (colored)
make "ifconfig <if> inet6 eui64" reset the NOINET6 flag (unconditionally), so a link-local will be assigned if there isn't one yet. ok krw benno todd sthen
Revision 1.283 / (download) - annotate - [select for diffs], Mon May 12 08:47:37 2014 UTC (10 years ago) by beck
Branch: MAIN
Changes since 1.282: +33 -1 lines
Diff to previous 1.282 (colored)
Make ifconfig do something intelligent based on the required length of WEP keys rather then being silently dumb, so when using WEP: 1) If the key is a plausible size try to use it. 2) If they key would be a plausible size with '0x' in front of it, add that. 3) If the key is not a plausible size, emit a warning and do not try to use it. ok sthen@
Revision 1.282 / (download) - annotate - [select for diffs], Wed Mar 5 20:46:50 2014 UTC (10 years, 2 months ago) by tedu
Branch: MAIN
Changes since 1.281: +11 -11 lines
Diff to previous 1.281 (colored)
fix a null test, from remco. and then modernize some other function pointer calls.
Revision 1.281 / (download) - annotate - [select for diffs], Tue Jan 21 21:27:14 2014 UTC (10 years, 4 months ago) by benno
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE,
OPENBSD_5_5
Changes since 1.280: +4 -3 lines
Diff to previous 1.280 (colored)
allow pflow(4) to determine the src IP address based on the route table if flowsrc is not set. Now works with new udp checksum code. From Nathanael Rensen (nathanael.openbsd AT list DOT polymorpheus DOT com), tweak and ok florian@
Revision 1.280 / (download) - annotate - [select for diffs], Sun Dec 1 10:05:29 2013 UTC (10 years, 6 months ago) by stsp
Branch: MAIN
Changes since 1.279: +6 -5 lines
Diff to previous 1.279 (colored)
Make ifconfig scan show the nwid, channel, and bssid for IBSS networks. These were only shown for access points, so getting useful information about IBSS networks in the area was somewhat difficult. ok deraadt
Revision 1.279 / (download) - annotate - [select for diffs], Fri Nov 22 04:12:47 2013 UTC (10 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.278: +14 -11 lines
Diff to previous 1.278 (colored)
Whole bunch of (unsigned char) casts carefully added for ctype calls. Careful second audit by millert
Revision 1.278 / (download) - annotate - [select for diffs], Thu Nov 21 17:24:34 2013 UTC (10 years, 6 months ago) by millert
Branch: MAIN
Changes since 1.277: +6 -6 lines
Diff to previous 1.277 (colored)
Make the bit string unsigned char * in printb() and printb_status(). In practice we shouldn't have chars > 127 in these but it is better not to assume this. OK deraadt@
Revision 1.277 / (download) - annotate - [select for diffs], Tue Nov 12 04:59:02 2013 UTC (10 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.276: +5 -1 lines
Diff to previous 1.276 (colored)
add a variety of missing prototypes
Revision 1.276 / (download) - annotate - [select for diffs], Tue Nov 5 21:04:52 2013 UTC (10 years, 6 months ago) by bluhm
Branch: MAIN
Changes since 1.275: +3 -2 lines
Diff to previous 1.275 (colored)
Fix ifconfig with IPv6 tunnel addresses which was broken by the vxlan(4) commit. found by todd@; OK reyk@
Revision 1.275 / (download) - annotate - [select for diffs], Mon Oct 28 15:05:35 2013 UTC (10 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.274: +4 -4 lines
Diff to previous 1.274 (colored)
use %d instead of %i in a few fprintf for clarity
Revision 1.274 / (download) - annotate - [select for diffs], Thu Oct 17 16:27:39 2013 UTC (10 years, 7 months ago) by bluhm
Branch: MAIN
Changes since 1.273: +2 -1 lines
Diff to previous 1.273 (colored)
The header file netinet/in_var.h included netinet6/in6_var.h. This created a bunch of useless dependencies. Remove this implicit inclusion and do an explicit #include <netinet6/in6_var.h> when it is needed. OK mpi@ henning@
Revision 1.273 / (download) - annotate - [select for diffs], Sun Oct 13 12:19:30 2013 UTC (10 years, 7 months ago) by reyk
Branch: MAIN
Changes since 1.272: +10 -12 lines
Diff to previous 1.272 (colored)
whitespace
Revision 1.272 / (download) - annotate - [select for diffs], Sun Oct 13 10:10:00 2013 UTC (10 years, 7 months ago) by reyk
Branch: MAIN
Changes since 1.271: +66 -3 lines
Diff to previous 1.271 (colored)
Import vxlan(4), the virtual extensible local area network tunnel interface. VXLAN is a UDP-based tunnelling protocol for overlaying virtualized layer 2 networks over layer 3 networks. The implementation is based on draft-mahalingam-dutt-dcops-vxlan-04 and has been tested with other implementations in the wild. put it in deraadt@
Revision 1.271 / (download) - annotate - [select for diffs], Wed Oct 9 20:23:46 2013 UTC (10 years, 7 months ago) by reyk
Branch: MAIN
Changes since 1.270: +2 -2 lines
Diff to previous 1.270 (colored)
Change "physical address" to "tunnel:" in ifconfig's tunnel address output. This is more consistent with the current ifconfig style and matches the "tunnel" configuration command. ok claudio@ jmc@ deraadt@
Revision 1.270 / (download) - annotate - [select for diffs], Fri Sep 13 14:32:53 2013 UTC (10 years, 8 months ago) by florian
Branch: MAIN
Changes since 1.269: +9 -4 lines
Diff to previous 1.269 (colored)
pflow(4) does not work without flowsrc set. OK benno@
Revision 1.269 / (download) - annotate - [select for diffs], Mon Aug 19 11:20:57 2013 UTC (10 years, 9 months ago) by dcoppa
Branch: MAIN
Changes since 1.268: +2 -1 lines
Diff to previous 1.268 (colored)
Add missing util.h ok otto@ mpi@ mikeb@
Revision 1.268 / (download) - annotate - [select for diffs], Fri Aug 16 12:29:17 2013 UTC (10 years, 9 months ago) by mpi
Branch: MAIN
Changes since 1.267: +13 -13 lines
Diff to previous 1.267 (colored)
Replace the misleading SIOC{G,S}IFGENERIC ioctls by SIOCG{G,S}PPPPARAMS. This is another ABI break but no port rely on them as verified by naddy@. ok claudio@, mikeb@, henning@
Revision 1.267 / (download) - annotate - [select for diffs], Tue Jul 16 08:21:10 2013 UTC (10 years, 10 months ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE,
OPENBSD_5_4
Changes since 1.266: +2 -2 lines
Diff to previous 1.266 (colored)
Make sure the ioctl(2) has been processed by sppp(4) before printing any phase error. This prevents ifconfig(8) from priting 'sppp: phase...' messages for vlan(4) interfaces attached to interfaces with a long name. A better fix should be cooked because various pseudo-interfaces still use the same set of ioctl(2)s for different purposes. Issue reported by jca@, ok claudio@, jca@
Revision 1.266 / (download) - annotate - [select for diffs], Wed Jul 10 07:46:10 2013 UTC (10 years, 10 months ago) by mpi
Branch: MAIN
Changes since 1.265: +3 -15 lines
Diff to previous 1.265 (colored)
Change the structure used in the SPPPIOSDEFS and SPPPIOGDEFS ioctls to only include what is really needed. In particular stop including a "struct ifnet" and move kernel-only definition into the proper #if dance. While here remove the unused spppinfo() from ifconfig. ok guenther@, sthen@, mikeb@
Revision 1.265 / (download) - annotate - [select for diffs], Tue Jul 2 14:25:08 2013 UTC (10 years, 11 months ago) by bluhm
Branch: MAIN
Changes since 1.264: +2 -2 lines
Diff to previous 1.264 (colored)
Long passwords could not be replaced completely with shorter passwords. ioctl(SIOCGVH) fills the carpr_key with the old value. strlcpy() overwrites only the beginning of the key. Add a bzero() to clear the rest. Testing Jan Klemkow; OK florian@ mpf@
Revision 1.264 / (download) - annotate - [select for diffs], Fri May 31 19:56:06 2013 UTC (11 years ago) by yasuoka
Branch: MAIN
Changes since 1.263: +4 -4 lines
Diff to previous 1.263 (colored)
Correct the range checks in ifconfig properly for vhid, advbase and advskew. Clarify about the ranges in the man page. ok mpf mcbride
Revision 1.263 / (download) - annotate - [select for diffs], Thu Apr 25 06:41:46 2013 UTC (11 years, 1 month ago) by otto
Branch: MAIN
Changes since 1.262: +2 -2 lines
Diff to previous 1.262 (colored)
fix format string; found while scaning the tree for time_t/ino_t problems; ok deraadt@ krw@
Revision 1.262 / (download) - annotate - [select for diffs], Fri Apr 19 18:11:13 2013 UTC (11 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.261: +7 -9 lines
Diff to previous 1.261 (colored)
remove comment about "make gcc happy" for variables which WERE being used uninitialized... clean up time related variables too for 2038++ ok millert
Revision 1.261 / (download) - annotate - [select for diffs], Wed Apr 3 16:28:10 2013 UTC (11 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.260: +5 -36 lines
Diff to previous 1.260 (colored)
handle larger time_t types; toss some unused code ok guenther
Revision 1.260 / (download) - annotate - [select for diffs], Tue Dec 4 14:54:32 2012 UTC (11 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE,
OPENBSD_5_3
Changes since 1.259: +13 -20 lines
Diff to previous 1.259 (colored)
add group support back (for the ramdisk version) spotted by rpe and sthen; ok krw
Revision 1.259 / (download) - annotate - [select for diffs], Tue Dec 4 04:48:10 2012 UTC (11 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.258: +2 -2 lines
Diff to previous 1.258 (colored)
only needs sys/types.h not sys/param.h
Revision 1.258 / (download) - annotate - [select for diffs], Fri Nov 23 20:12:38 2012 UTC (11 years, 6 months ago) by sthen
Branch: MAIN
Changes since 1.257: +6 -1 lines
Diff to previous 1.257 (colored)
Display hardmtu value when "ifconfig hwfeatures" is used. Looks fine reyk@ ok mikeb@
Revision 1.257 / (download) - annotate - [select for diffs], Thu Sep 6 19:41:59 2012 UTC (11 years, 8 months ago) by tedu
Branch: MAIN
Changes since 1.256: +1 -2 lines
Diff to previous 1.256 (colored)
move pkcs5_pbkdf5 function to libutil so everybody can play with it ok deraadt jsing matthew
Revision 1.256 / (download) - annotate - [select for diffs], Tue Aug 21 19:50:39 2012 UTC (11 years, 9 months ago) by bluhm
Branch: MAIN
Changes since 1.255: +3 -3 lines
Diff to previous 1.255 (colored)
Reverse the name and meaning of the IFXF_INET6_PRIVACY interface flag. It is now called IFXF_INET6_NOPRIVACY. So IPv6 privacy addresses are on by default without resetting the flag during ifconfig down/up. OK stsp@, sperreault@ (who wrote the same diff)
Revision 1.255 / (download) - annotate - [select for diffs], Sun Apr 15 03:10:43 2012 UTC (12 years, 1 month ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE,
OPENBSD_5_2
Changes since 1.254: +4 -2 lines
Diff to previous 1.254 (colored)
fix a leak ok krw@
Revision 1.254 / (download) - annotate - [select for diffs], Thu Feb 2 12:34:37 2012 UTC (12 years, 4 months ago) by benno
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE,
OPENBSD_5_1
Changes since 1.253: +33 -2 lines
Diff to previous 1.253 (colored)
add netflow v9/ipfix support to pflow(4). large parts written by Florian Obser (florian -at- narrans -dot- de). feedback from sperreault@ gollo@ sthen@ ok from gollo@ dlg@ henning@
Revision 1.253 / (download) - annotate - [select for diffs], Sun Dec 4 06:26:10 2011 UTC (12 years, 6 months ago) by haesbaert
Branch: MAIN
Changes since 1.252: +4 -4 lines
Diff to previous 1.252 (colored)
Cleanup recently removed flags from ifconfig.c and its manpage. ok jmc@ mikeb@
Revision 1.252 / (download) - annotate - [select for diffs], Sat Nov 26 23:38:18 2011 UTC (12 years, 6 months ago) by haesbaert
Branch: MAIN
Changes since 1.251: +3 -39 lines
Diff to previous 1.251 (colored)
Tie the 802.1p (CoS) value in vlan(4) with the new prio scheme in pf. When transmitting through vlan(4), it will now use the prio value in pf packet header. When receiving, we save the incoming Cos in the same place, this gives us the hability to preserve the CoS value across two different vlan interfaces. This kills the SIOC[GS]VLANPRIO ioctls and removes the corresponding buttons from ifconfig(8). ok henning@ claudio@ mcbride@
Revision 1.251 / (download) - annotate - [select for diffs], Wed Nov 2 02:03:47 2011 UTC (12 years, 7 months ago) by haesbaert
Branch: MAIN
Changes since 1.250: +32 -1 lines
Diff to previous 1.250 (colored)
Expose if_capabilities to userland so that ifconfig can display the device hardware features. Tune ifconfig to show them with 'hwfeatures' argument. While here, kill some old unused capabilities and respect 80 columns in brconfig.h. ok mcbride@, henning@, mpf@.
Revision 1.250 / (download) - annotate - [select for diffs], Mon Sep 19 20:29:10 2011 UTC (12 years, 8 months ago) by henning
Branch: MAIN
Changes since 1.249: +0 -2 lines
Diff to previous 1.249 (colored)
kill prototypes for long removed functions, Rafael Sadowski <rafael at sizeofvoid.org>
Revision 1.249 / (download) - annotate - [select for diffs], Sun Aug 21 06:28:31 2011 UTC (12 years, 9 months ago) by haesbaert
Branch: MAIN
Changes since 1.248: +35 -39 lines
Diff to previous 1.248 (colored)
Remove old wpapsk entries. Cleanup casts and use timerclear. ok mcbride
Revision 1.248 / (download) - annotate - [select for diffs], Sat Jul 9 00:45:40 2011 UTC (12 years, 10 months ago) by henning
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE,
OPENBSD_5_0
Changes since 1.247: +1 -135 lines
Diff to previous 1.247 (colored)
rmove rotten netatalk bits
Revision 1.247 / (download) - annotate - [select for diffs], Thu May 26 13:10:11 2011 UTC (13 years ago) by sthen
Branch: MAIN
Changes since 1.246: +4 -8 lines
Diff to previous 1.246 (colored)
Don't provide an af hint to getaddrinfo in settunnel(), this function already checks that families of source and destination addresses match and that's all we need. This allows "ifconfig foo tunnel 1::1 2::2" syntax rather than requiring "ifconfig foo inet6 tunnel 1::1 2::2", which in turn allows hostname.if files to create an IPv4-in-IPv6 tunnel without games with shell escapes. ok dcoppa@, seems ok todd@, "Yes, yes and yes" claudio@
Revision 1.246 / (download) - annotate - [select for diffs], Wed Mar 23 18:36:41 2011 UTC (13 years, 2 months ago) by jsg
Branch: MAIN
Changes since 1.245: +2 -2 lines
Diff to previous 1.245 (colored)
use the define for max rdomain with tunneldomain as well ok claudio@
Revision 1.245 / (download) - annotate - [select for diffs], Sun Mar 13 15:31:41 2011 UTC (13 years, 2 months ago) by stsp
Branch: MAIN
Changes since 1.244: +5 -1 lines
Diff to previous 1.244 (colored)
Add a way to enable/disable Wake On LAN with ifconfig. ok deraadt
Revision 1.244 / (download) - annotate - [select for diffs], Tue Mar 1 09:37:31 2011 UTC (13 years, 3 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE,
OPENBSD_4_9
Changes since 1.243: +95 -45 lines
Diff to previous 1.243 (colored)
Introduce a dummy function in the SMALL case to digest arguments like "rdomain", "description", etc. so that the ifconfig on ramdisk is able to parse hostname.if files on updates. OK deraadt@
Revision 1.243 / (download) - annotate - [select for diffs], Thu Feb 17 06:46:30 2011 UTC (13 years, 3 months ago) by camield
Branch: MAIN
Changes since 1.242: +3 -3 lines
Diff to previous 1.242 (colored)
0-4095 inclusive is the correct (12 bit) vlan range ok henning claudio miod
Revision 1.242 / (download) - annotate - [select for diffs], Tue Nov 9 21:14:47 2010 UTC (13 years, 6 months ago) by jsg
Branch: MAIN
Changes since 1.241: +2 -2 lines
Diff to previous 1.241 (colored)
when setting the rdomain, use the same define as the kernel for the maximum route-id instead of a currently incorrect number ok claudio@
Revision 1.241 / (download) - annotate - [select for diffs], Mon Nov 1 05:24:58 2010 UTC (13 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.240: +27 -45 lines
Diff to previous 1.240 (colored)
add support for (full length only) hex keys to the wpakey code. for the remainder of the 4.8->4.9 transition, alias wpapsk to wpakey (since it swings both ways) ok damien halex tedu
Revision 1.240 / (download) - annotate - [select for diffs], Mon Oct 18 04:10:57 2010 UTC (13 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.239: +54 -1 lines
Diff to previous 1.239 (colored)
Add wpakey/-wpakey options. This was originally written by halex and has gone many times around now (it is smaller now). man page diff coming soon. Fits onto the media that need it. ok halex
Revision 1.239 / (download) - annotate - [select for diffs], Sat Jul 3 04:44:51 2010 UTC (13 years, 11 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE,
OPENBSD_4_8
Changes since 1.238: +7 -7 lines
Diff to previous 1.238 (colored)
Fix the naming of interfaces and variables for rdomains and rtables and make it possible to bind sockets (including listening sockets!) to rtables and not just rdomains. This changes the name of the system calls, socket option, and ioctl. After building with this you should remove the files /usr/share/man/cat2/[gs]etrdomain.0. Since this removes the existing [gs]etrdomain() system calls, the libc major is bumped. Written by claudio@, criticized^Wcritiqued by me
Revision 1.238 / (download) - annotate - [select for diffs], Fri Jul 2 22:03:40 2010 UTC (13 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.237: +7 -6 lines
Diff to previous 1.237 (colored)
make lint a bit happier
Revision 1.237 / (download) - annotate - [select for diffs], Sat Jun 26 19:51:12 2010 UTC (13 years, 11 months ago) by claudio
Branch: MAIN
Changes since 1.236: +46 -1 lines
Diff to previous 1.236 (colored)
Add a way to enable and set the keepalive parameters for gre(4). OK deraadt, reyk
Revision 1.236 / (download) - annotate - [select for diffs], Mon Jun 7 14:50:34 2010 UTC (13 years, 11 months ago) by claudio
Branch: MAIN
Changes since 1.235: +1 -2 lines
Diff to previous 1.235 (colored)
Oups, an unused prototype sneaked into ifconfig. Found by jsg@
Revision 1.235 / (download) - annotate - [select for diffs], Fri Jun 4 08:53:24 2010 UTC (14 years ago) by claudio
Branch: MAIN
Changes since 1.234: +12 -10 lines
Diff to previous 1.234 (colored)
Merge interface flags and xflags before printing them. So it is possible to see if a interface is using the INET6_PRIVACY or is MPLS enabled. If xflags uses more then 16 flags something else must be figured out. OK stsp@ deraadt@
Revision 1.234 / (download) - annotate - [select for diffs], Thu Jun 3 21:57:12 2010 UTC (14 years ago) by stsp
Branch: MAIN
Changes since 1.233: +1 -7 lines
Diff to previous 1.233 (colored)
Stop requiring the 'inet6' keyword when the 'autoconfprivacy' option is used. Simplifies enabling autoconf privacy from hostname.if files. A line such as 'rtsol autoconfprivacy' will now work, as documented in ifconfig(8). Pointed out by steven@. ok deraadt@ steven@ todd@
Revision 1.233 / (download) - annotate - [select for diffs], Fri May 28 12:20:06 2010 UTC (14 years ago) by claudio
Branch: MAIN
Changes since 1.232: +5 -1 lines
Diff to previous 1.232 (colored)
Add mpls/-mpls commands to enable MPLS label switching on an interface.
Revision 1.232 / (download) - annotate - [select for diffs], Thu May 6 12:58:40 2010 UTC (14 years ago) by claudio
Branch: MAIN
Changes since 1.231: +28 -4 lines
Diff to previous 1.231 (colored)
Print the link state for devices not having if_media support by looking at ifdata->ifi_link_state. Don't print in case of a unknown linkstate since some devices (lo0) just have none. OK sthen, dlg, blambert
Revision 1.231 / (download) - annotate - [select for diffs], Tue Apr 6 14:12:10 2010 UTC (14 years, 1 month ago) by stsp
Branch: MAIN
Changes since 1.230: +11 -1 lines
Diff to previous 1.230 (colored)
Simple implementation of RFC4941, "Privacy Extensions for Stateless Address Autoconfiguration in IPv6". For those among us who are paranoid about broadcasting their MAC address to the IPv6 internet. Man page help from jmc, testing by weerd, arc4random API hints from djm. ok deraadt, claudio
Revision 1.230 / (download) - annotate - [select for diffs], Sat Apr 3 03:13:01 2010 UTC (14 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.229: +3 -2 lines
Diff to previous 1.229 (colored)
On the random MAC address also turn off the 'local administered' bit, since it is our intent to deceive. Prompted by weerd. ok ckuethe
Revision 1.229 / (download) - annotate - [select for diffs], Fri Apr 2 21:16:24 2010 UTC (14 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.228: +12 -6 lines
Diff to previous 1.228 (colored)
randomized mac addresses, avaliable via 'ifconfig $if lladdr random'. Note that not all device drivers do the work of the SIOCSIFLLADDR ioctl correctly, but this is just more reason to get them fixed. ok beck kettenis
Revision 1.228 / (download) - annotate - [select for diffs], Sun Jan 10 03:58:14 2010 UTC (14 years, 4 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE,
OPENBSD_4_7
Changes since 1.227: +4 -4 lines
Diff to previous 1.227 (colored)
s/setpriority/setifpriority/ to eliminate a conflict with setpriority() To quote henning, 'ok gcc'
Revision 1.227 / (download) - annotate - [select for diffs], Tue Dec 22 17:48:49 2009 UTC (14 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.226: +5 -3 lines
Diff to previous 1.226 (colored)
re-adding a group that exists is not an error ok claudio
Revision 1.226 / (download) - annotate - [select for diffs], Mon Dec 14 17:22:58 2009 UTC (14 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.225: +2 -3 lines
Diff to previous 1.225 (colored)
make ifconfig return with failure of bridge_rule; ok claudio
Revision 1.225 / (download) - annotate - [select for diffs], Mon Dec 14 17:14:56 2009 UTC (14 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.224: +5 -4 lines
Diff to previous 1.224 (colored)
use strtonum() instead of atoi(). idea from Vladimir Kirillov, but had to rewrite it because it was another mangled diff in mail. When will people learn that the tabs and spaces are important?
Revision 1.224 / (download) - annotate - [select for diffs], Wed Dec 9 21:21:57 2009 UTC (14 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.223: +3 -2 lines
Diff to previous 1.223 (colored)
off by one in carp configuration; found by parfait, ok jsg
Revision 1.223 / (download) - annotate - [select for diffs], Sun Nov 22 22:00:24 2009 UTC (14 years, 6 months ago) by claudio
Branch: MAIN
Changes since 1.222: +70 -20 lines
Diff to previous 1.222 (colored)
Merge brconfig into ifconfig. It is annoying that it is impossible to do ifconfig bridge0 add em0 add gif0 add vether0 up instead you need to ifconfig bridge0 create brconfig bridge0 add em0 add gif0 add vether0 up This is working for everything now but we may do some changes when needed. Manpages and startup scripts are following soon. OK deraadt@, henning@
Revision 1.222 / (download) - annotate - [select for diffs], Sun Nov 22 18:45:19 2009 UTC (14 years, 6 months ago) by claudio
Branch: MAIN
Changes since 1.221: +4 -3 lines
Diff to previous 1.221 (colored)
Fix ifconfig -a vs. ifconfig -A and make ifconfig without any arg behave like ifconfig -a by setting the aflag to 1. Found with and OK deraadt@
Revision 1.221 / (download) - annotate - [select for diffs], Sat Nov 21 14:09:41 2009 UTC (14 years, 6 months ago) by claudio
Branch: MAIN
Changes since 1.220: +25 -2 lines
Diff to previous 1.220 (colored)
Add new option tunneldomain to ifconfig to specify the routing table to be used for sending out gre/gif encoded packets. OK deraadt@, henning@
Revision 1.220 / (download) - annotate - [select for diffs], Fri Jun 19 14:05:32 2009 UTC (14 years, 11 months ago) by henning
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE,
OPENBSD_4_6
Changes since 1.219: +2 -4 lines
Diff to previous 1.219 (colored)
after long discussion with many... ifconfig <if> inet6 used to print all inet6 addresses, and last not least the installer relies on that behaviour. so don't. to turn inet6 on again you have to assign any inet6 address or run rtsol. nobody happy about this asymmetry, but that is the best we could come up with for now.
Revision 1.219 / (download) - annotate - [select for diffs], Sun Jun 14 00:16:50 2009 UTC (14 years, 11 months ago) by dlg
Branch: MAIN
Changes since 1.218: +22 -2 lines
Diff to previous 1.218 (colored)
enable support for deferring the packet that creates a state so that your sync peers are able to get the states before the replies. previously there was a race where the reply could hit a partner firewall before it had the state for it, which caused the reply to get processed by the ruleset which probably would drop it. this behaviour is off by default because it does delay packets, which is only wanted in active-active firewalls or when an upstream router is slow to learn that you're moved the active member of the pfsync cluster. it also uses memory keeping the packets in the kernel. use "ifconfig pfsync0 defer" to enable it, "ifconfig pfsync0 -defer" to disable. tested by sthen@ who loves it. he's got manpage changes coming up for me.
Revision 1.218 / (download) - annotate - [select for diffs], Thu Jun 11 20:15:28 2009 UTC (14 years, 11 months ago) by chl
Branch: MAIN
Changes since 1.217: +1 -2 lines
Diff to previous 1.217 (colored)
remove unused variable ok claudio@
Revision 1.217 / (download) - annotate - [select for diffs], Fri Jun 5 00:06:52 2009 UTC (15 years ago) by claudio
Branch: MAIN
Changes since 1.216: +28 -2 lines
Diff to previous 1.216 (colored)
Make it possible to bind an interface to a rdomain. Manpage will follow soon.
Revision 1.216 / (download) - annotate - [select for diffs], Thu Jun 4 19:07:21 2009 UTC (15 years ago) by henning
Branch: MAIN
Changes since 1.215: +34 -2 lines
Diff to previous 1.215 (colored)
allow IPvShit to be turned off completely per-interface. ifconfig em0 -inet6 deletes all v6 addresses including link-local and prevents new ones from being added. ifconfig em0 inet6 <addr> re-enables v6, brings the link local back and adds optional <addr> ok theo reyk
Revision 1.215 / (download) - annotate - [select for diffs], Mon Apr 27 22:52:55 2009 UTC (15 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.214: +7 -1 lines
Diff to previous 1.214 (colored)
let vlan functionality make it into the -DSMALL ifconfig binary ok sthen
Revision 1.214 / (download) - annotate - [select for diffs], Mon Feb 16 20:04:12 2009 UTC (15 years, 3 months ago) by canacar
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE,
OPENBSD_4_5
Changes since 1.213: +57 -43 lines
Diff to previous 1.213 (colored)
Allow username and password to be up to 255 characters in length. Tested by many, thanks. Put it in" deraadt@
Revision 1.213 / (download) - annotate - [select for diffs], Sun Feb 15 08:34:36 2009 UTC (15 years, 3 months ago) by damien
Branch: MAIN
Changes since 1.212: +56 -35 lines
Diff to previous 1.212 (colored)
make "ifconfig if0 chan" list the channels supported by the device. add "ifconfig if0 scan" to scan for access points or to list known stations in Host AP mode. remove the [-]wmm command while i'm here. QoS is mandatory with 802.11n so there's not much point into making it an option. fix parsing of the "powersave" command too. discussed with deraadt@ man page hints from jmc@ display hints from sobrado@ "i like it" cnst@, grange@
Revision 1.212 / (download) - annotate - [select for diffs], Fri Feb 13 17:24:54 2009 UTC (15 years, 3 months ago) by damien
Branch: MAIN
Changes since 1.211: +3 -3 lines
Diff to previous 1.211 (colored)
Change ifconfig wpaakms default setting to `psk' instead of `psk,802.1x'. Some supplicants will autoselect 802.1X without giving users the possibility to choose between PSK or 802.1X. Similarly, no longer announce `PSK with SHA-256 based KDF' AKMP (defined in Draft 802.11w) by default in the RSN IE of beacons and probe responses as it confuses some broken supplicants. This kind of sacrifies security for interoperability with shitty (but unfortunately widespread) clients that do not follow the 802.11 standard properly. This fixes associations from Intel PROSet on XP and also reportedly fixes some Mac OS clients. I will likely make `psk-sha256' configurable through ifconfig wpaakms after the 4.5 release.
Revision 1.211 / (download) - annotate - [select for diffs], Fri Feb 6 22:07:04 2009 UTC (15 years, 3 months ago) by grange
Branch: MAIN
Changes since 1.210: +7 -7 lines
Diff to previous 1.210 (colored)
Remove bogus casts of integer constants SPPPIO[GS]DEFS to caddr_t and fix typo while here. ok canacar@
Revision 1.210 / (download) - annotate - [select for diffs], Mon Dec 15 15:50:30 2008 UTC (15 years, 5 months ago) by fgsch
Branch: MAIN
Changes since 1.209: +1 -3 lines
Diff to previous 1.209 (colored)
remove unused vars; damien@ ok.
Revision 1.209 / (download) - annotate - [select for diffs], Fri Dec 12 22:09:26 2008 UTC (15 years, 5 months ago) by claudio
Branch: MAIN
Changes since 1.208: +26 -1 lines
Diff to previous 1.208 (colored)
ifconfig(8) part to make it possible to set an interface priority. OK deraadt@
Revision 1.208 / (download) - annotate - [select for diffs], Mon Nov 24 04:30:32 2008 UTC (15 years, 6 months ago) by stevesk
Branch: MAIN
Changes since 1.207: +2 -2 lines
Diff to previous 1.207 (colored)
remove trailing "\n" from errx()
Revision 1.207 / (download) - annotate - [select for diffs], Mon Nov 17 22:23:14 2008 UTC (15 years, 6 months ago) by mpf
Branch: MAIN
Changes since 1.206: +7 -3 lines
Diff to previous 1.206 (colored)
Fix printing of partner link aggregation group ID. OK brad@
Revision 1.206 / (download) - annotate - [select for diffs], Tue Sep 30 13:11:48 2008 UTC (15 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.205: +8 -24 lines
Diff to previous 1.205 (colored)
compress powersleep commands into one; ok damien
Revision 1.205 / (download) - annotate - [select for diffs], Tue Sep 9 20:45:23 2008 UTC (15 years, 8 months ago) by reyk
Branch: MAIN
Changes since 1.204: +8 -13 lines
Diff to previous 1.204 (colored)
fix printing by group name (eg. ifconfig em), do not abort in the initial getinfo(), and remove a few superfluous warnings there. ok deraadt@
Revision 1.204 / (download) - annotate - [select for diffs], Tue Sep 9 13:56:38 2008 UTC (15 years, 8 months ago) by henning
Branch: MAIN
Changes since 1.203: +135 -1 lines
Diff to previous 1.203 (colored)
welcome pflow(4), a netflow v5 compatible flow export interface. flows export data gathered from pf states. initial implementation by Joerg Goltermann <jg@osn.de>, guidance and many changes by me. 'put it in' theo
Revision 1.203 / (download) - annotate - [select for diffs], Sun Sep 7 02:22:34 2008 UTC (15 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.202: +68 -37 lines
Diff to previous 1.202 (colored)
Allow some set-style commands to have zero arguments. If there is an argument after that command, check if it is a keyword, and if it is, that means the original command really has no argument. Get it? Now.. replace -m with media (no options), and -M with chan (no options). Try 'ifconfig -a media chan' on a wireless & ethernet machine after this. ok henning, reyk, thanks for the comments from others
Revision 1.202 / (download) - annotate - [select for diffs], Thu Jul 17 08:14:24 2008 UTC (15 years, 10 months ago) by sthen
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE,
OPENBSD_4_4
Changes since 1.201: +2 -2 lines
Diff to previous 1.201 (colored)
Pasto in error message for setspppkey() ok mbalmer@
Revision 1.201 / (download) - annotate - [select for diffs], Thu Jun 26 05:42:06 2008 UTC (15 years, 11 months ago) by ray
Branch: MAIN
Changes since 1.200: +1 -8 lines
Diff to previous 1.200 (colored)
First pass at removing clauses 3 and 4 from NetBSD licenses. Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
Revision 1.200 / (download) - annotate - [select for diffs], Sun Jun 15 06:56:09 2008 UTC (15 years, 11 months ago) by mpf
Branch: MAIN
Changes since 1.199: +15 -1 lines
Diff to previous 1.199 (colored)
Add 802.3ad LACP support for trunk(4). Implementation from NetBSD. Ported via FreeBSD's version in trunk^Wlagg(4). This is still work in progress. Tested with a HP ProCurve 3500. OK reyk@
Revision 1.199 / (download) - annotate - [select for diffs], Sat Jun 14 21:46:22 2008 UTC (15 years, 11 months ago) by reyk
Branch: MAIN
Changes since 1.198: +68 -5 lines
Diff to previous 1.198 (colored)
add carppeer; an option to specify a different multicast address or even the unicast address of the remote carp peer. this especially helps when the multicast carp advertisements are causing problems in the network (some crappy switches don't do well with multicast), there are conflicts with VRRP, or the policy of the network does not allow multicast (most Internet eXchange points didn't allow carped OpenBGP routers because of the multicast advertisements). discussed with many ok mpf@
Revision 1.198 / (download) - annotate - [select for diffs], Fri Jun 13 06:58:20 2008 UTC (15 years, 11 months ago) by reyk
Branch: MAIN
Changes since 1.197: +2 -2 lines
Diff to previous 1.197 (colored)
INADDR_PFSYNC_GROUP is defined as network byte order in the kernel but as host byte order in userland. ifconfig didn't get this and always printed the pfsync syncpeer on little endian machines because the check to prevent printing the default address assumed the wrong byte order. ok claudio@ rainer@
Revision 1.197 / (download) - annotate - [select for diffs], Tue May 6 13:33:50 2008 UTC (16 years ago) by pyr
Branch: MAIN
Changes since 1.196: +36 -1 lines
Diff to previous 1.196 (colored)
bring in the mpe interface - for ``MPLS Provider Edge'' - this is a work in progress and some bits need to be cleaned up but will be in-tree for convenience. ok claudio@, norby@
Revision 1.196 / (download) - annotate - [select for diffs], Tue May 6 12:13:57 2008 UTC (16 years ago) by markus
Branch: MAIN
Changes since 1.195: +3 -1 lines
Diff to previous 1.195 (colored)
print IN6_IFF_AUTOCONF flag, too; ok henning some time ago
Revision 1.195 / (download) - annotate - [select for diffs], Wed Apr 16 18:32:15 2008 UTC (16 years, 1 month ago) by damien
Branch: MAIN
Changes since 1.194: +270 -5 lines
Diff to previous 1.194 (colored)
Kernel implementation of the 4-way handshake and group-key handshake protocols (both supplicant and authenticator state machines) as defined in the IEEE 802.11i standard. Software implementation of the TKIP (Temporal Key Integrity Protocol) and CCMP (CTR with CBC-MAC Protocol) protocols. This diff doesn't implement any of the 802.1X authentication protocols and thus only PSK authentication (using pre-shared keys) is currently supported. In concrete terms, this adds support for WPA-PSK and WPA2-PSK protocols, both in station and hostap modes. The following drivers are marked as WPA-capable and should work: bwi(4), malo(4), ral(4), iwn(4), wpi(4), ural(4), rum(4), upgt(4), and zyd(4) The following options have been added to ifconfig(8): wpa, wpapsk, wpaprotos, wpaakms, wpaciphers, wpagroupcipher wpa-psk(8) can be used to generate keys from passphrases. tested by many@ ok deraadt@
Revision 1.194 / (download) - annotate - [select for diffs], Sat Mar 29 18:56:43 2008 UTC (16 years, 2 months ago) by damien
Branch: MAIN
Changes since 1.193: +8 -7 lines
Diff to previous 1.193 (colored)
fix a free(NULL) in setcarp_nodes(). ok mpf@, chl@ "i agree with the diagnosis" oga@
Revision 1.193 / (download) - annotate - [select for diffs], Tue Feb 5 22:57:30 2008 UTC (16 years, 3 months ago) by mpf
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE,
OPENBSD_4_3
Changes since 1.192: +41 -7 lines
Diff to previous 1.192 (colored)
Move carp load balancing (ARP/IP) to a simpler configuration scheme. Instead of using the same IP on multiple interfaces, carp has to be configured with the new "carpnodes" and "balancing" options. # ifconfig carp0 carpnodes 1:0,2:100,3:100 balancing ip carpdev sis0 192.168.5.50 Please note, that this is a flag day for anyone using carp balancing. You'll need to adjust your configuration accordingly. Addititionally this diff adds IPv6 NDP balancing support. Tested and OK mcbride@, reyk@. Manpage help by jmc@.
Revision 1.192 / (download) - annotate - [select for diffs], Tue Nov 27 16:21:02 2007 UTC (16 years, 6 months ago) by chl
Branch: MAIN
Changes since 1.191: +4 -4 lines
Diff to previous 1.191 (colored)
fix format strings ok mpf@
Revision 1.191 / (download) - annotate - [select for diffs], Tue Nov 27 13:15:42 2007 UTC (16 years, 6 months ago) by chl
Branch: MAIN
Changes since 1.190: +3 -3 lines
Diff to previous 1.190 (colored)
fix format strings ok mpf@ henning@
Revision 1.190 / (download) - annotate - [select for diffs], Thu Nov 22 01:21:40 2007 UTC (16 years, 6 months ago) by mpf
Branch: MAIN
Changes since 1.189: +71 -11 lines
Diff to previous 1.189 (colored)
Factor out the virtual host portion of carp into a separate struct that is kept in a list per carp interface. This is the huge first step necessary to make carp load balancing nice and easy. One carp interface can now contain up to 32 virtual host instances. This doesn't do anything useful yet, but here is how an ifconfig for multiple entries now looks like: # ifconfig carp2 carpnodes 5:0,6:100 192.168.5.88 carp2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 lladdr 00:00:5e:00:01:05 carp: carpdev sis0 advbase 1 state MASTER vhid 5 advskew 0 state BACKUP vhid 6 advskew 100 groups: carp inet 192.168.5.88 netmask 0xffffff00 broadcast 192.168.5.255 OK mcbride@
Revision 1.189 / (download) - annotate - [select for diffs], Wed Oct 31 21:13:41 2007 UTC (16 years, 7 months ago) by mikeb
Branch: MAIN
Changes since 1.188: +3 -2 lines
Diff to previous 1.188 (colored)
Don't leak potentially secret authname through ioctl interface. Suggestions from mpf@ and canacar@ ok deraadt mpf canacar
Revision 1.188 / (download) - annotate - [select for diffs], Tue Oct 9 21:41:54 2007 UTC (16 years, 7 months ago) by joel
Branch: MAIN
Changes since 1.187: +2 -2 lines
Diff to previous 1.187 (colored)
Fix range check for carp vhid: vhid 0 isn't valid
Revision 1.187 / (download) - annotate - [select for diffs], Sun Sep 2 15:19:23 2007 UTC (16 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.186: +3 -3 lines
Diff to previous 1.186 (colored)
use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsg
Revision 1.186 / (download) - annotate - [select for diffs], Sat Aug 25 20:05:30 2007 UTC (16 years, 9 months ago) by henning
Branch: MAIN
Changes since 1.185: +3 -1 lines
Diff to previous 1.185 (colored)
missing free, Igor Zinovik <zinovik@cs.karelia.ru>
Revision 1.185 / (download) - annotate - [select for diffs], Tue Jul 31 06:37:48 2007 UTC (16 years, 10 months ago) by pyr
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE,
OPENBSD_4_2
Changes since 1.184: +14 -6 lines
Diff to previous 1.184 (colored)
When setting the vlandevice without specifying a tag, infer the tag from the interface name, this allows constructs like: ifconfig vlan15 vlandev smth0 ok reyk@, ``makes sense'' henning@
Revision 1.184 / (download) - annotate - [select for diffs], Mon Jul 30 14:13:29 2007 UTC (16 years, 10 months ago) by pyr
Branch: MAIN
Changes since 1.183: +3 -2 lines
Diff to previous 1.183 (colored)
strlen returns size_t. ok henning, mbalmer.
Revision 1.183 / (download) - annotate - [select for diffs], Mon Jul 30 12:34:30 2007 UTC (16 years, 10 months ago) by pyr
Branch: MAIN
Changes since 1.182: +3 -3 lines
Diff to previous 1.182 (colored)
avoid segfault when empty string is passed as interface name. ok henning@
Revision 1.182 / (download) - annotate - [select for diffs], Tue Jun 19 06:24:28 2007 UTC (16 years, 11 months ago) by pyr
Branch: MAIN
Changes since 1.181: +13 -1 lines
Diff to previous 1.181 (colored)
Allow IPv6 addresses to use the CIDR notation too, no need for separate prefixlen specification when using this form. man page bits by jmc. ok henning@, ``looks sane'' djm@.
Revision 1.181 / (download) - annotate - [select for diffs], Thu Jun 14 18:31:50 2007 UTC (16 years, 11 months ago) by reyk
Branch: MAIN
Changes since 1.180: +17 -1 lines
Diff to previous 1.180 (colored)
Add a new "rtlabel" option to ifconfig. It allows to specify a route label which will be used for new interface routes. For example, ifconfig em0 10.1.1.0 255.255.255.0 rtlabel RING_1 will set the new interface address and attach the route label RING_1 to the corresponding route. manpage bits from jmc@ ok claudio@ henning@
Revision 1.180 / (download) - annotate - [select for diffs], Wed Jun 13 06:46:26 2007 UTC (16 years, 11 months ago) by henning
Branch: MAIN
Changes since 1.179: +14 -3 lines
Diff to previous 1.179 (colored)
allow IPv4 addresses to be specified in CIDR notation, no need for seperate mask in that case. initially from rivo nurges <rix@estpak.ee>, but changed quite a bit. this has annoyed me so long that I wonder why I hadn't fixed that earlier... input & ok markus deraadt, manpage also jmc
Revision 1.179 / (download) - annotate - [select for diffs], Tue Jun 5 21:14:07 2007 UTC (17 years ago) by kurt
Branch: MAIN
Changes since 1.178: +2 -123 lines
Diff to previous 1.178 (colored)
remove support for ipx. okay claudio@
Revision 1.178 / (download) - annotate - [select for diffs], Sat May 26 01:02:53 2007 UTC (17 years ago) by krw
Branch: MAIN
Changes since 1.177: +2 -2 lines
Diff to previous 1.177 (colored)
When the SIOCGIFMEDIA ioctl fails, don't report a problem with 'SGIOCGIFMEDIA'. Noticed by Stuart Henderson.
Revision 1.177 / (download) - annotate - [select for diffs], Wed Nov 15 01:53:00 2006 UTC (17 years, 6 months ago) by itojun
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE,
OPENBSD_4_1
Changes since 1.176: +2 -13 lines
Diff to previous 1.176 (colored)
remove KAME_SCOPEID #ifdef. __KAME__ should suffice (__KAME__ should be nuked too?)
Revision 1.176 / (download) - annotate - [select for diffs], Fri Nov 10 20:04:24 2006 UTC (17 years, 6 months ago) by mk
Branch: MAIN
Changes since 1.175: +11 -4 lines
Diff to previous 1.175 (colored)
Add -nwid command to allow wireless interfaces to not prefer a specific access point. Does the same as nwid "" but since we have -nwkey for nwkey etc. this is nice for consistency. ok mbalmer reyk man stuff also ok jmc
Revision 1.175 / (download) - annotate - [select for diffs], Sat Sep 30 23:44:17 2006 UTC (17 years, 8 months ago) by ray
Branch: MAIN
Changes since 1.174: +2 -2 lines
Diff to previous 1.174 (colored)
Don't use uninitialized variable. From Peter Philipp <peter underscore philipp at freenet dot de>. OK deraadt@.
Revision 1.174 / (download) - annotate - [select for diffs], Tue Aug 29 17:22:00 2006 UTC (17 years, 9 months ago) by henning
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE,
OPENBSD_4_0
Changes since 1.173: +10 -2 lines
Diff to previous 1.173 (colored)
allow a numeric argument to "carpdemote" to in-/decrease the demotion counter by more than one. manpage help by jmc, ok mcbride mpf deraadt
Revision 1.173 / (download) - annotate - [select for diffs], Fri Aug 18 08:21:08 2006 UTC (17 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.172: +6 -9 lines
Diff to previous 1.172 (colored)
make non-root -M use not cut ifconfig output; ok jsg
Revision 1.172 / (download) - annotate - [select for diffs], Wed Aug 2 07:38:33 2006 UTC (17 years, 10 months ago) by grunk
Branch: MAIN
Changes since 1.171: +15 -15 lines
Diff to previous 1.171 (colored)
remove trailing blanks in output of ieee80211_status() as well. help from claudio@, and ok claudio@ mickey@ mpf@
Revision 1.171 / (download) - annotate - [select for diffs], Tue Jul 25 13:59:17 2006 UTC (17 years, 10 months ago) by grunk
Branch: MAIN
Changes since 1.170: +7 -7 lines
Diff to previous 1.170 (colored)
ifconfig output contained trailing whites in inet and groups: lines fix that by rearranging spaces in printf format strings ok claudio@ mpf@ mickey@
Revision 1.170 / (download) - annotate - [select for diffs], Tue Jun 27 21:47:10 2006 UTC (17 years, 11 months ago) by reyk
Branch: MAIN
Changes since 1.169: +2 -2 lines
Diff to previous 1.169 (colored)
knf
Revision 1.169 / (download) - annotate - [select for diffs], Tue Jun 27 20:55:51 2006 UTC (17 years, 11 months ago) by reyk
Branch: MAIN
Changes since 1.168: +42 -1 lines
Diff to previous 1.168 (colored)
add the net80211 hostap options "nwflag hidenwid" for hidden SSID mode and "nwflag nobridge" to prevent inter-station communications. "hidenwid" will also work with wi(4) to replace the old -E 3 option of wicontrol. ok damien@ jmc@
Revision 1.168 / (download) - annotate - [select for diffs], Fri Jun 23 21:41:30 2006 UTC (17 years, 11 months ago) by reyk
Branch: MAIN
Changes since 1.167: +16 -2 lines
Diff to previous 1.167 (colored)
allow ifconfig to print the signal quality of the current ap. if the driver reports a RSSI Max value, print the signal quality as a percentage instead of the arbitrary "dB" value, this also applies to the output of ifconfig -M (scan/node list). ok damien@ jsg@
Revision 1.167 / (download) - annotate - [select for diffs], Thu Jun 15 16:19:59 2006 UTC (17 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.166: +1 -2 lines
Diff to previous 1.166 (colored)
unused variable, spotted by pedro
Revision 1.166 / (download) - annotate - [select for diffs], Wed Jun 14 18:46:21 2006 UTC (17 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.165: +2 -3 lines
Diff to previous 1.165 (colored)
unused var, wrong check for too many keys; mrd@alkemio.org
Revision 1.165 / (download) - annotate - [select for diffs], Sun Jun 11 18:47:58 2006 UTC (17 years, 11 months ago) by jmc
Branch: MAIN
Changes since 1.164: +4 -31 lines
Diff to previous 1.164 (colored)
simplify usage(); ok krw deraadt
Revision 1.164 / (download) - annotate - [select for diffs], Sat Jun 3 14:59:44 2006 UTC (18 years ago) by claudio
Branch: MAIN
Changes since 1.163: +3 -2 lines
Diff to previous 1.163 (colored)
Do not set newaddr to 1 if "delete" was specified beforhands. In this case doalias is < 0. This fixes the problem where ifconfig em0 delete 10.0.0.1 created a 0.0.0.0/0 route entry and created a total mess because of that. Diff from markus@ OK beck@ markus@
Revision 1.163 / (download) - annotate - [select for diffs], Fri Jun 2 19:53:12 2006 UTC (18 years ago) by mpf
Branch: MAIN
Changes since 1.162: +56 -1 lines
Diff to previous 1.162 (colored)
Introduce attributes to interface groups. As a first user, move the global carp(4) demotion counter into the interface group. Thus we have the possibility to define which carp interfaces are demoted together. Put the demotion counter into the reserved field of the carp header. With this, we can have carp act smarter if multiple errors occur. It now always takes over other carp peers, that are advertising with a higher demote count. As a side effect, we can also have group failovers without the need of running in preempt mode. The protocol change does not break compability with older implementations. Collaborative work with mcbride@ OK mcbride@, henning@
Revision 1.162 / (download) - annotate - [select for diffs], Thu Jun 1 21:01:10 2006 UTC (18 years ago) by claudio
Branch: MAIN
Changes since 1.161: +2 -2 lines
Diff to previous 1.161 (colored)
Revert last commit. Modifing a interface does a remove and then an add. We need to figure out a better way to fix this. Brought up by markus@ OK beck@
Revision 1.161 / (download) - annotate - [select for diffs], Thu Jun 1 18:54:19 2006 UTC (18 years ago) by beck
Branch: MAIN
Changes since 1.160: +2 -2 lines
Diff to previous 1.160 (colored)
ifconfig should be either deleting an interface address, or adding one in one invocation, not both. This change ensures that a delete does not also do an add. Fixes stupid problem where deleting the last address with ifconfig delete addr worked differently than ifconfig addr delete where the first way would re-add an address of 0.0.0.0/0 after deleting the address. ok claudio@, krw@
Revision 1.160 / (download) - annotate - [select for diffs], Wed May 17 03:29:55 2006 UTC (18 years ago) by reyk
Branch: MAIN
Changes since 1.159: +211 -4 lines
Diff to previous 1.159 (colored)
implement support for sppp(4) in ifconfig. have a look at the updated manual pages pppoe(4) and sppp(4) for examples. the spppcontrol(8) utility is not required anymore and will probably be removed in the near future. ok deraadt@
Revision 1.159 / (download) - annotate - [select for diffs], Thu Mar 23 14:20:09 2006 UTC (18 years, 2 months ago) by mcbride
Branch: MAIN
Changes since 1.158: +3 -2 lines
Diff to previous 1.158 (colored)
Print the lladdr on carp interfaces. ok henning@
Revision 1.158 / (download) - annotate - [select for diffs], Tue Mar 21 14:23:29 2006 UTC (18 years, 2 months ago) by claudio
Branch: MAIN
Changes since 1.157: +3 -3 lines
Diff to previous 1.157 (colored)
Correctly check for the end of the cmds table. There is no need to check for c_func2. Until now ifconfig accepted something like ifconfig tun0 1.2.3.4 1.2.3.5 foobar without error. Additionally change the error message to a more comprehensible message. OK markus@, henning@
Revision 1.157 / (download) - annotate - [select for diffs], Mon Mar 20 20:12:45 2006 UTC (18 years, 2 months ago) by dhill
Branch: MAIN
Changes since 1.156: +4 -3 lines
Diff to previous 1.156 (colored)
Don't increment a pointer *before* testing it for NULL ok deraadt@
Revision 1.156 / (download) - annotate - [select for diffs], Thu Jan 5 15:00:10 2006 UTC (18 years, 5 months ago) by norby
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE,
OPENBSD_3_9
Changes since 1.155: +36 -3 lines
Diff to previous 1.155 (colored)
Make it possible to set a default vlan priority to a vlan interface. ok claudio@ brad@
Revision 1.155 / (download) - annotate - [select for diffs], Mon Nov 28 10:14:34 2005 UTC (18 years, 6 months ago) by markus
Branch: MAIN
Changes since 1.154: +11 -13 lines
Diff to previous 1.154 (colored)
do not overflow ifr.ifr_addr; ok mpf, henning, hshoexer, deraadt
Revision 1.154 / (download) - annotate - [select for diffs], Tue Nov 15 00:38:34 2005 UTC (18 years, 6 months ago) by jmc
Branch: MAIN
Changes since 1.153: +2 -2 lines
Diff to previous 1.153 (colored)
add "-description" to usage(); ok henning@
Revision 1.153 / (download) - annotate - [select for diffs], Mon Nov 14 15:06:09 2005 UTC (18 years, 6 months ago) by henning
Branch: MAIN
Changes since 1.152: +13 -1 lines
Diff to previous 1.152 (colored)
add -descr / -description to clear the interface description, noticed todd
Revision 1.152 / (download) - annotate - [select for diffs], Tue Nov 1 07:54:26 2005 UTC (18 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.151: +3 -1 lines
Diff to previous 1.151 (colored)
missing freeaddrinfo(); maticd@gmail.com
Revision 1.151 / (download) - annotate - [select for diffs], Mon Oct 10 10:28:19 2005 UTC (18 years, 7 months ago) by henning
Branch: MAIN
Changes since 1.150: +4 -4 lines
Diff to previous 1.150 (colored)
getifaddrs() slightly later in printif(), prevents possible memleak Andrey Matveev <evol@online.ptt.ru>
Revision 1.150 / (download) - annotate - [select for diffs], Mon Oct 3 01:35:12 2005 UTC (18 years, 8 months ago) by reyk
Branch: MAIN
Changes since 1.149: +3 -4 lines
Diff to previous 1.149 (colored)
print all trunk flags ok brad@
Revision 1.149 / (download) - annotate - [select for diffs], Thu Sep 15 13:52:39 2005 UTC (18 years, 8 months ago) by pedro
Branch: MAIN
Changes since 1.148: +9 -9 lines
Diff to previous 1.148 (colored)
Clean up compilation with -Wall, okay deraadt@ From: Leonardo Chiquitto Filho <leonardo@iken.com.br>
Revision 1.148 / (download) - annotate - [select for diffs], Wed Aug 10 19:31:55 2005 UTC (18 years, 9 months ago) by sturm
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE,
OPENBSD_3_8
Changes since 1.147: +2 -2 lines
Diff to previous 1.147 (colored)
print session time in fixed width ok henning, deraadt
Revision 1.147 / (download) - annotate - [select for diffs], Fri Jun 24 15:26:33 2005 UTC (18 years, 11 months ago) by jolan
Branch: MAIN
Changes since 1.146: +3 -3 lines
Diff to previous 1.146 (colored)
err -> errx
Revision 1.146 / (download) - annotate - [select for diffs], Thu Jun 23 14:26:37 2005 UTC (18 years, 11 months ago) by mickey
Branch: MAIN
Changes since 1.145: +2 -2 lines
Diff to previous 1.145 (colored)
iface description is not an array of ptr but rather just a string; jcs@ ok
Revision 1.145 / (download) - annotate - [select for diffs], Sun Jun 12 00:42:55 2005 UTC (18 years, 11 months ago) by henning
Branch: MAIN
Changes since 1.144: +44 -7 lines
Diff to previous 1.144 (colored)
let 'ifconfig <group>' work, displaying all the interfaces which are member of the given group, markus ok
Revision 1.144 / (download) - annotate - [select for diffs], Wed Jun 8 19:03:55 2005 UTC (18 years, 11 months ago) by henning
Branch: MAIN
Changes since 1.143: +2 -80 lines
Diff to previous 1.143 (colored)
netns crap i missed earlier... damn unreliable tools
Revision 1.143 / (download) - annotate - [select for diffs], Tue May 31 20:54:38 2005 UTC (19 years ago) by jmc
Branch: MAIN
Changes since 1.142: +2 -2 lines
Diff to previous 1.142 (colored)
tidy up the trunk stuff;
Revision 1.142 / (download) - annotate - [select for diffs], Thu May 26 03:39:57 2005 UTC (19 years ago) by henning
Branch: MAIN
Changes since 1.141: +2 -8 lines
Diff to previous 1.141 (colored)
remove hiding of interface family groups
Revision 1.141 / (download) - annotate - [select for diffs], Thu May 26 02:15:42 2005 UTC (19 years ago) by frantzen
Branch: MAIN
Changes since 1.140: +7 -1 lines
Diff to previous 1.140 (colored)
disallow interface group names that end in a digit to differentiate them from true interfaces ok henning@
Revision 1.140 / (download) - annotate - [select for diffs], Wed May 25 07:40:49 2005 UTC (19 years ago) by reyk
Branch: MAIN
Changes since 1.139: +173 -36 lines
Diff to previous 1.139 (colored)
add ifconfig -M option to replace wicontrol -L and -l for ap scanning and node listing. wicontrol is not supported by net80211 drivers anymore. further improvements will be done. ok dlg@, jsg@
Revision 1.139 / (download) - annotate - [select for diffs], Tue May 24 07:51:53 2005 UTC (19 years ago) by reyk
Branch: MAIN
Changes since 1.138: +16 -11 lines
Diff to previous 1.138 (colored)
support trunk stacking (trunks as trunk ports) and some fixes ok brad@
Revision 1.138 / (download) - annotate - [select for diffs], Tue May 24 02:45:18 2005 UTC (19 years ago) by reyk
Branch: MAIN
Changes since 1.137: +107 -1 lines
Diff to previous 1.137 (colored)
initial import of a trunking (link aggregation and link failover) implementation. it currently supports round robin mode with link state checking, additional modes will be added later. ok brad@, deraadt@
Revision 1.137 / (download) - annotate - [select for diffs], Sun May 22 00:02:28 2005 UTC (19 years ago) by henning
Branch: MAIN
Changes since 1.136: +18 -14 lines
Diff to previous 1.136 (colored)
rewrite the interface groups printing code: don't rely on the interface's driver-name based group to be the first in the list don't rely on one group == only default one do not print the "all" group don't segfault on interfaces with no group at all ok mcbride
Revision 1.136 / (download) - annotate - [select for diffs], Thu Apr 14 10:23:37 2005 UTC (19 years, 1 month ago) by henning
Branch: MAIN
Changes since 1.135: +1 -15 lines
Diff to previous 1.135 (colored)
shave off a few bytes, alpha floppies fit again now
Revision 1.135 / (download) - annotate - [select for diffs], Tue Apr 12 12:15:53 2005 UTC (19 years, 1 month ago) by markus
Branch: MAIN
Changes since 1.134: +3 -3 lines
Diff to previous 1.134 (colored)
lladdr w/o colon; ok henning
Revision 1.134 / (download) - annotate - [select for diffs], Mon Apr 11 21:05:01 2005 UTC (19 years, 1 month ago) by cloder
Branch: MAIN
Changes since 1.133: +8 -6 lines
Diff to previous 1.133 (colored)
Handle getnameinfo failure. OK niallo
Revision 1.133 / (download) - annotate - [select for diffs], Mon Apr 4 16:03:02 2005 UTC (19 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.132: +3 -3 lines
Diff to previous 1.132 (colored)
print lladdr instead of address; pointed out by a few
Revision 1.132 / (download) - annotate - [select for diffs], Wed Mar 30 02:55:37 2005 UTC (19 years, 2 months ago) by tedu
Branch: MAIN
Changes since 1.131: +23 -3 lines
Diff to previous 1.131 (colored)
add lladdr command to ifconfig to set MAC address. diffs from freebsd via Kyunghwan KIM (prs 2117 and 2118) and Fredrik Widlund. ok deraadt
Revision 1.131 / (download) - annotate - [select for diffs], Tue Feb 15 19:45:22 2005 UTC (19 years, 3 months ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE,
OPENBSD_3_7
Changes since 1.130: +44 -6 lines
Diff to previous 1.130 (colored)
add txpower support to ifconfig ok bob@ robert@ danh@ and others
Revision 1.130 / (download) - annotate - [select for diffs], Thu Jan 20 17:47:38 2005 UTC (19 years, 4 months ago) by mcbride
Branch: MAIN
Changes since 1.129: +15 -13 lines
Diff to previous 1.129 (colored)
Use syncdev instead of syncif in ifconfig, and modify ioctl struct pfsyncreq in kernel code to match. Brings pfsync in line with carp, vlan and pppoe devices. Old syncif and -syncif options still work, will be removed later. ok markus@
Revision 1.129 / (download) - annotate - [select for diffs], Tue Jan 18 21:51:14 2005 UTC (19 years, 4 months ago) by claudio
Branch: MAIN
Changes since 1.128: +42 -3 lines
Diff to previous 1.128 (colored)
Print configured timeslot mask for PDH/TDM interfaces. OK deraadt@
Revision 1.128 / (download) - annotate - [select for diffs], Tue Jan 18 21:43:54 2005 UTC (19 years, 4 months ago) by claudio
Branch: MAIN
Changes since 1.127: +11 -4 lines
Diff to previous 1.127 (colored)
Don't shift the timeslot map so that timeslot 1 ends in bit 0. E1 may need to specify timeslot 0 and it is more intuitive. From alex@ Ok deraadt@
Revision 1.127 / (download) - annotate - [select for diffs], Wed Dec 29 19:32:34 2004 UTC (19 years, 5 months ago) by claudio
Branch: MAIN
Changes since 1.126: +5 -3 lines
Diff to previous 1.126 (colored)
Put settimeslot() into #ifndef SMALL as it is not needed on ramdisks. OK deraadt@
Revision 1.126 / (download) - annotate - [select for diffs], Sat Dec 25 17:52:45 2004 UTC (19 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.125: +397 -389 lines
Diff to previous 1.125 (colored)
#ifndef SMALL throughout this, for install media; ok mcbride
Revision 1.125 / (download) - annotate - [select for diffs], Tue Dec 7 20:40:18 2004 UTC (19 years, 5 months ago) by mcbride
Branch: MAIN
Changes since 1.124: +44 -5 lines
Diff to previous 1.124 (colored)
Add the 'carpdev' option, to set the carp devices physical interface. If not specified, the kernel will attempt to select the correct interface by the subnet (this is the current behaviour). ok deraadt@ henning@
Revision 1.124 / (download) - annotate - [select for diffs], Tue Dec 7 20:32:10 2004 UTC (19 years, 5 months ago) by mcbride
Branch: MAIN
Changes since 1.123: +34 -26 lines
Diff to previous 1.123 (colored)
KNF
Revision 1.123 / (download) - annotate - [select for diffs], Tue Dec 7 10:26:49 2004 UTC (19 years, 5 months ago) by jmc
Branch: MAIN
Changes since 1.122: +3 -3 lines
Diff to previous 1.122 (colored)
note that -a is the default if no params given; `interface' is now optional;
Revision 1.122 / (download) - annotate - [select for diffs], Tue Dec 7 00:10:05 2004 UTC (19 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.121: +16 -10 lines
Diff to previous 1.121 (colored)
default to interface printing, instead of help message. any illegal - option goes to usage. initial work by ian, changed by me, ok mcbride
Revision 1.121 / (download) - annotate - [select for diffs], Wed Dec 1 15:57:44 2004 UTC (19 years, 6 months ago) by jmc
Branch: MAIN
Changes since 1.120: +4 -2 lines
Diff to previous 1.120 (colored)
add pppoe stuff to usage(); ok jaredy@
Revision 1.120 / (download) - annotate - [select for diffs], Sun Nov 28 23:39:45 2004 UTC (19 years, 6 months ago) by canacar
Branch: MAIN
Changes since 1.119: +143 -2 lines
Diff to previous 1.119 (colored)
In kernel pppoe client, a simple IPv4 only implementation. Initial porting from NetBSD by David Berghoff. Modified/simplified to match our sppp implementation. ok deraadt@
Revision 1.119 / (download) - annotate - [select for diffs], Wed Nov 17 01:47:20 2004 UTC (19 years, 6 months ago) by itojun
Branch: MAIN
Changes since 1.118: +2 -10 lines
Diff to previous 1.118 (colored)
remove NI_WITHSCOPEID (which is not standard)
Revision 1.118 / (download) - annotate - [select for diffs], Sat Nov 6 00:54:19 2004 UTC (19 years, 6 months ago) by reyk
Branch: MAIN
Changes since 1.117: +87 -24 lines
Diff to previous 1.117 (colored)
added the "bssid" command to ifconfig, an extended ieee80211 status output and the missing man page entries for ifconfig.8 (from jared). ok deraadt@, henning@
Revision 1.117 / (download) - annotate - [select for diffs], Tue Nov 2 11:38:04 2004 UTC (19 years, 7 months ago) by henning
Branch: MAIN
Changes since 1.116: +7 -7 lines
Diff to previous 1.116 (colored)
KNF - reyk, look at this diff not that ifconfig is our prime example for nicely KNF'd and readable code tho
Revision 1.116 / (download) - annotate - [select for diffs], Tue Nov 2 02:33:26 2004 UTC (19 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.115: +13 -22 lines
Diff to previous 1.115 (colored)
spacing
Revision 1.115 / (download) - annotate - [select for diffs], Tue Nov 2 02:12:16 2004 UTC (19 years, 7 months ago) by reyk
Branch: MAIN
Changes since 1.114: +92 -6 lines
Diff to previous 1.114 (colored)
added new commands to ifconfig used by net80211 interfaces: mode (set mode for multi-mode interfaces) and chan (set the radio channel). some additional output will be printed by "ifconfig -m". ok deraadt@ millert@ damien@
Revision 1.114 / (download) - annotate - [select for diffs], Mon Oct 11 10:13:49 2004 UTC (19 years, 7 months ago) by henning
Branch: MAIN
Changes since 1.113: +13 -13 lines
Diff to previous 1.113 (colored)
ifgroups reqrite there is now a TAILQ with all interface groups as members, and in struct ofnet there is only a pointer to the group structure stored and not its name. mostly hacked at c2k4 and somewhere over the atlantic ocean ok markus mcbride
Revision 1.113 / (download) - annotate - [select for diffs], Wed Sep 15 21:27:01 2004 UTC (19 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.112: +48 -14 lines
Diff to previous 1.112 (colored)
ARGSUSED, remove unused, ...
Revision 1.112 / (download) - annotate - [select for diffs], Sun Aug 8 19:04:25 2004 UTC (19 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE,
OPENBSD_3_6
Changes since 1.111: +12 -12 lines
Diff to previous 1.111 (colored)
spacing
Revision 1.111 / (download) - annotate - [select for diffs], Tue Aug 3 05:36:32 2004 UTC (19 years, 10 months ago) by mcbride
Branch: MAIN
Changes since 1.110: +66 -7 lines
Diff to previous 1.110 (colored)
Allow a unicast ip address to be specified for pfsync with the 'syncpeer' keyword. This address is used instead of the multicast address to send state updates; this allows pairs of pfsync firewalls to protect the traffic with IPSec. ifconfig must be updated to match the kernel.
Revision 1.110 / (download) - annotate - [select for diffs], Sat Jul 3 20:24:48 2004 UTC (19 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.109: +3 -6 lines
Diff to previous 1.109 (colored)
zap INET_ONLY, compress usage(); jared
Revision 1.109 / (download) - annotate - [select for diffs], Sat Jul 3 20:24:16 2004 UTC (19 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.108: +3 -3 lines
Diff to previous 1.108 (colored)
ansi; jared
Revision 1.108 / (download) - annotate - [select for diffs], Sat Jun 26 17:36:33 2004 UTC (19 years, 11 months ago) by markus
Branch: MAIN
Changes since 1.107: +26 -30 lines
Diff to previous 1.107 (colored)
cleanup ioctl for ifgroups; ok pb@
Revision 1.107 / (download) - annotate - [select for diffs], Sat Jun 26 06:59:17 2004 UTC (19 years, 11 months ago) by alex
Branch: MAIN
Changes since 1.106: +67 -2 lines
Diff to previous 1.106 (colored)
Add option that allows to change timeslot range forn network card. ok mcbride@
Revision 1.106 / (download) - annotate - [select for diffs], Sat Jun 26 04:00:05 2004 UTC (19 years, 11 months ago) by pb
Branch: MAIN
Changes since 1.105: +6 -3 lines
Diff to previous 1.105 (colored)
ignore IFGROUP errs in ifconfig -a for "too old" kernels right now
Revision 1.105 / (download) - annotate - [select for diffs], Sat Jun 26 03:12:08 2004 UTC (19 years, 11 months ago) by pb
Branch: MAIN
Changes since 1.104: +3 -5 lines
Diff to previous 1.104 (colored)
more netiso leftovers by pointer from yared janovich henning@ ok
Revision 1.104 / (download) - annotate - [select for diffs], Sat Jun 26 00:01:36 2004 UTC (19 years, 11 months ago) by pb
Branch: MAIN
Changes since 1.103: +3 -3 lines
Diff to previous 1.103 (colored)
groups in usage() - from jared yanovich
Revision 1.103 / (download) - annotate - [select for diffs], Fri Jun 25 18:24:23 2004 UTC (19 years, 11 months ago) by pb
Branch: MAIN
Changes since 1.102: +78 -2 lines
Diff to previous 1.102 (colored)
introduce "interface groups" by "ifconfig fxp0 group foobar" "ifconfig xl0 group foobar" these two interfaces are in one group. Every interface has its if-family as default group. idea/design from henning@, based on some work/disucssion from Joris Vink. henning@, mcbride@ ok.
Revision 1.102 / (download) - annotate - [select for diffs], Thu Jun 24 20:44:06 2004 UTC (19 years, 11 months ago) by henning
Branch: MAIN
Changes since 1.101: +2 -127 lines
Diff to previous 1.101 (colored)
remove netiso stuff
Revision 1.101 / (download) - annotate - [select for diffs], Mon Jun 21 23:41:53 2004 UTC (19 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.100: +5 -5 lines
Diff to previous 1.100 (colored)
Make printing of 802.11 fields consistent with the rest by printing a colon (':') after the field name. Noticed by markus@, OK deraadt@
Revision 1.100 / (download) - annotate - [select for diffs], Sat May 29 17:54:46 2004 UTC (20 years ago) by jcs
Branch: MAIN
Changes since 1.99: +23 -2 lines
Diff to previous 1.99 (colored)
introduce SIOCSIFDESCR and SIOCGIFDESCR to maintain interface descriptions, configurable with ifconfig help from various, ok deraadt@
Revision 1.99 / (download) - annotate - [select for diffs], Tue May 18 10:54:07 2004 UTC (20 years ago) by otto
Branch: MAIN
Changes since 1.98: +3 -3 lines
Diff to previous 1.98 (colored)
Trailers are really wonders of the past. Remove them from man page and usage. ok millert@
Revision 1.98 / (download) - annotate - [select for diffs], Mon May 10 18:34:42 2004 UTC (20 years ago) by deraadt
Branch: MAIN
Changes since 1.97: +4 -4 lines
Diff to previous 1.97 (colored)
missing casts spotted by 64 bit cc
Revision 1.97 / (download) - annotate - [select for diffs], Wed May 5 22:20:17 2004 UTC (20 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.96: +122 -87 lines
Diff to previous 1.96 (colored)
use strtonum all over the place; ok pb millert
Revision 1.96 / (download) - annotate - [select for diffs], Tue Apr 27 22:14:11 2004 UTC (20 years, 1 month ago) by pb
Branch: MAIN
Changes since 1.95: +22 -135 lines
Diff to previous 1.95 (colored)
clean up ifdef hell
Revision 1.95 / (download) - annotate - [select for diffs], Tue Apr 27 21:13:09 2004 UTC (20 years, 1 month ago) by jmc
Branch: MAIN
Changes since 1.94: +28 -23 lines
Diff to previous 1.94 (colored)
reworking of man page and sync/update usage(); this stuff is based mostly on diffs from jared yanovich, with some stuff from myself and otto; ok naddy@ otto@ markus@ deraadt@
Revision 1.94 / (download) - annotate - [select for diffs], Tue Apr 27 17:33:52 2004 UTC (20 years, 1 month ago) by pb
Branch: MAIN
Changes since 1.93: +3 -3 lines
Diff to previous 1.93 (colored)
missing ';' in actually unreached code (pointed out by logix(at)franken.de)
Revision 1.93 / (download) - annotate - [select for diffs], Thu Mar 18 20:52:13 2004 UTC (20 years, 2 months ago) by mcbride
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE,
OPENBSD_3_5
Changes since 1.92: +27 -2 lines
Diff to previous 1.92 (colored)
Allow the state of a carp interface to be changed explicitly. ok markus@
Revision 1.92 / (download) - annotate - [select for diffs], Mon Mar 15 08:52:17 2004 UTC (20 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.91: +13 -41 lines
Diff to previous 1.91 (colored)
some small knf
Revision 1.91 / (download) - annotate - [select for diffs], Mon Mar 8 17:21:52 2004 UTC (20 years, 2 months ago) by mcbride
Branch: MAIN
Changes since 1.90: +6 -5 lines
Diff to previous 1.90 (colored)
Prevent user from specifying an interface name longer than IFNAMSIZ. ok millert@
Revision 1.90 / (download) - annotate - [select for diffs], Thu Feb 26 20:25:09 2004 UTC (20 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.89: +13 -9 lines
Diff to previous 1.89 (colored)
Deal correctly with printing interfaces with multiple trailing digits. E.g. "ifconfig vlan1" should only match vlan1, not vlan1, vlan10, vlan11, etc. OK tdeval@, hshoexer@, otto@. Closes PR 3693.
Revision 1.89 / (download) - annotate - [select for diffs], Tue Jan 13 01:42:45 2004 UTC (20 years, 4 months ago) by mcbride
Branch: MAIN
Changes since 1.88: +20 -5 lines
Diff to previous 1.88 (colored)
Allow ifconfig to print out all interfaces of a given type. ie. 'ifconfig carp' prints out all carp interfaces. ok hshoexer@ tdeval@
Revision 1.88 / (download) - annotate - [select for diffs], Tue Dec 23 14:52:12 2003 UTC (20 years, 5 months ago) by markus
Branch: MAIN
Changes since 1.87: +24 -10 lines
Diff to previous 1.87 (colored)
automagically create pseudo-network interfaces; ok deraadt@
Revision 1.87 / (download) - annotate - [select for diffs], Mon Dec 15 07:11:29 2003 UTC (20 years, 5 months ago) by mcbride
Branch: MAIN
Changes since 1.86: +91 -2 lines
Diff to previous 1.86 (colored)
Add initial support for pf state synchronization over the network. Implemented as an in-kernel multicast IP protocol. Turn it on like this: # ifconfig pfsync0 up syncif fxp0 There is not yet any authentication on this protocol, so the syncif must be on a trusted network. ie, a crossover cable between the two firewalls. NOTABLE CHANGES: - A new index based on a unique (creatorid, stateid) tuple has been added to the state tree. - Updates now appear on the pfsync(4) interface; multiple updates may be compressed into a single update. - Applications which use bpf on pfsync(4) will need modification; packets on pfsync no longer contains regular pf_state structs, but pfsync_state structs which contain no pointers. Much more to come. ok deraadt@
Revision 1.86 / (download) - annotate - [select for diffs], Mon Dec 8 09:09:03 2003 UTC (20 years, 5 months ago) by markus
Branch: MAIN
Changes since 1.85: +54 -2 lines
Diff to previous 1.85 (colored)
add IOCIFGCLONERS; ifconfig -C; from netbsd; ok henning, deraadt
Revision 1.85 / (download) - annotate - [select for diffs], Sun Dec 7 15:30:24 2003 UTC (20 years, 5 months ago) by markus
Branch: MAIN
Changes since 1.84: +4 -8 lines
Diff to previous 1.84 (colored)
ANSI
Revision 1.84 / (download) - annotate - [select for diffs], Wed Dec 3 13:28:36 2003 UTC (20 years, 6 months ago) by markus
Branch: MAIN
Changes since 1.83: +49 -3 lines
Diff to previous 1.83 (colored)
add support for ifconfig clone; from netbsd; ok deraadt, henning
Revision 1.83 / (download) - annotate - [select for diffs], Sun Nov 9 06:04:17 2003 UTC (20 years, 6 months ago) by mcbride
Branch: MAIN
Changes since 1.82: +3 -3 lines
Diff to previous 1.82 (colored)
Unbreak printing of vlan interface information, commented out accidentally in CARP import.
Revision 1.82 / (download) - annotate - [select for diffs], Sun Oct 19 05:43:35 2003 UTC (20 years, 7 months ago) by mcbride
Branch: MAIN
Changes since 1.81: +2 -4 lines
Diff to previous 1.81 (colored)
Remove commented out debug line committed by mistake.
Revision 1.81 / (download) - annotate - [select for diffs], Fri Oct 17 21:04:57 2003 UTC (20 years, 7 months ago) by mcbride
Branch: MAIN
Changes since 1.80: +135 -3 lines
Diff to previous 1.80 (colored)
Common Address Redundancy Protocol Allows multiple hosts to share an IP address, providing high availability and load balancing. Based on code by mickey@, with additional help from markus@ and Marco_Pfatschbacher@genua.de ok deraadt@
Revision 1.80 / (download) - annotate - [select for diffs], Wed Sep 24 21:12:12 2003 UTC (20 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.79: +9 -5 lines
Diff to previous 1.79 (colored)
realloc fix
Revision 1.79 / (download) - annotate - [select for diffs], Tue Sep 23 03:04:16 2003 UTC (20 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.78: +3 -4 lines
Diff to previous 1.78 (colored)
fix a few strlcpy
Revision 1.78 / (download) - annotate - [select for diffs], Wed Jul 30 01:42:47 2003 UTC (20 years, 10 months ago) by pvalchev
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE,
OPENBSD_3_4
Changes since 1.77: +4 -4 lines
Diff to previous 1.77 (colored)
change SIOCDIFADDR/SIOCAIFADDR warnings into errors (now this has correct return code in certain cases); ok henning itojun
Revision 1.77 / (download) - annotate - [select for diffs], Thu Jun 26 07:27:32 2003 UTC (20 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.76: +90 -95 lines
Diff to previous 1.76 (colored)
bring protypes into scope. this requires some quirky handling, but in the end everything is much clearer; ok tedu (itojun might like to see how ifconfig looks after this)
Revision 1.76 / (download) - annotate - [select for diffs], Wed Jun 11 06:22:13 2003 UTC (20 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.75: +90 -203 lines
Diff to previous 1.75 (colored)
ansification
Revision 1.75 / (download) - annotate - [select for diffs], Mon Jun 2 20:06:15 2003 UTC (21 years ago) by millert
Branch: MAIN
Changes since 1.74: +3 -7 lines
Diff to previous 1.74 (colored)
Remove the advertising clause in the UCB license which Berkeley rescinded 22 July 1999. Proofed by myself and Theo.
Revision 1.74 / (download) - annotate - [select for diffs], Wed May 14 02:02:56 2003 UTC (21 years ago) by itojun
Branch: MAIN
Changes since 1.73: +13 -13 lines
Diff to previous 1.73 (colored)
move ETHERTYPE_xx declarations to <net/ethertypes.h>. meets netbsd practice. deraadt ok
Revision 1.73 / (download) - annotate - [select for diffs], Sun Mar 16 05:20:27 2003 UTC (21 years, 2 months ago) by margarida
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE,
OPENBSD_3_3
Changes since 1.72: +3 -3 lines
Diff to previous 1.72 (colored)
modifed -> modified
Revision 1.72 / (download) - annotate - [select for diffs], Sun Nov 24 20:39:28 2002 UTC (21 years, 6 months ago) by henning
Branch: MAIN
Changes since 1.71: +3 -3 lines
Diff to previous 1.71 (colored)
KNF
Revision 1.71 / (download) - annotate - [select for diffs], Sun Nov 24 17:39:04 2002 UTC (21 years, 6 months ago) by henning
Branch: MAIN
Changes since 1.70: +8 -8 lines
Diff to previous 1.70 (colored)
consistency: use sin6 as variable name for sockaddr_in6, not sin no functional changes ok millert@ pval@
Revision 1.70 / (download) - annotate - [select for diffs], Sat Nov 23 15:08:50 2002 UTC (21 years, 6 months ago) by henning
Branch: MAIN
Changes since 1.69: +3 -3 lines
Diff to previous 1.69 (colored)
typo (in #ifdef'd out code, but well...); Michal Ludvig <michal at logix.cz>
Revision 1.69 / (download) - annotate - [select for diffs], Mon Jul 8 00:48:54 2002 UTC (21 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE,
OPENBSD_3_2
Changes since 1.68: +3 -3 lines
Diff to previous 1.68 (colored)
make failed SIOCG80211NWKEY print alert more clearly; jolan@norm.encryptedemail.net
Revision 1.68 / (download) - annotate - [select for diffs], Wed Jun 19 18:53:53 2002 UTC (21 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.67: +4 -3 lines
Diff to previous 1.67 (colored)
Since we can no longer count on isprint() to tell us whether or not a character is 7-bit ASCII, check the high bit by hand when deciding whether to print a WEP key as ASCII or hex.
Revision 1.67 / (download) - annotate - [select for diffs], Fri Jun 14 09:12:43 2002 UTC (21 years, 11 months ago) by itojun
Branch: MAIN
Changes since 1.66: +45 -6 lines
Diff to previous 1.66 (colored)
add "eui64" option. from ww@styx.org. sync usage with reality.
Revision 1.66 / (download) - annotate - [select for diffs], Fri Jun 14 01:07:45 2002 UTC (21 years, 11 months ago) by itojun
Branch: MAIN
Changes since 1.65: +19 -7 lines
Diff to previous 1.65 (colored)
metric and mtu are u_long, not int.
Revision 1.65 / (download) - annotate - [select for diffs], Mon Jun 10 22:18:48 2002 UTC (21 years, 11 months ago) by markus
Branch: MAIN
Changes since 1.64: +11 -6 lines
Diff to previous 1.64 (colored)
print ethernet address; ok provos@, itojun@
Revision 1.64 / (download) - annotate - [select for diffs], Wed May 22 08:21:02 2002 UTC (22 years ago) by deraadt
Branch: MAIN
Changes since 1.63: +6 -6 lines
Diff to previous 1.63 (colored)
strcpy, sprintf death; mpech ok
Revision 1.63 / (download) - annotate - [select for diffs], Fri Apr 26 04:40:42 2002 UTC (22 years, 1 month ago) by fgsch
Branch: MAIN
Changes since 1.62: +6 -5 lines
Diff to previous 1.62 (colored)
use struct in_aliasreq instead of ifaliasreq when setting new inet address. solves a sigbus error seen on sparc64 with new binutils. from itojun@
Revision 1.62 / (download) - annotate - [select for diffs], Thu Apr 25 08:55:16 2002 UTC (22 years, 1 month ago) by itojun
Branch: MAIN
Changes since 1.61: +3 -3 lines
Diff to previous 1.61 (colored)
no need for __alignment__, it was paste error. from fgs/deraadt
Revision 1.61 / (download) - annotate - [select for diffs], Wed Apr 10 18:52:27 2002 UTC (22 years, 1 month ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE,
OPENBSD_3_1
Changes since 1.60: +3 -3 lines
Diff to previous 1.60 (colored)
Add missing IFM_OPTIONS macro. Previously 'ifconfig -mediaopt' could clear bits other than media options. Fix from NetBSD.
Revision 1.60 / (download) - annotate - [select for diffs], Sat Feb 23 22:07:20 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.59: +279 -15 lines
Diff to previous 1.59 (colored)
Add support for nwkey and powersave; from NetBSD
Revision 1.59 / (download) - annotate - [select for diffs], Thu Feb 21 23:05:13 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.58: +14 -6 lines
Diff to previous 1.58 (colored)
i_nwid is not a NUL-terminated string. Use the length parameter for the length and sanity check against IEEE80211_NWID_LEN.
Revision 1.58 / (download) - annotate - [select for diffs], Tue Feb 19 01:16:38 2002 UTC (22 years, 3 months ago) by mickey
Branch: MAIN
Changes since 1.57: +3 -3 lines
Diff to previous 1.57 (colored)
when printing out the option list compare the option part only; fixes 802.11 mediaopt printing
Revision 1.57 / (download) - annotate - [select for diffs], Sun Feb 17 19:42:27 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.56: +4 -4 lines
Diff to previous 1.56 (colored)
Manual cleanup of remaining userland __P use (excluding packages maintained outside the tree)
Revision 1.56 / (download) - annotate - [select for diffs], Sat Feb 16 21:27:35 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.55: +66 -66 lines
Diff to previous 1.55 (colored)
Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
Revision 1.55 / (download) - annotate - [select for diffs], Tue Nov 13 18:08:21 2001 UTC (22 years, 6 months ago) by mickey
Branch: MAIN
Changes since 1.54: +69 -57 lines
Diff to previous 1.54 (colored)
make setting ipx frame type work; from Ian McWilliam <ianm@cit.uws.edu.au>
Revision 1.54 / (download) - annotate - [select for diffs], Mon Nov 5 07:39:16 2001 UTC (22 years, 7 months ago) by mpech
Branch: MAIN
Changes since 1.53: +20 -20 lines
Diff to previous 1.53 (colored)
kill more registers; millert@ ok
Revision 1.53 / (download) - annotate - [select for diffs], Tue Oct 30 22:00:15 2001 UTC (22 years, 7 months ago) by millert
Branch: MAIN
Changes since 1.52: +46 -47 lines
Diff to previous 1.52 (colored)
strncpy() -> strlcpy(); from Jean-Francois Brousseau
Revision 1.52 / (download) - annotate - [select for diffs], Sun Aug 19 01:51:34 2001 UTC (22 years, 9 months ago) by itojun
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE,
OPENBSD_3_0
Changes since 1.51: +5 -5 lines
Diff to previous 1.51 (colored)
fix buffer underrun on 1.51
Revision 1.51 / (download) - annotate - [select for diffs], Sat Aug 18 20:39:43 2001 UTC (22 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.50: +15 -5 lines
Diff to previous 1.50 (colored)
more careful with snprintf result code
Revision 1.50 / (download) - annotate - [select for diffs], Wed Jul 25 17:41:06 2001 UTC (22 years, 10 months ago) by itojun
Branch: MAIN
Changes since 1.49: +6 -4 lines
Diff to previous 1.49 (colored)
do not write into s6_addr[16] (out of bounds).
Revision 1.49 / (download) - annotate - [select for diffs], Sat Jul 7 18:26:13 2001 UTC (22 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.48: +4 -3 lines
Diff to previous 1.48 (colored)
major -Wall cleanup, almost complete
Revision 1.48 / (download) - annotate - [select for diffs], Mon May 7 13:53:26 2001 UTC (23 years, 1 month ago) by markus
Branch: MAIN
Changes since 1.47: +3 -3 lines
Diff to previous 1.47 (colored)
tunneldelete -> deletetunnel
Revision 1.47 / (download) - annotate - [select for diffs], Wed May 2 06:44:23 2001 UTC (23 years, 1 month ago) by itojun
Branch: MAIN
Changes since 1.46: +19 -6 lines
Diff to previous 1.46 (colored)
implement "deletetunnel" (removes tunnel outer IP address pair) rename "giftunnel" intto "tunnel", to reduce diffs with netbsd. (giftunnel is still usable for backward compat) markus and niels ok'ed.
Revision 1.46 / (download) - annotate - [select for diffs], Thu Mar 1 08:34:37 2001 UTC (23 years, 3 months ago) by itojun
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE,
OPENBSD_2_9
Changes since 1.45: +6 -5 lines
Diff to previous 1.45 (colored)
on "giftunnel" configuration, use specified address family
Revision 1.45 / (download) - annotate - [select for diffs], Tue Feb 20 13:50:53 2001 UTC (23 years, 3 months ago) by itojun
Branch: MAIN
Changes since 1.44: +37 -90 lines
Diff to previous 1.44 (colored)
provide SIOC[SG]LIFPHYADDR, which greatly simplify userland manipulation. sync with kame. old ioctls are kept but not really recommended.
Revision 1.44 / (download) - annotate - [select for diffs], Thu Jan 18 04:46:03 2001 UTC (23 years, 4 months ago) by itojun
Branch: MAIN
Changes since 1.43: +28 -3 lines
Diff to previous 1.43 (colored)
permit prefixlen against inet address, like: # ifconfig fxp0 10.0.0.1 prefixlen 23
Revision 1.40.2.1 / (download) - annotate - [select for diffs], Tue Jan 2 20:09:42 2001 UTC (23 years, 5 months ago) by jason
Branch: OPENBSD_2_8
Changes since 1.40: +14 -10 lines
Diff to previous 1.40 (colored) next main 1.41 (colored)
Pull in patch from current: Fix (mickey): fix nwid get/set
Revision 1.43 / (download) - annotate - [select for diffs], Sat Dec 30 21:56:44 2000 UTC (23 years, 5 months ago) by angelos
Branch: MAIN
Changes since 1.42: +2 -102 lines
Diff to previous 1.42 (colored)
Remove the dstsa/srcsa/clearsa directives, the bridge will be using the gif interface instead.
Revision 1.42 / (download) - annotate - [select for diffs], Mon Dec 18 07:00:17 2000 UTC (23 years, 5 months ago) by mickey
Branch: MAIN
Changes since 1.41: +14 -10 lines
Diff to previous 1.41 (colored)
fix nwid get/set
Revision 1.41 / (download) - annotate - [select for diffs], Fri Nov 10 18:18:05 2000 UTC (23 years, 6 months ago) by itojun
Branch: MAIN
Changes since 1.40: +35 -8 lines
Diff to previous 1.40 (colored)
show pltime=0 address as "deprecated". sync with kame.
Revision 1.40 / (download) - annotate - [select for diffs], Thu Aug 3 07:34:41 2000 UTC (23 years, 10 months ago) by angelos
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE
Branch point for: OPENBSD_2_8
Changes since 1.39: +3 -3 lines
Diff to previous 1.39 (colored)
Fix compilation in non-INET6 case (rfunk@funknet.net)
Revision 1.39 / (download) - annotate - [select for diffs], Fri Jun 30 18:17:58 2000 UTC (23 years, 11 months ago) by itojun
Branch: MAIN
Changes since 1.38: +9 -7 lines
Diff to previous 1.38 (colored)
correct address family handling in "giftunnel". test with the following: # ifconfig gif0 inet giftunnel localhost localhost # ifconfig gif0 inet6 giftunnel localhost localhost
Revision 1.38 / (download) - annotate - [select for diffs], Mon May 22 03:04:11 2000 UTC (24 years ago) by itojun
Branch: MAIN
Changes since 1.37: +14 -5 lines
Diff to previous 1.37 (colored)
correct gif physical address printing on non-IPv6 kernel.
Revision 1.37 / (download) - annotate - [select for diffs], Mon May 15 11:23:51 2000 UTC (24 years ago) by itojun
Branch: MAIN
Changes since 1.36: +21 -7 lines
Diff to previous 1.36 (colored)
better scoped address handling on gif physical address printing. (hide kame ifidx hack)
Revision 1.36 / (download) - annotate - [select for diffs], Fri Apr 28 04:44:58 2000 UTC (24 years, 1 month ago) by chris
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE,
OPENBSD_2_7
Changes since 1.35: +3 -2 lines
Diff to previous 1.35 (colored)
Add vlan stuff to usage()
Revision 1.35 / (download) - annotate - [select for diffs], Wed Apr 26 19:03:46 2000 UTC (24 years, 1 month ago) by chris
Branch: MAIN
Changes since 1.34: +124 -7 lines
Diff to previous 1.34 (colored)
if_vlan support
Revision 1.34 / (download) - annotate - [select for diffs], Fri Apr 14 02:40:01 2000 UTC (24 years, 1 month ago) by itojun
Branch: MAIN
Changes since 1.33: +79 -2 lines
Diff to previous 1.33 (colored)
use getifaddrs, instead of SIOCGIFCONF. XXX ifr/ifr6 manipulation is kind of ugly.
Revision 1.33 / (download) - annotate - [select for diffs], Fri Apr 14 02:38:21 2000 UTC (24 years, 1 month ago) by itojun
Branch: MAIN
Changes since 1.32: +6 -6 lines
Diff to previous 1.32 (colored)
recover "ifconfig -a" and "ifconfig -A" behavior for inet (least surprise).
Revision 1.32 / (download) - annotate - [select for diffs], Tue Apr 11 18:08:42 2000 UTC (24 years, 1 month ago) by mickey
Branch: MAIN
Changes since 1.31: +112 -37 lines
Diff to previous 1.31 (colored)
add 802.11's nwid command; add mtu command
Revision 1.31 / (download) - annotate - [select for diffs], Fri Feb 18 08:13:31 2000 UTC (24 years, 3 months ago) by itojun
Branch: MAIN
Changes since 1.30: +9 -8 lines
Diff to previous 1.30 (colored)
more alignment fix for SIOCGIFCONF.
Revision 1.30 / (download) - annotate - [select for diffs], Fri Feb 18 05:46:10 2000 UTC (24 years, 3 months ago) by itojun
Branch: MAIN
Changes since 1.29: +11 -4 lines
Diff to previous 1.29 (colored)
avoid alignment problem in 64bit arch. netbsd 1.57 -> 1.58
Revision 1.29 / (download) - annotate - [select for diffs], Fri Feb 18 05:23:55 2000 UTC (24 years, 3 months ago) by itojun
Branch: MAIN
Changes since 1.28: +5 -4 lines
Diff to previous 1.28 (colored)
fix unaligned struct access on alpha. From: =?iso-8859-1?Q?G=F6ran_Bengtson?= <goeran@cdg.chalmers.se>
Revision 1.28 / (download) - annotate - [select for diffs], Sat Jan 15 23:56:24 2000 UTC (24 years, 4 months ago) by angelos
Branch: MAIN
Changes since 1.27: +126 -2 lines
Diff to previous 1.27 (colored)
Add "giftunnel" keyword, obsoleting gifconfig(8).
Revision 1.27 / (download) - annotate - [select for diffs], Sun Jan 9 05:56:58 2000 UTC (24 years, 4 months ago) by angelos
Branch: MAIN
Changes since 1.26: +34 -37 lines
Diff to previous 1.26 (colored)
Use getaddrinfo() in srcsa/dstsa/clearsa.
Revision 1.26 / (download) - annotate - [select for diffs], Mon Dec 27 04:19:42 1999 UTC (24 years, 5 months ago) by angelos
Branch: MAIN
Changes since 1.25: +50 -9 lines
Diff to previous 1.25 (colored)
Handle srcsa/clearsa, and rename setsa to dstsa.
Revision 1.25 / (download) - annotate - [select for diffs], Mon Dec 27 03:14:39 1999 UTC (24 years, 5 months ago) by angelos
Branch: MAIN
Changes since 1.24: +66 -2 lines
Diff to previous 1.24 (colored)
Implement setsa keyword for enc interface TDB binding.
Revision 1.24 / (download) - annotate - [select for diffs], Mon Dec 20 09:28:47 1999 UTC (24 years, 5 months ago) by itojun
Branch: MAIN
Changes since 1.23: +2 -38 lines
Diff to previous 1.23 (colored)
remove temporary workaround for library dependency problem. (this was just for kame repository)
Revision 1.23 / (download) - annotate - [select for diffs], Wed Dec 8 07:45:30 1999 UTC (24 years, 6 months ago) by itojun
Branch: MAIN
Changes since 1.22: +423 -13 lines
Diff to previous 1.22 (colored)
IPv6-enabled ifconfig from KAME. it now loops through all the aliases on interfaces. KAME_SCOPEID will be enabled when get{addr,name}info(3) are replaced with KAME code.
Revision 1.22 / (download) - annotate - [select for diffs], Wed Feb 24 21:26:03 1999 UTC (25 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_6_BASE,
OPENBSD_2_6,
OPENBSD_2_5_BASE,
OPENBSD_2_5
Changes since 1.21: +12 -5 lines
Diff to previous 1.21 (colored)
only allow src, dst address, not things like "ifconfig xx0 1 2 3 4 5 6"
Revision 1.21 / (download) - annotate - [select for diffs], Wed Feb 24 21:24:47 1999 UTC (25 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.20: +4 -3 lines
Diff to previous 1.20 (colored)
for things like "ifconfig xx0 up", do not automatically set an address.
Revision 1.20 / (download) - annotate - [select for diffs], Thu Sep 3 23:08:09 1998 UTC (25 years, 9 months ago) by jason
Branch: MAIN
CVS Tags: OPENBSD_2_4_BASE,
OPENBSD_2_4
Changes since 1.19: +5 -3 lines
Diff to previous 1.19 (colored)
Documentation for ifmedia & updated ifconfig usage
Revision 1.19 / (download) - annotate - [select for diffs], Thu Sep 3 06:24:18 1998 UTC (25 years, 9 months ago) by jason
Branch: MAIN
Changes since 1.18: +502 -38 lines
Diff to previous 1.18 (colored)
o OpenBSD gets if_media support (from NetBSD) o rework/simplify if_xl to use it
Revision 1.18 / (download) - annotate - [select for diffs], Thu Jul 9 06:12:09 1998 UTC (25 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.17: +4 -5 lines
Diff to previous 1.17 (colored)
indent
Revision 1.17 / (download) - annotate - [select for diffs], Tue Jul 7 07:26:15 1998 UTC (25 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.16: +5 -5 lines
Diff to previous 1.16 (colored)
tiny freebsd cleanups
Revision 1.16 / (download) - annotate - [select for diffs], Fri Mar 20 02:45:28 1998 UTC (26 years, 2 months ago) by angelos
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE,
OPENBSD_2_3
Changes since 1.15: +10 -2 lines
Diff to previous 1.15 (colored)
Add an explanatory comment, why we keep the interface address and keep reseting it before each ioctl().
Revision 1.15 / (download) - annotate - [select for diffs], Fri Mar 20 02:22:29 1998 UTC (26 years, 2 months ago) by angelos
Branch: MAIN
Changes since 1.14: +5 -4 lines
Diff to previous 1.14 (colored)
Pay attention.
Revision 1.14 / (download) - annotate - [select for diffs], Fri Mar 20 02:13:28 1998 UTC (26 years, 2 months ago) by angelos
Branch: MAIN
Changes since 1.13: +5 -3 lines
Diff to previous 1.13 (colored)
Should work better for aliases now, with Theo's patch (soon to come).
Revision 1.13 / (download) - annotate - [select for diffs], Tue Mar 17 08:10:21 1998 UTC (26 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.12: +147 -7 lines
Diff to previous 1.12 (colored)
finish atalk support; merged by I.McWilliam@st.nepean.uws.edu.au
Revision 1.12 / (download) - annotate - [select for diffs], Wed Dec 31 11:16:22 1997 UTC (26 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored)
address family; forget about this protocol family stuff for now
Revision 1.11 / (download) - annotate - [select for diffs], Sat Sep 20 07:51:39 1997 UTC (26 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_2_BASE,
OPENBSD_2_2
Changes since 1.10: +3 -2 lines
Diff to previous 1.10 (colored)
fix extra "no such interface" messages
Revision 1.10 / (download) - annotate - [select for diffs], Sun Sep 14 10:37:44 1997 UTC (26 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.9: +5 -5 lines
Diff to previous 1.9 (colored)
some -Wall
Revision 1.9 / (download) - annotate - [select for diffs], Sun Aug 24 20:31:50 1997 UTC (26 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.8: +8 -3 lines
Diff to previous 1.8 (colored)
if interface not found by SIOCGIFCONF when printing, complain.
Revision 1.8 / (download) - annotate - [select for diffs], Tue Jul 1 18:54:50 1997 UTC (26 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.7: +17 -8 lines
Diff to previous 1.7 (colored)
split -a into -a/-A
Revision 1.7 / (download) - annotate - [select for diffs], Tue Jun 17 14:43:33 1997 UTC (26 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.6: +49 -37 lines
Diff to previous 1.6 (colored)
make 'ifconfig -a' and 'ifconfig de0' print full ifaliases output. this was not fun, but the result sure is pretty. what is my reward?
Revision 1.6 / (download) - annotate - [select for diffs], Tue Jan 21 18:10:39 1997 UTC (27 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_1_BASE,
OPENBSD_2_1
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored)
spacing glitch
Revision 1.5 / (download) - annotate - [select for diffs], Thu Sep 19 06:01:44 1996 UTC (27 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE,
OPENBSD_2_0
Changes since 1.4: +16 -8 lines
Diff to previous 1.4 (colored)
handle more interfaces in -a mode
Revision 1.4 / (download) - annotate - [select for diffs], Fri Aug 16 09:22:41 1996 UTC (27 years, 9 months ago) by mickey
Branch: MAIN
Changes since 1.3: +134 -17 lines
Diff to previous 1.3 (colored)
ipx.
Revision 1.3 / (download) - annotate - [select for diffs], Sun Jun 23 14:30:47 1996 UTC (27 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.2: +2 -1 lines
Diff to previous 1.2 (colored)
update rcsid
Revision 1.2 / (download) - annotate - [select for diffs], Sat Jan 6 17:46:36 1996 UTC (28 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.1: +6 -3 lines
Diff to previous 1.1 (colored)
from 4.4lite2; additional data from SIOCGIFCONF is at least sockaddr sized
Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:43:35 1995 UTC (28 years, 7 months ago) by deraadt
CVS Tags: netbsd_1_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)
initial import of NetBSD tree
Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:43:35 1995 UTC (28 years, 7 months ago) by deraadt
Branch: MAIN
Initial revision