netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: sysctl, argument parsing, possible bug
@ 2017-08-08 18:26 Massimo Sala
  2017-08-08 19:04 ` Stephen Hemminger
  0 siblings, 1 reply; 7+ messages in thread
From: Massimo Sala @ 2017-08-08 18:26 UTC (permalink / raw)
  To: LKML, Linux Kernel Network Developers

I make another test with kernel 4.9.32-15.41

sysctl procps version 3.2.8

    sysctl net.ipv4.conf.eth0.100.forwarding
    error: "net.ipv4.conf.eth0.100.forwarding" is an unknown key


so I install busybox :

BusyBox v1.19.3

    busybox sysctl net.ipv4.conf.eth0.100.forwarding
    net.ipv4.conf.eth0.100.forwarding = 0

It is working, as I expect reading busybox source sysctl.c



Stephen, I test
    sysctl net/ipv4/conf/eth0.100/forwarding
I confirm it  works.


What is the problem ?

As sysctl, also automation tools and scripts cannot be "netdev names
aware", and so they fail using the usual dot notation.


I don't pretend to change sysctl to read from the /proc/sys/
directory, as busybox does.

I suggest to add a  remark to the man page of sysctl, reporting the
difference between the two tools and an example of the alternate
syntax :
    sysctl net/ipv4/conf/eth0.100/forwarding


Thank you for your attention.
Best regards, Massimo

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-08-08 19:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <CAKv20-VuR4J0PJOOfsRmEPMhB+vKYMdPsp5wDgVkoYwrHxgLGw@mail.gmail.com>
2017-08-01 21:27 ` sysctl, argument parsing, possible bug Cong Wang
2017-08-01 21:34   ` Massimo Sala
2017-08-01 21:54     ` Cong Wang
2017-08-02 21:53       ` Luis R. Rodriguez
2017-08-02  2:40   ` Stephen Hemminger
2017-08-08 18:26 Massimo Sala
2017-08-08 19:04 ` Stephen Hemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).