summaryrefslogtreecommitdiffstats
path: root/sbin/ifconfig
Commit message (Collapse)AuthorAgeFilesLines
* Show the actual command line usage in the man page and usage error string.archie2000-07-192-5/+17
|
* Make "ifconfig" with no arguments equivalent to "ifconfig -a".archie2000-07-181-0/+4
|
* Note that "ether" is a supported address family for setting addresses.jhb2000-07-121-0/+1
|
* 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-162-1/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Document "-alias".obrien2000-05-201-7/+9
|
* Purely cosmetic tweak, use consistant whitespace with scopeid.peter2000-03-061-1/+1
|
* Remove single-space hard sentence breaks. These degrade the qualitysheldonh2000-03-011-11/+22
| | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc.
* Print scope id for scoped addrs.shin2000-02-281-0/+4
| | | | Approved by: jkh
* Spelling: ``adress'' -> ``address''chris2000-02-261-1/+1
|
* Introduce ``add'' and ``remove'' as alternatives to ``alias'' and ``delete''.rwatson2000-02-262-1/+9
| | | | | | | | | 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
* Fix various man pages to stop abusing the .Bx macro to generatempp2000-01-231-1/+1
| | | | | the strings "FreeBSD" and "NetBSD". Use the .Fx or .Nx macro instead.
* - do not dereference a null pointer.ru1999-12-291-2/+10
| | | | | | - minor sanity. PR: 15318
* Spelling fix (manuall -> manual)billf1999-12-161-1/+1
| | | | Submitted by: Jeroen C. van Gelderen <jeroen@vangelderen.org>
* Spelling correction (adress -> address)billf1999-12-161-1/+1
|
* Enable INET6 by default.shin1999-12-151-1/+1
| | | | This should be OK on non INET6 enabled kernel.
* udp IPv6 support, IPv6/IPv4 tunneling support in kernel,shin1999-12-073-8/+336
| | | | | | | | | | 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
* Add comment about aliases on same subnet.phk1999-11-211-0/+2
| | | | Submitted by: Martin Blapp <mbr@imp.ch>
* 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-286-7/+7
|
* 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
* Introduce IFF_SMART bit.phk1999-06-061-2/+2
| | | | | | | | This means that the driver will add/delete routes when it knows it is up/down, rather than have the generic code belive it is up if configured. This is probably most useful for serial lines, although many PHY chips could probably tell us if we're connected to the cable/hub as well.
* Grrr... botched remote commit. Let's try this again: vlan updates,wpaul1999-03-155-11/+246
| | | | take two.
* unifdef -UISOphk1998-08-071-119/+1
| | | | Inspired by bdes comment to PR: 7419
* ioctl() request args are unsigned longs, so don't attempt to storebde1998-07-061-3/+3
| | | | | | them as ints. Among other bugs, doing so at best caused benign overflow followed by fatal sign extension on machines with 32-bit ints and 64-bit longs.
* Update man page to allow adding address_family when -l is used (this is a no opcharnier1998-07-062-62/+54
| | | | | for now). Correct use of .Nm. Short usage string (see man page for full list). Spelling. Use err(3).
* Fix typo: exit -> existdanny1998-06-081-2/+2
|
* Make 'ifconfig -l ether' only list Ethernet interfaces. This iseivind1998-03-191-5/+9
| | | | | useful, intuitive, and match the old comments in the source. Previously, 'ifconfig -l ether' and 'ifconfig -l' were equal.
* Spell 'implements' correctly.steve1998-02-011-2/+2
| | | | | PR: 5614 Submitted by: Dag-Erling Coidan Smorgrav <dag-erli@ifi.uio.no>
* Removed most unused includes of <net/if_var.h> outside the kernel.bde1998-01-161-2/+1
|
* style(9) correctionsimp1997-12-261-2/+3
| | | | Submitted by: bde
* Be extra paranoid about trusting the size of the address returned fromimp1997-12-241-2/+2
| | | | | gethostbyaddr. Submitted by: Julian Assange
* Fix a misleading comment.steve1997-10-271-2/+2
| | | | | PR: bin/4861 Submitted by: Alex <garbanzo@hooked.net>
* Make the supported media info output the default.peter1997-10-163-27/+10
| | | | | | The -m switch is now accepted for backwards compatability. Suggested by: davidg
* Spell out a few things for the media options.peter1997-09-271-5/+14
|
* Clean up some more. Move parsing of sysctl iflist data into a singlepeter1997-05-103-192/+169
| | | | | | place rather than updating the main loop's index variables from within a subroutine and other revolting things like that. Move some more globals into local variables.
* Grumble.. My last patchup here didn't quite work either. I hate thispeter1997-05-103-30/+46
| | | | | | | program and it's use of global variables. Somehow, I managed to miss the most obvious case.. "ifconfig ed0 10.0.0.1" failed (no "inet") Submitted by: dfr
* Restore unintentially lost backwards compat behavior of defaulting topeter1997-05-071-8/+6
| | | | | | | family inet if not specified. (eg: "ifconfig ed0" down would fail because no family was specified, even though the up/down status is not per family) Pointed out by: Wolfgang Helbig <helbig@MX.BA-Stuttgart.De>
* Commit hooks for ifmedia support. It's optional in the Makefile, andpeter1997-05-043-3/+77
| | | | can be trivially disabled.
* Bring in the ifmedia components of NetBSD's ifconfig as a seperate file.peter1997-05-041-0/+526
| | | | Obtained from: Jason Thorpe via NetBSD
* Second try at cleanups and fixes (without if_media stuff for the moment)peter1997-05-041-106/+174
| | | | | | | | | | | | | | | - parse command options using getopt for consistancy - sanitise the command parsing so that it's less like spaghetti - implement a "-l" option (idea from NetBSD - just list names) - attempt to clean up the sysctl parsing loop some more. It still needs to be taken out the back and shot though. - cut down on global usage, but there's a lot more scope for this. - make usage string a bit closer to reality (it was missing lots of things) Unfortunately, I did this for the second time but with the memory of the NetBSD version still recently in my mind. It's hard to redo simple changes or getopt stuff without making it look like what you've been working with a few hours ago.
* force null commit to skip over rev 1.25 so there's less cvs troublepeter1997-05-041-1/+1
|
* Grab some of the NetBSD text for describing the new options and thepeter1997-05-031-32/+66
| | | | media commands.
* Revert $FreeBSD$ to $Id$peter1997-02-223-3/+3
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-143-3/+3
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Sort cross references.wosch1997-01-131-2/+2
|
* Update to match changes in <net/if.h>.wollman1997-01-031-1/+2
|
* Fix up programs which expect <net/if.h> to include <sys/time.h> to insteadwollman1996-12-101-1/+2
| | | | | | do it themselves. (Some of these programs actually depended on this beyond compiling the definition of struct ifinfo!) Also fix up some other #include messes while we're at it.
OpenPOWER on IntegriCloud