From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Robert P. J. Day" Subject: is "volatile" the cause of ifconfig flags not matching sysfs flags? Date: Wed, 22 Aug 2018 18:32:36 -0400 (EDT) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII To: Linux kernel netdev mailing list Return-path: Received: from cpanel4.indieserve.net ([199.212.143.9]:40474 "EHLO cpanel4.indieserve.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726396AbeHWCBm (ORCPT ); Wed, 22 Aug 2018 22:01:42 -0400 Received: from cpef81d0f814063-cmf81d0f814060.cpe.net.cable.rogers.com ([174.114.57.56]:47534 helo=localhost.localdomain) by cpanel4.indieserve.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1fsbiJ-004DpH-9f for netdev@vger.kernel.org; Wed, 22 Aug 2018 18:34:56 -0400 Sender: netdev-owner@vger.kernel.org List-ID: almost certainly another dumb question, but i was poking around the sysfs, particularly /sys/class/net//*, to familiarize myself with what i can glean (or set) re interfaces under /sys, and i noticed "flags", but what i get there doesn't match what i get by running ifconfig. specifically, if i list the flags for my wireless interface under /sys: $ cat flags 0x1003 $ but with ifconfig: $ ifconfig wlp2s0 wlp2s0: flags=4163 mtu 1500 ^^^^ do those two "flags" values represent the same set of flags? and does the obvious difference have to do with some of those flags being "volatile" as dewscribed in include/uapi/linux/if.h? or am i just totally misreading this? rday -- ======================================================================== Robert P. J. Day Ottawa, Ontario, CANADA http://crashcourse.ca/dokuwiki Twitter: http://twitter.com/rpjday LinkedIn: http://ca.linkedin.com/in/rpjday ========================================================================