summaryrefslogtreecommitdiff
path: root/sbin/ifconfig
AgeCommit message (Collapse)Author
2024-06-29remove unused varsJonathan Gray
2024-06-09Introduce IFCAP_VLAN_HWOFFLOAD for vio(4).Jan Klemkow
Add IFCAP_VLAN_HWOFFLOAD to signal hardware like vio(4) can handle checksum or TSO offloading with inline VLAN tags. tested by Mark Patruck, sf@ and bluhm@ ok sf@ and bluhm@
2024-05-18remove prototype with no matching functionJonathan Gray
2024-04-23correct indentation; no functional changeJonathan Gray
ok tb@
2024-01-11ifconfig.8: reorder hwfeature listJan Klemkow
ok jmc@
2023-11-23add an endpoint command for "bridges" that use addresses as endpoints.David Gwynne
this can be used to add static entries on interfaces like vxlan(4).
2023-11-23add support for specifying ports on the src address in tunnel endpoints.David Gwynne
2023-10-29Use clock_gettime(), not timespec_get() like other parts of ifconfig.Todd C. Miller
This makes is possible to build the base system with a C99 compiler. OK deraadt@ mvs@
2023-07-18Enable LRO for TCP per default in the network drivers.Alexander Bluhm
Large Receive Offload allows to receive aggregated packets larger than the MTU. Receiving TCP streams becomes much faster. As the network hardware is not aware whether a packet is received locally or to be forwarded, everything is aggregated. In case of forwarding it is split on output to packets not larger than the original packets. So path MTU discovery should still work. If the outgoing interface supports TSO, the packet is chopped in hardware by TCP Segmentation Offload. Currently only ix(4) and lo(4) devices support LRO, and ix(4) is limited to IPv4 and hardware newer than the old 82598 model. If the interface is added to a tpmr(4), bridge(4) or veb(4), LRO is automatically disabled. All ix(4) devices support outgoing TSO for IPv4 and IPv6. Enabling LRO on lo(4) automatically enables TSO and TCP packets larger than the MTU pass the loopback interface. LRO can be turned off per interface with ifconfig -tcplro. OK jan@
2023-06-09Readd "-wgpsk", accidentially dropped in r1.465 adding "wgdescr"Klemens Nanni
Noticed by Bradley Latus Diff from Jane Johansson OK tb
2023-06-07Rename ifconfig tcprecvoffload to tcplro. It is shorter andAlexander Bluhm
more consistent. discussed with jan@ mvs@ chris@ claudio@ dlg@
2023-06-01Add support for wireguard peer descriptionsKlemens Nanni
"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
2023-05-16Use separate IFCAPs for LRO and TSO.Jan Klemkow
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
2023-05-12Add interface names in front of error messages.Jan Klemkow
Suggested by Hrvoje Popovski. ok phessler@
2023-04-26Add parent to nvgre in ifconfig.8.ASOU Masato
ok david@
2023-04-25add eoip to keepalive.ASOU Masato
ok david@
2023-04-21add -pweneighbor.ASOU Masato
ok deraadt@
2023-03-08Delete obsolete /* ARGSUSED */ lint comments.Philip Guenther
ok miod@ millert@
2023-03-07Avoid enabling TSO on interfaces which are already attached to a bridge.Jan Klemkow
with tweaks from claudio and deraadt ok claudio, bluhm
2023-02-27sort VEB and add "rules"; ok stspJason McIntyre
2023-02-27Add missing documentation of veb(4) ioctls to the ifconfig(8) VEB section.Stefan Sperling
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@
2023-01-18remove redundant SIOCS80211JOIN ioctl call in ifconfig delifjoinlist()Stefan Sperling
Found by Mathias Koehler, thanks!
2022-12-23point readers, where relevant, to route(8) rather than netstat(1) or route(4);Jason McIntyre
remove some redundant info regarding netstat -r from ipcomp/ipsec feedback claudio sthen ok claudio kn sthen
2022-12-18Unify RSSI checkKlemens Nanni
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
2022-11-26- in SYNOPSIS, redo the formatting for "address" and "dest address" to avoidJason McIntyre
an ugly line split on narrower terminals - in usage(), match the output
2022-11-25ifconfig -M <mac> finds the address on an interface and prints it.Theo de Raadt
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
2022-10-26Limit wireguard peers listing to -A or wg-interfaceKlemens Nanni
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
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