summaryrefslogtreecommitdiff
path: root/sbin/ifconfig
AgeCommit message (Collapse)Author
2007-10-31Don't leak potentially secret authname through ioctl interface.Mike Belopuhov
Suggestions from mpf@ and canacar@ ok deraadt mpf canacar
2007-10-20document the "all" interface group; after some discussion w/ mpf and henningJason McIntyre
diff from Okan Demirmen ok henning
2007-10-09Fix range check for carp vhid: vhid 0 isn't validJoel Knight
2007-09-03Typos from miod. 'specificed' -> 'specified' in some comments and man page.Kenneth R Westerback
2007-09-02use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgTheo de Raadt
2007-08-25missing free, Igor Zinovik <zinovik@cs.karelia.ru>Henning Brauer
2007-07-31oops, forgot to include the man page tweaks from jmc@Pierre-Yves Ritschard
2007-07-31When setting the vlandevice without specifying a tag, infer the tagPierre-Yves Ritschard
from the interface name, this allows constructs like: ifconfig vlan15 vlandev smth0 ok reyk@, ``makes sense'' henning@
2007-07-30strlen returns size_t.Pierre-Yves Ritschard
ok henning, mbalmer.
2007-07-30avoid segfault when empty string is passed as interface name.Pierre-Yves Ritschard
ok henning@
2007-06-19Allow IPv6 addresses to use the CIDR notation too, no need for separatePierre-Yves Ritschard
prefixlen specification when using this form. man page bits by jmc. ok henning@, ``looks sane'' djm@.
2007-06-14Add a new "rtlabel" option to ifconfig. It allows to specify a route labelReyk Floeter
which will be used for new interface routes. For example, ifconfig em0 10.1.1.0 255.255.255.0 rtlabel RING_1 will set the new interface address and attach the route label RING_1 to the corresponding route. manpage bits from jmc@ ok claudio@ henning@
2007-06-13allow IPv4 addresses to be specified in CIDR notation, no need for seperateHenning Brauer
mask in that case. initially from rivo nurges <rix@estpak.ee>, but changed quite a bit. this has annoyed me so long that I wonder why I hadn't fixed that earlier... input & ok markus deraadt, manpage also jmc
2007-06-12just because sth is an abbreviation or acronym, does not mean it'sJason McIntyre
a tradename: zap erroneous .Tn
2007-06-12zap some dead AF_NS bits; ok henningJason McIntyre
2007-06-05remove support for ipx. okay claudio@Kurt Miller
2007-06-04more ipx, spotted by jmcHenning Brauer
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-26When the SIOCGIFMEDIA ioctl fails, don't report a problem withKenneth R Westerback
'SGIOCGIFMEDIA'. Noticed by Stuart Henderson.
2006-12-20make a list of default interface groups;Jason McIntyre
ok grange deraadt ray(plus tweaks) henning
2006-11-15remove KAME_SCOPEID #ifdef.Jun-ichiro itojun Hagino
__KAME__ should suffice (__KAME__ should be nuked too?)
2006-11-11EXAMPLES was getting too lengthy, so trim some of the ones that wereJason McIntyre
either obscure, bordering on the duplicate, or referring to pseudo devices; if you want examples for pseudo devices, put them in their specific man page, please. ok jcs
2006-11-10Add -nwid command to allow wireless interfaces to not prefer a specificMichael Knudsen
access point. Does the same as nwid "" but since we have -nwkey for nwkey etc. this is nice for consistency. ok mbalmer reyk man stuff also ok jmc
2006-11-09trim SEE ALSO: there is no need to list every pseudo-deviceJason McIntyre
2006-10-25add pflog to list of clonable devices; ok henningJason McIntyre
2006-09-30Don't use uninitialized variable.Ray Lai
From Peter Philipp <peter underscore philipp at freenet dot de>. OK deraadt@.
2006-08-29allow a numeric argument to "carpdemote" to in-/decrease the demotionHenning Brauer
counter by more than one. manpage help by jmc, ok mcbride mpf deraadt
2006-08-18make non-root -M use not cut ifconfig output; ok jsgTheo de Raadt
2006-08-02remove trailing blanks in output of ieee80211_status() as well.Alexander von Gernler
help from claudio@, and ok claudio@ mickey@ mpf@
2006-07-25ifconfig output contained trailing whites in inet and groups: linesAlexander von Gernler
fix that by rearranging spaces in printf format strings ok claudio@ mpf@ mickey@
2006-06-27consistency fix and clip some trailing whitespace;Jason McIntyre
2006-06-27knfReyk Floeter
2006-06-27add the net80211 hostap options "nwflag hidenwid" for hidden SSID modeReyk Floeter
and "nwflag nobridge" to prevent inter-station communications. "hidenwid" will also work with wi(4) to replace the old -E 3 option of wicontrol. ok damien@ jmc@
2006-06-23allow ifconfig to print the signal quality of the current ap. if theReyk Floeter
driver reports a RSSI Max value, print the signal quality as a percentage instead of the arbitrary "dB" value, this also applies to the output of ifconfig -M (scan/node list). ok damien@ jsg@
2006-06-23-M clarity, ok jmc@Todd T. Fries
2006-06-22oops! i put -M in the wrong place;Jason McIntyre
2006-06-15unused variable, spotted by pedroTheo de Raadt
2006-06-14unused var, wrong check for too many keys; mrd@alkemio.orgTheo de Raadt
2006-06-12- make the sub-sections a little more consistent in namingJason McIntyre
- clarify what sppp is (from reyk)
2006-06-12- add the sppp options to pppoe's synopsisJason McIntyre
- for pppoe, note that it uses the sppp framework, and point to the sppp section for a description of those options - for sppp, avoid referring specifically to sppp devices, as other devices, such as pppoe, may be using these options this after some discussion with reyk
2006-06-11simplify usage(); ok krw deraadtJason McIntyre
2006-06-11options are optional ;)Jason McIntyre
2006-06-11split this page up into sections: it was getting too messy to read;Jason McIntyre
feedback/ok deraadt beck krw
2006-06-03better synopsis for -g; ok mpfJason McIntyre
2006-06-03groups are specified using -g, not -m; ok mpfJason McIntyre
2006-06-03Do not set newaddr to 1 if "delete" was specified beforhands. In this caseClaudio Jeker
doalias is < 0. This fixes the problem where ifconfig em0 delete 10.0.0.1 created a 0.0.0.0/0 route entry and created a total mess because of that. Diff from markus@ OK beck@ markus@
2006-06-03kill trailing whitespace;Jason McIntyre
2006-06-02Introduce attributes to interface groups.Marco Pfatschbacher
As a first user, move the global carp(4) demotion counter into the interface group. Thus we have the possibility to define which carp interfaces are demoted together. Put the demotion counter into the reserved field of the carp header. With this, we can have carp act smarter if multiple errors occur. It now always takes over other carp peers, that are advertising with a higher demote count. As a side effect, we can also have group failovers without the need of running in preempt mode. The protocol change does not break compability with older implementations. Collaborative work with mcbride@ OK mcbride@, henning@
2006-06-01Revert last commit. Modifing a interface does a remove and then an add.Claudio Jeker
We need to figure out a better way to fix this. Brought up by markus@ OK beck@
2006-06-01ifconfig should be either deleting an interface address, or adding one in oneBob Beck
invocation, not both. This change ensures that a delete does not also do an add. Fixes stupid problem where deleting the last address with ifconfig delete addr worked differently than ifconfig addr delete where the first way would re-add an address of 0.0.0.0/0 after deleting the address. ok claudio@, krw@