summaryrefslogtreecommitdiff
path: root/sbin/ifconfig
AgeCommit message (Collapse)Author
2017-04-05various improvements, from klemens nanni;Jason McIntyre
i've omitted hunk 3 of his diff, as what's there now is correct; ok mikeb
2017-03-21Replace a magic number with the corresponding macro from ieee80211_ioctl.h.Stefan Sperling
No functional change. ok deraadt@ tb@
2017-03-20stop signposting; while here, knock out the comments;Jason McIntyre
2017-03-20as suggested by mpi, be less particular documentingJason McIntyre
where router adverts are coming from when describing autoconf; rework the description a little; ok mpi
2017-03-19"autoconf" belongs in the inet6 section, not the global options part;Jason McIntyre
while here prefer "interface" over "ip6-interface" and show that "inet6" is mandatory; ok florian mpi
2017-03-12Make ifconfig scan display both wpa1 and wpa2 if both are supported.Stefan Sperling
ok henning@ phessler@
2017-03-11Make 'ifconfig scan' display AP encryption correctly if WEP is configuredStefan Sperling
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@
2017-01-21Nuke whitespace foolish enough to expose itself during the greatKenneth R Westerback
"warning:" rectification.
2016-12-25gcc says "if you define labels and don't use them, I will whine."Kenneth R Westerback
ok tom@
2016-12-20Document our new WPA default settings. Discourage use of TKIP.Stefan Sperling
2016-12-20Make 'ifconfig if0 wpa' and 'ifconfig if0 -wpa' reset WPA params (does notStefan Sperling
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.
2016-12-13make setting and getting tunnel addresses wrt to ipv6 scope handling.David Gwynne
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@
2016-11-28Rename "flowmax" to "maxflow" and give each switch(4) ioctl aReyk Floeter
dedicated number. Both changes for consistency. OK rzalamena@
2016-11-18Make the ifconfig switch0 output nicer using a single line and theReyk Floeter
same keys as the actual commands (datapath, maxgroup, flowmax). flowmax should eventually renamed to maxflow for consistency. OK rzalamena@
2016-11-10The simple UTF-16 decode routine stopped too early due to wrong calculationGerhard Roth
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
2016-11-08- Declare usage() as __dead void (remaining prototypes are not declared asRicardo Mestre
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)
2016-10-17Use strtoull() to read the datapath id and expect "datapath" instead ofRafael Zalamena
"datapathid" as stated by the man page. ok reyk@
2016-10-06typoChristian Weisgerber
2016-09-09fix pastoJasper Lievisse Adriaanse
ok yasuoka@
2016-09-04switch tweaks;Jason McIntyre
2016-09-04Add SWITCH section for switch(4).YASUOKA Masahiko
ok goda
2016-09-03fix format string and remove unused variablesCharles Longeau
ok yasuoka@ goda@
2016-09-03Add support for a multipoint-to-multipoint mode in vxlan(4). In thisReyk Floeter
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@
2016-09-02Add switch(4) support to ifconfigKazuya Goda
ok deraadt@ yasuoka@ reyk@ henning@
2016-08-31Rename ifconfig's setinstance() function to setrdomain(). Less confusing.Stefan Sperling
ok claudio@ jca@
2016-08-19correct a rate test introduced in rev 1.326Jonathan Gray
ok stsp@
2016-08-15When running 'ifconfig scan' in hostap mode display the current Tx rate ourStefan Sperling
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@
2016-08-03Fix typo, spotted by Holger Mikolon <holger@mikolon.com>Vincent Gross
2016-06-15Add umb(4) - a driver for the Mobile Broadband Interface Model (MBIM)Gerhard Roth
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@
2016-06-14llprio now affects pppoe(4) control frames as well as arp(4) and bpf(4) writes.Stuart Henderson
2016-06-10Add the "llprio" field to struct ifnet, and the corresponding keywordVincent Gross
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@
2016-05-08Do not print MPSAFE when the corresponding bit is set on the interfaceMartin Pieuchot
flags. This read-only flag is a hint for the network stack and does not matter for end user, in fact exposing it just creates confusion. ok kettenis@, deraadt@
2016-05-03Remove INET6 #ifdefsJeremie Courreges-Anglas
ifconfig.c doesn't build without -DINET6, and those #ifdefs clutter the code. ok bluhm@ henning@
2016-04-28Show 11n HT rate in ifconfig scan output. Needs a new kernel.Stefan Sperling
ok mpi@
2016-04-18Print interface index after priority.Martin Pieuchot
Suggestion from claudio@, ok benno@, sthen@
2016-04-06move the parent and vnetid stuff around so it builds on ramdisks too.David Gwynne
ramdisk breakage found by jsg@ ok jsg@
2016-04-06document autoconfprivacy being the defaultJonathan Gray
ok stsp@ bluhm@
2016-04-06move getting the vnetid out next to getting the ifparentDavid Gwynne
its now separate to getting the tunnel address. ok mpi@
2016-03-02repair for ramdisk buildsTheo de Raadt
2016-03-02provide generic ioctls for managing an interfaces parentDavid Gwynne
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@
2016-02-28Add a missing Ns macroTim van der Molen
2016-01-13Make 'ifconfig $if mode' a valid subcommand that works independently ofStefan Sperling
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@
2016-01-07sync displayed interface flags to realityMike Belopuhov
2016-01-06correct format string. ok deraadt stspTed Unangst
2016-01-03Remove obsolete and undocumented "-carpdev" option, from Fabian Raetz.Martin Pieuchot
ok benno@, claudio@
2016-01-01rmeove unused noprint variableJoerg Jung
from Fabian Raetz via tech@ ok krw
2015-12-10Remove NULL-checks before free(). ok tb@mmcc
2015-12-09Revert SIOCDIFADDR_IN6 fix.Martin Pieuchot
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@
2015-12-06remove trailers option that was already obsolete when this code was imported.Ted Unangst
ok benno krw
2015-12-06remove txpower option. only relevant to the now irrelevant wi driver.Ted Unangst
(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