From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751804AbdHBCkE (ORCPT ); Tue, 1 Aug 2017 22:40:04 -0400 Received: from mail-pf0-f174.google.com ([209.85.192.174]:35502 "EHLO mail-pf0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751681AbdHBCkC (ORCPT ); Tue, 1 Aug 2017 22:40:02 -0400 Date: Tue, 1 Aug 2017 19:40:00 -0700 From: Stephen Hemminger To: Cong Wang Cc: Massimo Sala , LKML , Linux Kernel Network Developers Subject: Re: sysctl, argument parsing, possible bug Message-ID: <20170801194000.68ac99e1@xeon-e3> In-Reply-To: References: 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 On Tue, 1 Aug 2017 14:27:37 -0700 Cong Wang wrote: > On Tue, Aug 1, 2017 at 1:47 PM, Massimo Sala wrote: > > cat /proc/sys/net/ipv4/conf/eth0.100/forwarding > > 0 > > > > sysctl net.ipv4.conf.eth0.100.forwarding > > error: "net.ipv4.conf.eth0.100.forwarding" is an unknown key > > > > Use echo instead, sysctl doesn't understand eth0.100 > is a netdev name, sigh. sysctl happily accepts / as a separator see man sysctl(8) PARAMETERS variable The name of a key to read from. An example is kernel.ostype. The '/' separator is also accepted in place of a '.'.