summaryrefslogtreecommitdiff
path: root/sbin/ifconfig
AgeCommit message (Collapse)Author
2022-07-08remove unused variablesJonathan Gray
2022-06-27tweak the tso text a little;Jason McIntyre
2022-06-27Introduce Large Receive Offloading of TCP segment offloading for ix(4). It isJan Klemkow
disabled by default. Also add a tso option to ifconfig(8) to enable and disable this feature. ok deraadt
2022-05-14Document usage of tunneladdrDenis Fondras
Input and OK dlg@ and jmc@
2022-04-07constify ifmedia descriptions; ok deraadt@ miod@Christian Weisgerber
2022-03-07rename net80211 ioctl struct ieee80211_channel to struct ieee80211_chaninfoStefan Sperling
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@
2022-02-22don't hide the mtu on "bridge" interfaces.David Gwynne
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@
2021-12-29make the argument name for veb's "child-iface" consistent;Jason McIntyre
from caspar schutijser
2021-11-23Use system uptime not UTC time to calculate PPPoE session durationKlemens Nanni
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
2021-11-17Display DNS information from sppp(4) in ifconfig(8)Bjorn Ketelaars
Behaviour is similar to that of umb(4). OK kn@
2021-11-14"autoconf" is an automatic "up"Klemens Nanni
OK deraadt
2021-11-11Remove switch(4) specific bits from ifconfig.Claudio Jeker
OK deraadt@ patrick@
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