summaryrefslogtreecommitdiff
path: root/sbin/ifconfig/ifconfig.c
AgeCommit message (Collapse)Author
2003-10-19Remove commented out debug line committed by mistake.Ryan Thomas McBride
2003-10-17Common Address Redundancy ProtocolRyan Thomas McBride
Allows multiple hosts to share an IP address, providing high availability and load balancing. Based on code by mickey@, with additional help from markus@ and Marco_Pfatschbacher@genua.de ok deraadt@
2003-09-24realloc fixTheo de Raadt
2003-09-23fix a few strlcpyTheo de Raadt
2003-07-30change SIOCDIFADDR/SIOCAIFADDR warnings into errors (now this has correctPeter Valchev
return code in certain cases); ok henning itojun
2003-06-26bring protypes into scope. this requires some quirky handling, but inTheo de Raadt
the end everything is much clearer; ok tedu (itojun might like to see how ifconfig looks after this)
2003-06-11ansificationTheo de Raadt
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-05-14move ETHERTYPE_xx declarations to <net/ethertypes.h>. meets netbsd practice.Jun-ichiro itojun Hagino
deraadt ok
2003-03-16modifed -> modifiedmargarida
2002-11-24KNFHenning Brauer
2002-11-24consistency: use sin6 as variable name for sockaddr_in6, not sinHenning Brauer
no functional changes ok millert@ pval@
2002-11-23typo (in #ifdef'd out code, but well...); Michal Ludvig <michal at logix.cz>Henning Brauer
2002-07-08make failed SIOCG80211NWKEY print alert more clearly; ↵Theo de Raadt
jolan@norm.encryptedemail.net
2002-06-19Since we can no longer count on isprint() to tell us whether or notTodd C. Miller
a character is 7-bit ASCII, check the high bit by hand when deciding whether to print a WEP key as ASCII or hex.
2002-06-14add "eui64" option. from ww@styx.org. sync usage with reality.Jun-ichiro itojun Hagino
2002-06-14metric and mtu are u_long, not int.Jun-ichiro itojun Hagino
2002-06-10print ethernet address; ok provos@, itojun@Markus Friedl
2002-05-22strcpy, sprintf death; mpech okTheo de Raadt
2002-04-26use struct in_aliasreq instead of ifaliasreq when setting new inetFederico G. Schwindt
address. solves a sigbus error seen on sparc64 with new binutils. from itojun@
2002-04-25no need for __alignment__, it was paste error. from fgs/deraadtJun-ichiro itojun Hagino
2002-04-10Add missing IFM_OPTIONS macro. Previously 'ifconfig -mediaopt' couldTodd C. Miller
clear bits other than media options. Fix from NetBSD.
2002-02-23Add support for nwkey and powersave; from NetBSDTodd C. Miller
2002-02-21i_nwid is not a NUL-terminated string. Use the length parameter for theTodd C. Miller
length and sanity check against IEEE80211_NWID_LEN.
2002-02-19when printing out the option list compare the option part only; fixes 802.11 ↵Michael Shalayeff
mediaopt printing
2002-02-17Manual cleanup of remaining userland __P use (excluding packages maintained ↵Todd C. Miller
outside the tree)
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2001-11-13make setting ipx frame type work; from Ian McWilliam <ianm@cit.uws.edu.au>Michael Shalayeff
2001-11-05kill more registers;Mike Pechkin
millert@ ok
2001-10-30strncpy() -> strlcpy(); from Jean-Francois BrousseauTodd C. Miller
2001-08-19fix buffer underrun on 1.51Jun-ichiro itojun Hagino
2001-08-18more careful with snprintf result codeTheo de Raadt
2001-07-25do not write into s6_addr[16] (out of bounds).Jun-ichiro itojun Hagino
2001-07-07major -Wall cleanup, almost completeTheo de Raadt
2001-05-07tunneldelete -> deletetunnelMarkus Friedl
2001-05-02implement "deletetunnel" (removes tunnel outer IP address pair)Jun-ichiro itojun Hagino
rename "giftunnel" intto "tunnel", to reduce diffs with netbsd. (giftunnel is still usable for backward compat) markus and niels ok'ed.
2001-03-01on "giftunnel" configuration, use specified address familyJun-ichiro itojun Hagino
2001-02-20provide SIOC[SG]LIFPHYADDR, which greatly simplify userland manipulation.Jun-ichiro itojun Hagino
sync with kame. old ioctls are kept but not really recommended.
2001-01-18permit prefixlen against inet address, like:Jun-ichiro itojun Hagino
# ifconfig fxp0 10.0.0.1 prefixlen 23
2000-12-30Remove the dstsa/srcsa/clearsa directives, the bridge will be usingAngelos D. Keromytis
the gif interface instead.
2000-12-18fix nwid get/setMichael Shalayeff
2000-11-10show pltime=0 address as "deprecated". sync with kame.Jun-ichiro itojun Hagino
2000-08-03Fix compilation in non-INET6 case (rfunk@funknet.net)Angelos D. Keromytis
2000-06-30correct address family handling in "giftunnel".Jun-ichiro itojun Hagino
test with the following: # ifconfig gif0 inet giftunnel localhost localhost # ifconfig gif0 inet6 giftunnel localhost localhost
2000-05-22correct gif physical address printing on non-IPv6 kernel.Jun-ichiro itojun Hagino
2000-05-15better scoped address handling on gif physical address printing.Jun-ichiro itojun Hagino
(hide kame ifidx hack)
2000-04-28Add vlan stuff to usage()Chris Cappuccio
2000-04-26if_vlan supportChris Cappuccio
2000-04-14use getifaddrs, instead of SIOCGIFCONF.Jun-ichiro itojun Hagino
XXX ifr/ifr6 manipulation is kind of ugly.
2000-04-14recover "ifconfig -a" and "ifconfig -A" behavior for inet (least surprise).Jun-ichiro itojun Hagino