Return-path: Received: from mail.csclub.uwaterloo.ca ([129.97.134.52]:39051 "EHLO mail.csclub.uwaterloo.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751164AbbAATvE (ORCPT ); Thu, 1 Jan 2015 14:51:04 -0500 From: "Lennart Sorensen" Date: Thu, 1 Jan 2015 14:44:17 -0500 To: Linus Torvalds Cc: Theodore Ts'o , Arend van Spriel , Jiri Kosina , "Grumbach, Emmanuel" , Borislav Petkov , "linux-wireless@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "egrumbach@gmail.com" , "peter@hurleysoftware.com" , "ilw@linux.intel.com" , "Berg, Johannes" , Larry Finger Subject: Re: [PATCH] Revert "cfg80211: make WEXT compatibility unselectable" Message-ID: <20150101194417.GN24112@csclub.uwaterloo.ca> (sfid-20150101_205110_658830_993B894E) References: <54A3D955.6020809@broadcom.com> <0BA3FCBA62E2DC44AF3030971E174FB31B5DD72E@hasmsx107.ger.corp.intel.com> <54A3E1F1.7030807@broadcom.com> <54A41000.3040306@broadcom.com> <20141231173113.GA443@thunk.org> <54A45D4D.7070302@broadcom.com> <20141231214421.GA29273@thunk.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: Sender: linux-wireless-owner@vger.kernel.org List-ID: On Wed, Dec 31, 2014 at 01:57:59PM -0800, Linus Torvalds wrote: > Side note: does anybody think that was really a good idea to begin > with? I mean, Cisco iOS is just _soooo_ universally loved, right? > > And yeah, I refuse to use "ip link" or other insane commands. Let's > face it, "ifconfig" and "route" are perfectly fine commands, and a > whole lot less confusing than "ip" with random crap after it. I'm > really not seeing why that "ip" command was seen as an improvement. > > (Ok, "ip route" isn't any more complex than "route", but "ip link" > sure as hell isn't simpler than "ifconfig" for most things I can think > of) Well at least in the past (not sure these days), ifconfig was reading rather inefficiently from /proc rather than using netlink, and it had annoying bugs like only showing the first 9 characters of the interface name, not handling IPv6 (I think that has been fixed by now), and many other awfulnesses. I just did a quick check to see how ifconfig does longer interface names and got this: tun0-12345678:2: error fetching interface information: Device not found for an interface I had renamed to tun0-123456789 ip had no issue with it. Renaming it to tun0-12345678 made ifconfig not die on it. I wonder if someone failed to understand that 15 character interface names meant that 15 characters before the NULL should be allowed. If did show all of the 14 characters though, so the old cut at 9 character limit is at least gone these days. ifconfig seems to just be broken for many cases of perfectly nice features in the kernel. So yes some parts of ip are pretty painful, while others are rather nice (I certainly like ip route, where the output actually matches the syntax of the input, unlike the route command). Would be nice if all features of the ip command were actually documented, but they clearly are not. -- Len Sorensen