summaryrefslogtreecommitdiff
path: root/sbin/ifconfig/ifconfig.c
AgeCommit message (Collapse)Author
2004-11-02KNF - reyk, look at this diffHenning Brauer
not that ifconfig is our prime example for nicely KNF'd and readable code tho
2004-11-02spacingTheo de Raadt
2004-11-02added new commands to ifconfig used by net80211 interfaces:Reyk Floeter
mode (set mode for multi-mode interfaces) and chan (set the radio channel). some additional output will be printed by "ifconfig -m". ok deraadt@ millert@ damien@
2004-10-11ifgroups reqriteHenning Brauer
there is now a TAILQ with all interface groups as members, and in struct ofnet there is only a pointer to the group structure stored and not its name. mostly hacked at c2k4 and somewhere over the atlantic ocean ok markus mcbride
2004-09-15ARGSUSED, remove unused, ...Theo de Raadt
2004-08-08spacingTheo de Raadt
2004-08-03Allow a unicast ip address to be specified for pfsync with the 'syncpeer'Ryan Thomas McBride
keyword. This address is used instead of the multicast address to send state updates; this allows pairs of pfsync firewalls to protect the traffic with IPSec. ifconfig must be updated to match the kernel.
2004-07-03zap INET_ONLY, compress usage(); jaredTheo de Raadt
2004-07-03ansi; jaredTheo de Raadt
2004-06-26cleanup ioctl for ifgroups; ok pb@Markus Friedl
2004-06-26Add option that allows to change timeslot range forn network card.Alex Feldman
ok mcbride@
2004-06-26ignore IFGROUP errs in ifconfig -a for "too old" kernels right nowPhilipp Buehler
2004-06-26more netiso leftoversPhilipp Buehler
by pointer from yared janovich henning@ ok
2004-06-26groups in usage() - from jared yanovichPhilipp Buehler
2004-06-25introduce "interface groups"Philipp Buehler
by "ifconfig fxp0 group foobar" "ifconfig xl0 group foobar" these two interfaces are in one group. Every interface has its if-family as default group. idea/design from henning@, based on some work/disucssion from Joris Vink. henning@, mcbride@ ok.
2004-06-24remove netiso stuffHenning Brauer
2004-06-21Make printing of 802.11 fields consistent with the rest by printingTodd C. Miller
a colon (':') after the field name. Noticed by markus@, OK deraadt@
2004-05-29introduce SIOCSIFDESCR and SIOCGIFDESCR to maintain interfacejoshua stein
descriptions, configurable with ifconfig help from various, ok deraadt@
2004-05-18Trailers are really wonders of the past. Remove them from man page andOtto Moerbeek
usage. ok millert@
2004-05-10missing casts spotted by 64 bit ccTheo de Raadt
2004-05-05use strtonum all over the place; ok pb millertTheo de Raadt
2004-04-27clean up ifdef hellPhilipp Buehler
2004-04-27reworking of man page and sync/update usage();Jason McIntyre
this stuff is based mostly on diffs from jared yanovich, with some stuff from myself and otto; ok naddy@ otto@ markus@ deraadt@
2004-04-27missing ';' in actually unreached code (pointed out by logix(at)franken.de)Philipp Buehler
2004-03-18Allow the state of a carp interface to be changed explicitly.Ryan Thomas McBride
ok markus@
2004-03-15some small knfTheo de Raadt
2004-03-08Prevent user from specifying an interface name longer than IFNAMSIZ.Ryan Thomas McBride
ok millert@
2004-02-26Deal correctly with printing interfaces with multiple trailing digits.Todd C. Miller
E.g. "ifconfig vlan1" should only match vlan1, not vlan1, vlan10, vlan11, etc. OK tdeval@, hshoexer@, otto@. Closes PR 3693.
2004-01-13Allow ifconfig to print out all interfaces of a given type.Ryan Thomas McBride
ie. 'ifconfig carp' prints out all carp interfaces. ok hshoexer@ tdeval@
2003-12-23automagically create pseudo-network interfaces; ok deraadt@Markus Friedl
2003-12-15Add initial support for pf state synchronization over the network.Ryan Thomas McBride
Implemented as an in-kernel multicast IP protocol. Turn it on like this: # ifconfig pfsync0 up syncif fxp0 There is not yet any authentication on this protocol, so the syncif must be on a trusted network. ie, a crossover cable between the two firewalls. NOTABLE CHANGES: - A new index based on a unique (creatorid, stateid) tuple has been added to the state tree. - Updates now appear on the pfsync(4) interface; multiple updates may be compressed into a single update. - Applications which use bpf on pfsync(4) will need modification; packets on pfsync no longer contains regular pf_state structs, but pfsync_state structs which contain no pointers. Much more to come. ok deraadt@
2003-12-08add IOCIFGCLONERS; ifconfig -C; from netbsd; ok henning, deraadtMarkus Friedl
2003-12-07ANSIMarkus Friedl
2003-12-03add support for ifconfig clone; from netbsd; ok deraadt, henningMarkus Friedl
2003-11-09Unbreak printing of vlan interface information, commented out accidentallyRyan Thomas McBride
in CARP import.
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.