ifconfig with no args should list all interfaces
It's 2012 and high time for ifconfig without arguments to default to the same behaviour that every other modern UNIX platform exhibits. That is: ifconfig should print a list of all interfaces as if the user had typed ifconfig -a.
This change will not alter any other existing behaviour, including preserving the behaviour of -a without other arguments. It will bring us into line with at least the following other platforms: OpenBSD, Mac OS X, Linux.
Updated by A Hettinger over 9 years ago
Does OBSD or OS 10.x deal with the difference between plumbed vs. unplumbed interfaces (I already know linux does not)? If so, how?
Our ifconfig -a does not print all interfaces, only all plumbed interfaces, so rather then eleminating the suprise, it only makes it MORE suprising because the information returned is not the same. The present state atleast makes it clear to the user they do not know how ifconfig works, the proposed change gives the false impression the user does.
Updated by Albert Lee about 9 years ago
- Status changed from New to Resolved
- Assignee set to Gary Mills
- % Done changed from 0 to 100
user: Daniil Lunev <email@example.com>
date: Tue Jul 31 21:33:14 2012 +0000
files: usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ifconfig.c usr/src/man/man1m/ifconfig.1m
3013 ifconfig with no args should list all interfaces
Reviewed by: Garrett D'Amore <firstname.lastname@example.org>
Reviewed by: Gary Mills <email@example.com>
Approved by: Albert Lee <firstname.lastname@example.org>