summaryrefslogtreecommitdiffstats
path: root/sbin/ifconfig/ifconfig.c
Commit message (Collapse)AuthorAgeFilesLines
* By popular demand, added the "static ARP" per-interface option.ru2003-10-011-1/+3
|
* add a "mode" directive to specify the operating mode for multi-mode devices;sam2003-04-281-0/+1
| | | | | this is mostly intended for use with multi-mode 802.11 devices that support some combination of 11a, 11b, and 11g
* Don't abuse module names to facilitate ifconfig module loading;mdodd2003-04-151-1/+1
| | | | | | such abuse isn't really needed. (And if we do need type information associated with a module then we should make it explicit and not use hacks.)
* Kill #ifdef NS codepeter2003-03-051-72/+0
|
* Add missing #if USE_IF_MEDIA/#endif.mdodd2003-01-231-1/+4
|
* fix link_status() in non-Ethernet casefjoe2003-01-221-4/+6
| | | | MFC after: 1 week
* o display new interface capability bitssam2002-11-151-1/+1
| | | | | | o capitilize capability bit strings for consistency Approved by: re
* Report the MONITOR bit.phk2002-10-241-1/+1
|
* Rename ifconfig's "mac" argument to "maclabel" to prevent confusionrwatson2002-10-231-4/+4
| | | | | | | | | | regarding 802.1 MAC and Mandatory Access Control (MAC). Some potential for confusion remains further in other areas of the system regarding Message Authentication Codes (MAC). Requested by: wollman Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Teach ifconfig(8) how to print and set the MAC labels on networkrwatson2002-10-231-0/+10
| | | | | | | | | interfaces using the 'mac' argument. Without MAC support in the kernel, this does not change the behavior of ifconfig. Approved by: re Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Don't crash when the user feeds us nonesense in the form:dd2002-10-021-3/+4
| | | | | | | ifconfig IF ether WHATEVER -alias PR: 42544 Submitted by: Mike Makonnen <makonnen@pacbell.net>
* Add the "Monitor" interface flag.phk2002-09-271-0/+2
| | | | | | | | | | Setting this flag on an ethernet interface blocks transmission of packets and discards incoming packets after BPF processing. This is useful if you want to monitor network trafic but not interact with the network in question. Sponsored by: http://www.babeltech.dk
* Implement user-setable promiscuous mode (a new `promisc' flag for ifconfig(8)).sobomax2002-08-191-1/+3
| | | | | | | | | Also, for all interfaces in this mode pass all ethernet frames to upper layer, even those not addressed to our own MAC, which allows packets encapsulated in those frames be processed with packet filters (ipfw(8) et al). Emphatically requested by: Anton Turygin <pa3op@ukr-link.net> Valuable suggestions by: fenner
* Fix last-minute typo which breaks the world.sobomax2002-08-191-1/+1
| | | | Submitted by: many
* Increase size of ifnet.if_flags from 16 bits (short) to 32 bits (int). To avoidsobomax2002-08-181-2/+3
| | | | | | | breaking application ABI use unused ifreq.ifru_flags[1] for upper 16 bits in SIOCSIFFLAGS and SIOCGIFFLAGS ioctl's. Reviewed by: -hackers, -net
* Add eui64 option which fills interface index (lowermost 64bit ofume2002-06-151-0/+37
| | | | | | | | an IPv6 address) automatically. This should obsolete prefix(8). Obtained from: NetBSD MFC after: 2 weeks
* De-__P, use ansi function definitionsimp2002-04-181-196/+83
|
* Turn "ether" address family into a generic "link" familyru2002-03-271-54/+37
| | | | | | | | | that could be used to set/get arbitrary length link level addresses. Alias "lladdr" parameter and "ether" family to the new "link" family for backward compatibility. PR: bin/31476 MFC after: 1 week
* Remove 'register' keyword.obrien2002-03-201-11/+11
| | | | | | It does not help modern compilers, and some may take some hit from it. (I also found several functions that listed *every* of its 10 local vars with "register" -- just how many free registers do people think machines have?)
* MTU and metric are available with NET_RT_IFLIST.ru2001-12-031-22/+4
| | | | MFC after: 3 days
* When specifying an interface to ifconfig, first look up the interfacejlemon2001-10-171-25/+11
| | | | | | | | index, then retrieve statistics for that index, rather than retrieving all interfaces and then looking for a matching name. This allows the user to refer to an interface via an alias name. While I'm here, also perform a few assorted cleanups.
* Split hwcsum into rxcsum and txcsum components.jlemon2001-09-181-3/+5
|
* Teach ifconfig about the new interface capability words.jlemon2001-09-181-1/+43
|
* Actuall make plumb work in addition to create as per the manpage.brooks2001-08-171-1/+2
| | | | | PR: bin/29812 Submitted by: Joao Carlos Mendes Luis <jonny@eng05.embratel.net.br>
* ifconfig if0 netmask xxx.xxx.xxx.0 didn't change the netmask.ume2001-07-261-1/+3
| | | | | PR: bin/28833 MFC after: 3 days
* Dike out the IPX bits if RELEASE_CRUNCH is defined.obrien2001-07-211-2/+17
|
* Support network device cloning via create and destroy options.brooks2001-07-021-12/+133
| | | | | | Reviewed by: ru, ume Obtained from: NetBSD MFC after: 1 week
* Sync with recent KAME.ume2001-06-111-12/+219
| | | | | | | | | | | | | | | | | | This work was based on kame-20010528-freebsd43-snap.tgz and some critical problem after the snap was out were fixed. There are many many changes since last KAME merge. TODO: - The definitions of SADB_* in sys/net/pfkeyv2.h are still different from RFC2407/IANA assignment because of binary compatibility issue. It should be fixed under 5-CURRENT. - ip6po_m member of struct ip6_pktopts is no longer used. But, it is still there because of binary compatibility issue. It should be removed under 5-CURRENT. Reviewed by: itojun Obtained from: KAME MFC after: 3 weeks
* When using interfaces that support if_media, the supported media list isphk2001-05-291-6/+8
| | | | | | | | | printed on a single, very long, and generally unreadable line. This isn't very useful. It's also really ugly and most of the time you don't care what media is supported anyway. PR: 27701 Submitted by: Brooks Davis <brooks@one-eyed-alien.net>
* Currently, each wireless networking driver has it's own control programphk2001-05-261-0/+26
| | | | | | | | | | | | despite the fact that most people want to set exactly the same settings regardless of which card they have. It has been repeatidly suggested that this configuration should be done via ifconfig. This patch implements the required functionality in ifconfig and add support to the wi and an drivers. It also provides partial, untested support for the awi driver. PR: 25577 Submitted by: Brooks Davis <brooks@one-eyed-alien.net>
* Implement slash/CIDR notation for IPv4 and IPv6 addresses.jesper2001-05-041-0/+29
| | | | | | | MFC after: 1 week Reviewed by: phk Obtained from: NetBSD
* if no address is setted, do not call ioctl(SIOCAIFADDR)ume2001-02-211-1/+1
| | | | Obtained from: KAME
* Add missing && which absense stops 'make world'ache2000-11-301-1/+1
|
* remove an undefined reference when no VLAN support is compiled in.luigi2000-11-301-1/+5
|
* Add missing initialization for IPv6 address lifetime.ume2000-11-271-1/+35
| | | | | PR: misc/22884 Obtained from: KAME
* Show the actual command line usage in the man page and usage error string.archie2000-07-191-4/+6
|
* Make "ifconfig" with no arguments equivalent to "ifconfig -a".archie2000-07-181-0/+4
|
* Add support to the 'ether' address family to support setting of addresses.jhb2000-07-121-23/+28
| | | | | | This allows you to set ether addresses with 'ifconfig ether'. Also, use some saner socket address families that allow several special case tests to be removed.
* Implement SIOCSIFLLADDR, which allows you to change the link-levelwpaul2000-06-161-1/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | address on an interface. This basically allows you to do what my little setmac module/utility does via ifconfig. This involves the following changes: socket.h: define SIOCSIFLLADDR if.c: add support for SIOCSIFLLADDR, which resets the values in the arpcom struct and sockaddr_dl for the specified interface. Note that if the interface is already up, we need to down/up it in order to program the underlying hardware's receive filter. ifconfig.c: add lladdr command ifconfig.8: document lladdr command You can now force the MAC address on any ethernet interface to be whatever you want. (The change is not sticky across reboots of course: we don't actually reprogram the EEPROM or anything.) Actually, you can reprogram the MAC address on other kinds of interfaces too; this shouldn't be ethernet-specific (though at the moment it's limited to 6 bytes of address data). Nobody ran up to me and said "this is the politically correct way to do this!" so I don't want to hear any complaints from people who think I could have done it more elegantly. Consider yourselves lucky I didn't do it by having ifconfig tread all over /dev/kmem.
* Purely cosmetic tweak, use consistant whitespace with scopeid.peter2000-03-061-1/+1
|
* Print scope id for scoped addrs.shin2000-02-281-0/+4
| | | | Approved by: jkh
* Introduce ``add'' and ``remove'' as alternatives to ``alias'' and ``delete''.rwatson2000-02-261-0/+2
| | | | | | | | | Improve compatibility with BSD/OS, and also more accurately reflect that IP aliases aren't really any different than the primary IP address on an interface. Reviewed by: dcs Approved by: jkh
* Support IPv6 scoped addr in ifconfig and routeshin2000-02-101-7/+57
| | | | | | | | | IPv6 scoped addr display is not yet supported by ifconfig and route. Now almost of IPv6 apps support it, so its support in ifconfig and route is important to keep consisetncy, and to avoid user confusion. Approved by: jkh
* - do not dereference a null pointer.ru1999-12-291-2/+10
| | | | | | - minor sanity. PR: 15318
* Spelling correction (adress -> address)billf1999-12-161-1/+1
|
* udp IPv6 support, IPv6/IPv4 tunneling support in kernel,shin1999-12-071-8/+306
| | | | | | | | | | packet divert at kernel for IPv6/IPv4 translater daemon This includes queue related patch submitted by jburkhol@home.com. Submitted by: queue related patch from jburkhol@home.com Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project
* If we don't appear to have a module loaded supporting the interfacemsmith1999-09-201-0/+44
| | | | | | | | | | | | | | we're about to operate on, try to load one. Don't complain if the load fails, and always press on regardless (there may not be a module suitable or required). With the renaming of the PCI ethernet driver modules and the addition of appropriate miibus dependancies on those modules that need it, it is now no longer necessary to compile many ethernet drivers into the kernel; they will be loaded on demand the first time they are ifconfig'ed. Inspiration from: mount Reviewed by: obrien
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Move the IFSTATUS stuff after the address listing.phk1999-06-191-5/+5
|
* Add a new interface ioctl, to return "aux status".phk1999-06-191-1/+6
| | | | | | | | | | | | | | | | | | | This is inteded for to allow ifconfig to print various unstructured information from an interface. The data is returned from the kernel in ASCII form, see the comment in if.h for some technicalities. Canonical cut&paste example to be found in if_tun.c Initial use: Now tun* interfaces tell the PID of the process which opened them. Future uses could be (volounteers welcome!): Have ppp/slip interfaces tell which tty they use. Make sync interfaces return their media state: red/yellow/blue alarm, timeslot assignment and so on. Make ethernets warn about missing heartbeats and/or cables
OpenPOWER on IntegriCloud