summaryrefslogtreecommitdiff
path: root/sbin/ifconfig
AgeCommit message (Collapse)Author
2021-11-03Zap swapips remnantsKlemens Nanni
There since 1998, probably dead long before. "I am sure swabips died before you were born." deraadt
2021-11-02fix previousKlemens Nanni
2021-11-02Return non-zero on failed "nwkey" commandKlemens Nanni
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
2021-10-29the list of devices which can be created it getting unwieldy and keep gettingJason McIntyre
out of date: remove it (sthen) and add a pointer to -C (dlg); ok sthen
2021-10-27Mention vether(4) and mpip(4) interfaces in the create listSolene Rapenne
ok benno@ dlg@
2021-10-22Document existent "descr" alias for "description"Klemens Nanni
2021-10-06Remove autoconfprivacy deprecation warning.Florian Obser
OK deraadt
2021-08-18Add veb(4) to the list of pseudo devices that can be created.solene
ok deraadt@
2021-08-17document 11ac as a valid wireless mode; ok stspJason McIntyre
2021-07-12Change the error reporting pattern throughout the tree when unveilBob Beck
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@
2021-07-04store provider ID in umb(4), and display it in ifconfig. OK stsp deraadtStuart Henderson
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
2021-04-17rewrite the text describing the "address" parameter into somethingJason McIntyre
easier to read;
2021-04-12Document bpe(4)kn
Diff from Marcus MERIGHI <mcmer-openbsd at tor dot at>, thanks. Feedback OK jmc OK dlg
2021-03-20RFC 8981 allows the configuration of only temporary IPv6 addresses.Florian Obser
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
2021-03-19Edit wireguard for concision. Remove some background covered by wg(4).Richard Procter
Swap -wgpeerall and wgpeer in synopsis to ease parsing. "I'm good" - Matt Dunwoodie. "just commit" - jmc suggestions and ok sthen@
2021-03-18Document "-tunneldomain" and "-mplslabel", complete MPLS synopsiskn
OK claudio
2021-03-16Move setifrtlabel() and *keepalive() prototypes out of SMALLkn
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.
2021-03-13Remove "deletetunnel" (deprecated with 6.4)kn
OK deraadt
2021-03-13Move all rdomain bits under SMALLkn
"[-]rdomain" commands are ignored under SMALL but their prototypes, the global and therefore dead print logic are still in. OK deraadt
2021-03-13Move MPLS related function prototypes under SMALLkn
OK deraadt
2021-03-12Add deprecation warning for autoconfprivacy.Florian Obser
While here check address family for 'temporary' option, only inet6 is allowed. OK kn
2021-03-11fix a double space and a macro error;Jason McIntyre
2021-03-11When RFC 8981 obsoleted RFC 4941 the terminology changed fromFlorian Obser
"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
2021-03-11Remove unhelpful sentence from TPMRkn
with dlg
2021-03-11Document veb(4)kn
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
2021-03-09Zap stray Xrkn
2021-03-09Fix TRUNK synopsis alignmentkn
2021-03-08dhclient relationship with "inet autoconf" is incorrect, it activatedTheo de Raadt
dhcpleased.
2021-03-04remove extra argument to printfJonathan Gray
2021-02-20document the monitor flag.David Gwynne
reminded by benno@
2021-02-20add support for handling the interface monitor flagDavid Gwynne
ok benno@
2021-02-10Use the same check in kernel and ifconfig for group names. ifconfigAlexander Bluhm
delete group does not need name sanitation. The kernel will just report that it does not exist. OK deraadt@ gnezdo@ anton@ mvs@ claudio@
2021-02-01change "demote counter" / "demote count" to "demotion counter", ok deraadtStuart Henderson
2021-01-17umb(4) sets a default interface priority too; mention it hereStuart Henderson
ok deraadt
2021-01-16Only recover the scope_id if it was not set. This way this code worksClaudio Jeker
both with and without embedded scope. OK bluhm@ florian@
2021-01-13Temporary addresses are preferred for 1 day and valid for 2.Florian Obser
Lifetimes are extended from router advertisements within these limits. From weerd@
2020-12-30getifaddrs() can return entries where ifa_addr is NULL. Check for thisSebastian Benoit
before accessing anything in ifa_addr. ok claudio@
2020-11-06Keep track of allowed ips pointer correctlykn
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
2020-10-07Fix display of P2P link to be consistent over all AF.denis
OK kn@, input from claudio@
2020-10-07Reverse previous, needs discussion.denis
2020-10-07Fix display of P2P link to be consistent over all AF.denis
2020-09-15umb(4) shows the speed of the LTE connection but misses the b in Mbps.Claudio Jeker
OK kettenis@
2020-08-24some tweaks to the "group" text, from evan silberman;Jason McIntyre
i replaced the suggested Cm/Ql mix with simple Dq;
2020-08-24Omit common ifconfig optionskn
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
2020-08-08Replace strto*l(3) with strtonum(3)kn
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
2020-08-08add some vertical whitespace;Jason McIntyre
2020-08-05Move TPMR section above TRUNK to sort alphabeticallykn
Reminded by jmc
2020-08-05Document tpmr ioctls and synopsiskn
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
2020-08-05Print tpmr(4) memberskn
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
2020-08-05Merge switch_status() into bridge_status()kn
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