IABSD.fr/src/sbin/ifconfig

Branch :


Log

Author Commit Date CI Message
b1faa4dd 2023-02-27 14:53:38 sort VEB and add "rules"; ok stsp
58958f7a 2023-02-27 13:30:59 Add missing documentation of veb(4) ioctls to the ifconfig(8) VEB section. These ifconfig commands are supported by veb(4) but were undocumented: deladdr flushrule maxaddr rule rulefile static timeout up As was done before, copy relevant prose from the BRIDGE section. ok jmc@
3f13b11d 2023-01-18 21:57:10 remove redundant SIOCS80211JOIN ioctl call in ifconfig delifjoinlist() Found by Mathias Koehler, thanks!
160890f3 2022-12-23 07:16:54 point readers, where relevant, to route(8) rather than netstat(1) or route(4); remove some redundant info regarding netstat -r from ipcomp/ipsec feedback claudio sthen ok claudio kn sthen
f06e4e2b 2022-12-18 18:56:38 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
e6506698 2022-11-26 07:26:43 - in SYNOPSIS, redo the formatting for "address" and "dest address" to avoid an ugly line split on narrower terminals - in usage(), match the output
846b8ba2 2022-11-25 23:09:20 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
819299a5 2022-10-26 17:06:31 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
4e688912 2022-07-08 07:04:54 remove unused variables
d543161a 2022-06-27 16:27:03 tweak the tso text a little;
bde39c35 2022-06-27 15:11:23 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
edb2f6ab 2022-05-14 07:22:10 Document usage of tunneladdr Input and OK dlg@ and jmc@
aeeb6b7d 2022-04-07 16:41:13 constify ifmedia descriptions; ok deraadt@ miod@
ada90a5b 2022-03-07 08:13:13 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@
15d176e9 2022-02-22 09:55:54 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@
7f673153 2021-12-29 21:41:28 make the argument name for veb's "child-iface" consistent; from caspar schutijser
e0790d6d 2021-11-23 19:13:45 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
97bcf35f 2021-11-17 18:00:24 Display DNS information from sppp(4) in ifconfig(8) Behaviour is similar to that of umb(4). OK kn@
ae8716e3 2021-11-14 03:02:06 "autoconf" is an automatic "up" OK deraadt
ffcecb3d 2021-11-11 09:39:16 Remove switch(4) specific bits from ifconfig. OK deraadt@ patrick@
e44563d9 2021-11-03 02:02:36 Zap swapips remnants There since 1998, probably dead long before. "I am sure swabips died before you were born." deraadt
a1dca4f0 2021-11-02 23:39:27 fix previous
ccd2b0c0 2021-11-02 23:36:43 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
78f0023e 2021-10-29 16:42:57 the list of devices which can be created it getting unwieldy and keep getting out of date: remove it (sthen) and add a pointer to -C (dlg); ok sthen
144d14a4 2021-10-27 06:36:51 Mention vether(4) and mpip(4) interfaces in the create list ok benno@ dlg@
878eb1b3 2021-10-22 18:35:27 Document existent "descr" alias for "description"
1648f267 2021-10-06 06:14:08 Remove autoconfprivacy deprecation warning. OK deraadt
d69a8b88 2021-08-18 18:10:33 Add veb(4) to the list of pseudo devices that can be created. ok deraadt@
d610d240 2021-08-17 08:19:55 document 11ac as a valid wireless mode; ok stsp
bc5a8259 2021-07-12 15:09:18 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@
5a5baf73 2021-07-04 19:22:31 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
411213d3 2021-04-17 06:01:49 rewrite the text describing the "address" parameter into something easier to read;
3c990b3b 2021-04-12 03:17:57 Document bpe(4) Diff from Marcus MERIGHI <mcmer-openbsd at tor dot at>, thanks. Feedback OK jmc OK dlg
f7cbc8fb 2021-03-20 17:11:49 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
104cbbca 2021-03-19 19:36:10 Edit wireguard for concision. Remove some background covered by wg(4). Swap -wgpeerall and wgpeer in synopsis to ease parsing. "I'm good" - Matt Dunwoodie. "just commit" - jmc suggestions and ok sthen@
0437a034 2021-03-18 14:16:38 Document "-tunneldomain" and "-mplslabel", complete MPLS synopsis OK claudio
91d8ea99 2021-03-16 19:24:36 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.
9402abba 2021-03-13 21:23:29 Remove "deletetunnel" (deprecated with 6.4) OK deraadt
534df53f 2021-03-13 21:21:36 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
6895fb5f 2021-03-13 21:14:15 Move MPLS related function prototypes under SMALL OK deraadt
e0c535b7 2021-03-12 17:25:02 Add deprecation warning for autoconfprivacy. While here check address family for 'temporary' option, only inet6 is allowed. OK kn
6e9d3727 2021-03-11 21:07:16 fix a double space and a macro error;
4d35d720 2021-03-11 19:53:39 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
7c366440 2021-03-11 10:12:51 Remove unhelpful sentence from TPMR with dlg
090f4fe9 2021-03-11 10:09:48 Document veb(4) All text is copied from other already existing sections, i.e. link flag handling from TPMR and the rest from BIDGE. Contrary to BRIDGE, add a synopsis for VEB such that there's a simple overwiew, especially since veb(4) currently does not explain *how* to use the described features. NB: While TPMR and VEB use the same wording for link flags, their semantics are different, i.e. both different flags and swapped polarity for those flags. Feedback jmc dlg OK dlg
eddf4b59 2021-03-09 19:39:20 Zap stray Xr
67d85d61 2021-03-09 19:05:30 Fix TRUNK synopsis alignment
37b1d311 2021-03-08 17:39:16 dhclient relationship with "inet autoconf" is incorrect, it activated dhcpleased.
a82f3303 2021-03-04 07:46:26 remove extra argument to printf
e83283fc 2021-02-20 01:21:04 document the monitor flag. reminded by benno@
90851772 2021-02-20 01:17:45 add support for handling the interface monitor flag ok benno@
dd7c33c7 2021-02-10 14:45:27 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@
074f2e7f 2021-02-01 16:39:50 change "demote counter" / "demote count" to "demotion counter", ok deraadt
677e2e7f 2021-01-17 20:35:31 umb(4) sets a default interface priority too; mention it here ok deraadt
bb6e896b 2021-01-16 17:44:29 Only recover the scope_id if it was not set. This way this code works both with and without embedded scope. OK bluhm@ florian@
8bdee48f 2021-01-13 08:01:44 Temporary addresses are preferred for 1 day and valid for 2. Lifetimes are extended from router advertisements within these limits. From weerd@
ce037e3a 2020-12-30 18:57:28 getifaddrs() can return entries where ifa_addr is NULL. Check for this before accessing anything in ifa_addr. ok claudio@
3da3dc9d 2020-11-06 21:24:47 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
c631a3cb 2020-10-07 14:38:54 Fix display of P2P link to be consistent over all AF. OK kn@, input from claudio@
7e8cc304 2020-10-07 11:36:05 Reverse previous, needs discussion.
81c35389 2020-10-07 11:34:11 Fix display of P2P link to be consistent over all AF.
2e367358 2020-09-15 15:23:11 umb(4) shows the speed of the LTE connection but misses the b in Mbps. OK kettenis@
0f8f82d6 2020-08-24 17:28:01 some tweaks to the "group" text, from evan silberman; i replaced the suggested Cm/Ql mix with simple Dq;
918ba992 2020-08-24 07:34:00 Omit common ifconfig options ifconfig(8)'s TRUNK (LINK AGGREGATION) nicely combines the two drivers, so omit common stuff from the drives specific manuals. This aids in the overall design of having options documented in ifconfig(8) alone unless they're inherently driver specific, e.g. "trunkproto" which stays in trunk(4). OK jmc
5a276e38 2020-08-08 12:38:21 Replace strto*l(3) with strtonum(3) Some bridge options allow values bigger than the corresponding datatype and thus pass overflowed values to the kernel, not all options to range checks and setting invalid "portno" complains about "portidx" values. Use the same, simpler strtonum() idiom across all options with consistent error messages and proper [U]INT*_MAX defines as max values to match the datatype and all option handlers to be consistent (in less code). Keep deferring option dependent min/max value checking to the ioctl(2) interface, i.e. values documented in ifconfig(8) are not duplicated in strtonum() calls. OK millert
59aba2cd 2020-08-08 06:06:24 add some vertical whitespace;
daccb5c0 2020-08-05 16:45:41 Move TPMR section above TRUNK to sort alphabetically Reminded by jmc
5afedbbf 2020-08-05 14:55:40 Document tpmr ioctls and synopsis Add missing TPMR section to ifconfig(8) by moving the commands from the driver's manual to it (copy/paste) and document the ioctl(2) interface in tpmr(4). Indenting tpmr's first EXAMPLE while here; from jmc. OK jmc
efea9761 2020-08-05 06:22:11 Print tpmr(4) members tpmr is a trivial bridge and has no specific ioctls, so to distinguish it from the rest we must rely on the interface name; assuming that it is tpmr because neither is_bridge() nor is_switch() return success is not possible due to the way ifconfig is designed: it runs all *_status() commands for all interface types. OK dlg
4b4b0d56 2020-08-05 06:12:43 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
1b8fad28 2020-07-29 12:13:28 Remove redundant bridge checks bridge_status() and switch_status() do the regular sanity check with SIOCGIFFLAGS, but both functions also call is_switch() and bridge_status() also calls is_bridge(). is_bridge() checks SIOCGIFFLAGS again, then both is_*() helpers finally do driver specific ioctl(2) calls to test whether the given interface is indeed a bridge(4) or a switch(4). SIOCGIFFLAGS serves no purpose here and is taken care of in ifconfig.c's getinfo(), so remove its calls from brconfig.c entirely. OK dlg
7726dc73 2020-07-26 18:34:10 Document aggr(4) in the TRUNK section Complete the synopsis while here. Feedback OK jmc
c99d424e 2020-07-03 17:42:50 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
7f81d908 2020-06-27 17:46:29 remove the spacing around "arp | rarp", as prompted by schwarze;
f4a7cdef 2020-06-27 15:31:36 macro fixes; from matthew martin
706342af 2020-06-24 17:40:10 spelling fix; from matthias schmidt
13c6a8d8 2020-06-22 02:08:43 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
f631c90b 2020-06-21 15:24:32 various minor tweaks;
ece5a8ca 2020-06-21 13:41:05 wgpip -> wgendpoint. ok dlg@
f5cd887e 2020-06-21 12:20:06 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@
a5564b58 2020-04-29 13:13:29 Add the 'nomimo' nwflag which disables MIMO in 11n mode. This flag restricts a wireless driver to MCS0 - MCS7 for both transmission and reception. It can be set to work around packet loss in 11n mode caused by unused antenna connectors on a MIMO-capable wireless network device. man page tweak from tracey@ ok deraadt@
48c01a1f 2020-04-23 21:28:08 ce examples of "Ar arg Ar arg" with "Ar arg arg" and stop the spread;
2a0a963a 2020-02-27 08:28:35 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@
4f073993 2020-02-24 10:39:00 fix column alignment of 'ifconfig joinlist'; padding had an extra " "
5cc95cdd 2020-02-24 10:06:05 Don't needlessly cap SSID width in 'ifconfig joinlist' (matters with hex SSIDs). ok kevlo@
7f1d7e04 2020-02-24 10:05:34 Clarify that nwid/join SSIDs must be printable ASCII if they're not hex. ok kevlo@
e61a622d 2020-02-18 08:09:37 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.
478f2fec 2020-01-22 06:24:07 remove semicolons not needed after } statements. ok deraadt
32c195e0 2019-12-27 14:34:46 Fix ifconfig WPA key installation with max allowed length SSIDs. ok claudio phessler deraadt sthen
35f18f03 2019-11-30 05:42:31 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@
7302e971 2019-11-27 17:49:09 use _PATH_ names for unveil if possible
0bd88dc9 2019-11-10 09:10:44 Update wifi-related documentation in ifconfig man page. ok jmc deraadt
4cfa599e 2019-10-24 18:54:10 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@
d6a6566d 2019-10-17 18:37:38 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@
7808be20 2019-09-20 12:37:04 Document the output of 'ifconfig scan' in client mode. ok mlarkin
799b58a5 2019-09-02 12:54:21 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@
b9e78166 2019-08-30 03:52:20 whitespace, found while pondering improvements to sffdump
da9583c4 2019-08-29 03:08:50 fix a comparison which generated a warning on sparc64. found by deraadt@
f81e3884 2019-08-29 02:05:58 make the list of OM fibre distances go OM1, OM2, OM3, not OM2, OM1, OM3
20428388 2019-08-28 01:52:38 s/No separable connector/No connector/ shrinks some QSFP+ DAC output a bit.