Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760177AbZFLD5r (ORCPT ); Thu, 11 Jun 2009 23:57:47 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758659AbZFLD5e (ORCPT ); Thu, 11 Jun 2009 23:57:34 -0400 Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:46604 "EHLO sunset.davemloft.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757434AbZFLD5d (ORCPT ); Thu, 11 Jun 2009 23:57:33 -0400 Date: Thu, 11 Jun 2009 20:57:35 -0700 (PDT) Message-Id: <20090611.205735.120685201.davem@davemloft.net> To: john.dykstra1@gmail.com Cc: akpm@linux-foundation.org, fredrik.arnerup@edgeware.tv, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH] Re: IFF_LOWER_UP does not fit in ifr_flags From: David Miller In-Reply-To: <1244219047.7969.7.camel@Maple> References: <89A39FC0957640879F8975880836CF91@edgeware.tv> <20090529205028.3e01786b.akpm@linux-foundation.org> <1244219047.7969.7.camel@Maple> X-Mailer: Mew version 6.2.51 on Emacs 22.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1317 Lines: 27 From: John Dykstra Date: Fri, 05 Jun 2009 16:24:07 +0000 > On Fri, 2009-05-29 at 20:50 -0700, Andrew Morton wrote: >> On Thu, 28 May 2009 14:59:05 +0200 "Fredrik Arnerup" wrote: >> >> > Documentation/networking/operstates.txt (and netdevice(7)) claims that >> > the flags IFF_LOWER_UP, IFF_DORMANT and IFF_ECHO can be read from user space >> > using ioctl() with SIOCGIFFLAGS. Looking in include/linux/if.h however, >> > the flags are returned in a struct ifreq in the field ifr_flags which >> > is declared as a short, while the flags are defined as: >> > >> > #define IFF_LOWER_UP 0x10000 /* driver signals L1 up */ >> > #define IFF_DORMANT 0x20000 /* driver signals dormant */ >> > #define IFF_ECHO 0x40000 /* echo sent packets */ > > [PATCH] net core: Some interface flags not returned by SIOCGIFFLAGS ... > Reported-by: "Fredrik Arnerup" > Signed-off-by: John Dykstra Applied, thanks! -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/