summaryrefslogtreecommitdiffstats
path: root/sbin/ifconfig
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Fix lots of non-bug questionable code:wollman1996-11-212-112/+155
| | | | | | | | | | | | | - Don't link against libkvm and don't uselessly include <kvm.h>. - Declare constant objects as const. - Declare functions with the correct types. - Call functions with the correct parameters. Not fixed: - The sysctl parsing remains ugly (but it may be the best we can do). - atnetrange() should use strtoul() rather than sscanf() for better error checking.
* Bring back NS support for this utility - we need it for the commercial Novelljkh1996-10-161-0/+1
| | | | server software.
* Fixed DPADD.bde1996-09-051-1/+1
|
* Just realised the man page didn't mention the appletalk specific optionsjulian1996-09-041-1/+9
| | | | | to ifconfig.. so I 've added them..
* Get rid of an unexpectedly bogus sanity check under appletalk becausejulian1996-09-041-3/+3
| | | | | | | | | | it stopped us from removing or setting loopback address on lo0: also make use of the fact the athe sockaddre_at struct now has a "netrange" field. CVS ----------------------------------------------------------------------
* Submitted by: archie@whistle.comjulian1996-07-231-20/+68
| | | | appletalk cleanups
* Grammar fix described by wollman in response to PR 1363.alex1996-07-141-1/+1
|
* Submitted by: Archie@whistle.comjulian1996-07-092-2/+60
| | | | | Obtained from: Whistle Communications patches to allow ifconfig to work with appletalk addresses etc.
* XNS sort-of-support is no more.wollman1996-02-132-29/+46
|
* Remove support for OSI networking in user-land (#ifdef OSI aor CCITT)wollman1996-02-062-63/+72
| | | | | in preparation for its removal from the kernel source tree. NB: because a function was deleted, libc is now at version 3.0 (was 2.2 previously).
* Add missing comma in usage printfache1996-01-301-1/+1
|
* Fix a bunch of spelling errors.mpp1996-01-291-1/+1
|
* Yet another "fix" for some of the mistakes in the recent versions..peter1996-01-081-13/+25
| | | | | | | | | I discovered that when asking for the IFLIST via sysctl(), if you specify only AF_INET address, it actually gives you only AF_INET.. (suprise, suprise..!) Now, it should "do the right thing" in just about all cases... The only problem, is that "the right thing" isn't exactly clear in all cases.
* Fix some of my mistakes, slight cleanup, improve reliability (the oldpeter1996-01-081-12/+36
| | | | | | | | ifconfig would segfault on "ifconfig ed0 ether up" and the like). The main reason for this commit was that an "ifconfig -a" would also show the AF_INET addresses in AF_IPX form (if the kernel was configured for IPX) due to insufficient AF checking in my "new way" of doing it.
* My really ugly hack to ifconfig to make it pick up interface aliasespeter1996-01-011-262/+265
| | | | | | | | | and the ethernet address for non-root users. I apologise to the world for propagating the ugliness of some of the code constructs within ifconfig... Fixing them would just abou mean rewriting most of the function call interfaces, something I didn't have the stomach for. :-)
* Use a dynamically-sized buffer for SIOCGIFCONF so that `ifconfig -a'wollman1995-12-071-9/+26
| | | | | | | | actually retrieves all the information no matter how many interfaces there are. (Probably there are other utilities which need similar modification.) Submitted by: Andrew Webster <awebster@dataradio.com>
* Submitted by: john hayjulian1995-10-271-1/+1
| | | | | | | patches to merge the two IPX packages to work with each other and to not break make-world :) IPXrouted should be working now, (or at least compiling) :)
* Reviewed by: julian and jhay@mikom.csir.co.zajulian1995-10-261-1/+74
| | | | | | | | | | | | | | | | | | | | | Submitted by: Mike Mitchell, supervisor@alb.asctmd.com This is a bulk mport of Mike's IPX/SPX protocol stacks and all the related gunf that goes with it.. it is not guaranteed to work 100% correctly at this time but as we had several people trying to work on it I figured it would be better to get it checked in so they could all get teh same thing to work on.. Mikes been using it for a year or so but on 2.0 more changes and stuff will be merged in from other developers now that this is in. Mike Mitchell, Network Engineer AMTECH Systems Corporation, Technology and Manufacturing 8600 Jefferson Street, Albuquerque, New Mexico 87113 (505) 856-8000 supervisor@alb.asctmd.com
* Remove trailing whitespace.rgrimes1995-05-301-5/+5
|
* Replace call to obsolete inet_addr routine with inet_aton so we can specifypst1995-04-261-2/+2
| | | | netmasks and broadcast addresses of 255.255.255.255.
* Impliment -ad and -au flags in addition to -a and document the changewpaul1995-03-122-8/+42
| | | | | | | | in the man page. ifconfig -au affects all interfaces marked as up, and ifconfig -ad affects only the interfaces marked down. ifconfig -a still handles everything. This change is purely for compatibility with SunOS, for those who might be accustomed to the SunOS ifconfig's behavior.
* Tweak the man page too.jkh1994-12-301-0/+7
|
* From: Wankle Rotary Engine <wpaul@skynet.ctr.columbia.edu>jkh1994-12-302-3/+144
| | | | | | | | | | | | | | | | | | | | | | - The -a flag now works just as it does in SunOS: '-a' is actually handled like a wildcard for all interfaces. 'ifconfig -a' displays the status of all interfaces, 'ifconfig -a netmask 0xffffff00' sets the netmask of all interfaces, and so forth. I don't know if many people really need to be able to set the netmasks of all interfaces at once, but the SunOS ifconfig seems to allow this, so there you have it. - An 'ether_status' function has been added to display the ethernet address of all ethernet interfaces. Again, as in SunOS, you must be root in order for this to work. The ethernet address is read from /dev/kmem using kvm_open() and kvm_read(), much in the same was as it's done with netstat. If you choose to install ifconfig set-gid kmem then normal users will be able to see the ethernet address as well, though this may not be desireable. This feature requires a small change to the ifconfig Makefile: you need to link with -lkvm in order to use the kvm_*() functions. Submitted by: wpaul
* Add parameters "compress", "normal" and "noicmp" for the slip usage.ats1994-11-201-0/+3
| | | | | These names are used in the slip.hosts file as examples, but ifconfig have formerly only accepted link0, -link0 and link1 for this.
* Added support for setting the per-interface MTU.dg1994-08-082-8/+34
|
* Convert to our man installation style. Also fixed long-standing bugwollman1994-08-051-1/+1
| | | | | in `fastboot'/`fasthalt' in which the interpreter would hang around after `reboot' or `halt' is run, causing an irritating ``Killed'' message.
* BSD 4.4 Lite sbin Sourcesrgrimes1994-05-263-0/+960
Note: XNSrouted and routed NOT imported here, they shall be imported with usr.sbin.
OpenPOWER on IntegriCloud