summaryrefslogtreecommitdiff
path: root/sbin/ifconfig
AgeCommit message (Collapse)Author
2018-05-28Remove unused <sys/param.h>kn
OK sthen mpi
2018-05-12Make LACP_STATE_BITS accessible to userlandccardenas
Update ifconfig to display LACP State (Actor and Partner) on each trunk port Ok benno@, phessler@, and tb@
2018-05-05document unit value for pltime and vltime;Jason McIntyre
from paul de weerd ok kn
2018-04-26net80211: stub SIOCS80211SCAN, make ifconfig scan instant.Paul Irofti
The following removes the functionality of the SIOCS80211SCAN ioctl. After long discussions with stps@, mpi@, and deraadt@ we decided that this was the correct way of fixing ifconfig scan from blocking the network stack. The kernel will continue scanning in the background and filling the nodes array, but ifconfig scan commands will now basically do just a SIOCG80211ALLNODES and pretty print the array. So the output stays the same but is instant. In fact, when the interface is freshly brought up, if you type fast enough, you can see the array being filled by running multiple ifconfig scans in sequence. The SIOCS80211SCAN ioctl stays for now as wi(4), pgt(4) and malo(4) still need it around. But not for long... Another change that this introduces is the fact that ifconfig scan no longer plays with UP and DOWN. If the interface is down it complains and exits. This is needed in order to maintain the nodes list. Works on iwm(4), iwn(4), urtwn(4), run(4) and athn(4). Tested by mpi@, landry@, florian@, thanks! OK mpi@.
2018-04-26Do not try getnetbyname(3) if gethostbyname(3) returns no result.Ingo Schwarze
This is part of the project to delete /etc/networks support. OK deraadt@
2018-04-26Add a '-tunneldomain' ifconfig(8) option as shorthand for 'tunneldomain 0'akoshibe
to be consistent with the '-rdomain' option. Suggested by dlg OK benno, jca, kn, phessler, jmc
2018-03-16clarify what the route priority does and what defaults are used.Sebastian Benoit
with suggestions from jmc and ok mpi@
2018-02-27handle "tunnels" without a destination addressDavid Gwynne
this is used for mgre, which has a local address but dynamically addresses other endpoints based on routing information. "tunneladdr" takes a single address (where "tunnel" takes two) and sets the destination address in the ioctl to an AF_UNSPEC destination. tunnel status is changed so it recognises this and only outputs the local address if the destination is AF_UNSPEC. the tunnel status is also changed so it can tell the difference between tunnels being unsupported on the interface (ie, ENOTTY comes back) or if there's just no address configured yet (EADDRNOTAVAIL), which allows the other tunnel params like ttl and df to be shown. tested with and without -DSMALL
2018-02-24return early on some unhandled ioctls rather than err().David Gwynne
2018-02-23Add unsetrdomain() and option -rdomain to return an interface to routingakoshibe
domain 0. OK phessler, henning, deraadt, stsp, benno
2018-02-20Move getvnetflowid() out of #ifndef SMALL to unbreak 'make release'.Theo Buehler
Diff from jsg, ok millert, benno
2018-02-20tweak previous, with some help from dlg;Jason McIntyre
2018-02-20add support for toggling partitioning a vnetid into a netid and flowidDavid Gwynne
"vnetflowid" enables it on an interface, and "-vnetflowid" disables it. a vnetid will be suffixed with + on the encap line if it an interface reports that it is enabled.
2018-02-19tweak previous;Jason McIntyre
2018-02-19add support for setting and displaying whether a tunnel allows fragmentationDavid Gwynne
ifconfig will output "nodf" or "df" on tunnel interfaces that support the ioctl., and accepts "tunneldf" and "-tunneldf" as options to try and configure it.
2018-02-15update tunnelttl to talk about the "copy" argumentDavid Gwynne
2018-02-10ifconfig can be used to to set interface flag to not do RFC 7217.Florian Obser
OK naddy, sthen man page bits input & OK jmc
2018-02-09Improve documentation of protected domains.Martin Pieuchot
Required by and ok otto@, ok jmc@
2018-02-08when using tunnelttl, let -1 mean "copy the ttl from the inner traffic".David Gwynne
tunnelttl now accepts "copy" as an argument, and prints "copy" when it sees -1. ok claudio@
2018-02-08tweak previous;Jason McIntyre
2018-02-08Add a new '-protected' option for bridge members.Martin Pieuchot
Bridge members that are part of the same protected domain, refered by a number between 1 and 31, cannot talk to each others. This is useful to isolate VMs or untrusted networks at layer 2. Members can be part of multiple protected domain making it possible to create complex protected setups. ok ccardenas@, claudio@, dlg@, henning@
2018-02-05tweak previous;Jason McIntyre
2018-02-05implement an arp filterHenning Brauer
allows arp (and rarp) requests and replies to be matched, including matching based on the source and target host and protocol adresses, and thus control over arp traffic and learning. written for medical x-ray machines, but useful in many spread out L2 networks ok claudio benno
2018-02-02Make 'ifconfig if0 wpaakms 802.1x' implicitly enable WPA.Stefan Sperling
Requring WPA to be enabled separately via 'ifconfig if0 wpa' was confusing. ok mlarkin phessler mpi
2018-01-16Recycle IFF_NOTRAILERS into IFF_STATICARP and document ownerhsipMartin Pieuchot
of IFF* flags. inputs from jmc@, ok bluhm@, visa@
2018-01-09Stop printing <not displayed> for wireless keys we know the kernel noMartin Pieuchot
longer export them to userland. ok stsp@, deraadt@, jca@
2017-11-30use the same macro consistently for the various carp balancing modes;Jason McIntyre
2017-11-30no more arp mode for carp; from martin rettbergJason McIntyre
2017-11-17replace the deletetunnel option with -tunnelSebastian Benoit
ok bluhm@
2017-11-05ifconfig <if> giftunnel was deprecated in 2001, it's never too late toSebastian Benoit
remove it ok phessler@ beck@
2017-10-30Exit printing an error message if SIOCSIFMEDIA fails.Martin Pieuchot
from Jesper Wallin.
2017-09-14clarify what inet6 autoconf does, mention and link to slaacd(8)Sebastian Benoit
ok/feedback sthen@ jmc@
2017-08-29quarterly rescan of the tree: remove unneccessary sys/param.h, andTheo de Raadt
annotate the ones which are needed.
2017-08-29Don't use isset() from sys/param.h in ifconfig. Requested by deraadtStefan Sperling
2017-08-01use AI_NUMERICHOST for getaddrinfo(), we can only configure ipSebastian Benoit
adresses on pflow(4) interfaces, so don't try to resolve hostnames. Report and fix from pjp -AT- centroid.eu ok florian@
2017-07-31The handling of 'add' used by bridge and switch in ifconfig does notJonathan Gray
error out if the ioctl returns EEXIST. Do the same for the switch specific 'addlocal' and 'portno' ioctls so netstart won't error out when rerun with the same settings in hostname.switchN. ok reyk@
2017-06-25Make ifconfig(8) default to prefixlen 128 when setting an IPv6 destinationStefan Sperling
address on a point-to-point interface. Makes it easier to configure IPv6 on interfaces such as gif(4). Specifying 'prefixlen 128' is no longer required. This is consistent with IPv4 where a netmask is not required either. ok mpi@ bluhm@ benno@
2017-06-09turns out the case of 802.1 suffixes is significant. fix up 802.1X and Q.David Gwynne
pointed out by jsg@
2017-06-08remove the timeslot code, it was only for now deleted T1 devices.Ted Unangst
ok sthen
2017-06-08consistently use lowercase suffixes for 802.1 things.David Gwynne
eg, 802.1x, 802.1q, and 802.1ad
2017-06-07use the same formatting for vlan as the rest of the page; ok dlgJason McIntyre
2017-06-07Fix clang warning about tautological compare: an unsigned long can'tChristian Weisgerber
be negative. ok deraadt@
2017-06-07update the VLAN doco.David Gwynne
the parameters are parent and vnetid, not vlandev and vlan. svlan(4) is also a thing. ok jmc@
2017-06-06make vnetid and parent commands available in SMALL ifconfigs.David Gwynne
the code behind the commands has been built on SMALL forever, this just moves it available in the cmd table. the binary doesnt change size.
2017-06-05remove vlan(4) specific output handlingDavid Gwynne
vlan(4) now understands the generic vnetid and ifparent ioctls, so this is redundant. ok henning@
2017-05-31fold the vnetid and parent lines into a single encap line.David Gwynne
this is a modest attempt to shorten the ifconfig output. encap wont show up if neither vnetid or parent are supplied by an interface. whitespace tweaks from benno@ output tweaks from reyk@ ok deraadt@ henning@
2017-05-12Make the markup of negative parameters consistently use .Cm;Ingo Schwarze
those are command modifiers, not flags. Inconsistency noticed and patch sent in by Anton dot Lindqvist at gmail dot com.
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