← Back to team overview

kernel-packages team mailing list archive

[Bug 96578] Re: The sysctl net.ipv6.conf.all.autoconf does not apply to "all"

 

I have observed this as a more general problem with any sysctl setting
for "all" interfaces.

For example, try:

sysctl -a | grep '^net\.ipv4\.conf.*send_redirects'
sysctl -w net.ipv4.conf.all.send_redirects=0
sysctl -a | grep '^net\.ipv4\.conf.*send_redirects'
sysctl -w net.ipv4.conf.all.send_redirects=1
sysctl -a | grep '^net\.ipv4\.conf.*send_redirects'

It seems that setting conf.all does not have any effect on the
individual conf.<interface> settings. This begs the question of what
setting conf.all is supposed to do.

There is also conf.default which appears to be the value inherited when
a new interface is created. To test:

sysctl -w net.ipv4.conf.all.send_redirects=1
sysctl -w net.ipv4.conf.default.send_redirects=0
brctl addbr br100
sysctl net.ipv4.conf.br100.send_redirects   # it's 0

sysctl -w net.ipv4.conf.all.send_redirects=1
sysctl net.ipv4.conf.br100.send_redirects   # it's still 0

sysctl -w net.ipv4.conf.all.send_redirects=0
sysctl -w net.ipv4.conf.default.send_redirects=1
brctl addbr br101
sysctl net.ipv4.conf.br101.send_redirects   # it's 1
sysctl net.ipv4.conf.br100.send_redirects   # it's still 0

This is sensible. Hence I can see how "default" is useful, but not
"all".

Above tests done with Ubuntu 12.04.4 running kernel 3.8.0-36-generic

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/96578

Title:
  The sysctl net.ipv6.conf.all.autoconf does not apply to "all"

Status in “linux” package in Ubuntu:
  Confirmed
Status in “linux-source-2.6.20” package in Ubuntu:
  Invalid

Bug description:
  Binary package hint: linux-source-2.6.20

  Just specifying:

  net.ipv6.conf.default.autoconf=0
  net.ipv6.conf.all.autoconf=0

  in sysctl.conf does not actually disable autoconf.

  Explicitly setting

  net.ipv6.conf.eth0.autoconf=0

  on the other hand does work (if I've added "ipv6" to /etc/modules, but
  that's another issue).

  Our workaround for this is to list enough ethN to cover "all likely" network interfaces, but that's not exactly a neat solution.
  --- 
  AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.21.
  Architecture: amd64
  ArecordDevices:
   **** List of CAPTURE Hardware Devices ****
   card 0: Intel [HDA Intel], device 0: AD198x Analog [AD198x Analog]
     Subdevices: 2/2
     Subdevice #0: subdevice #0
     Subdevice #1: subdevice #1
  AudioDevicesInUse:
   Cannot stat file /proc/4797/fd/11: No such file or directory
                        USER        PID ACCESS COMMAND
   /dev/snd/controlC0:  maswan     2400 F.... pulseaudio
   /dev/snd/pcmC0D0p:   maswan     2400 F...m pulseaudio
  CRDA: Error: [Errno 2] No such file or directory
  Card0.Amixer.info:
   Card hw:0 'Intel'/'HDA Intel at 0xf3020000 irq 21'
     Mixer name	: 'Analog Devices AD1884'
     Components	: 'HDA:11d41884,103c2819,00100100'
     Controls      : 30
     Simple ctrls  : 18
  DistroRelease: Ubuntu 10.04
  IwConfig:
   lo        no wireless extensions.
   
   eth0      no wireless extensions.
   
   ppp0      no wireless extensions.
  MachineType: Hewlett-Packard HP Compaq dc7800 Convertible Minitower
  NonfreeKernelModules: openafs
  Package: linux (not installed)
  ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.32-33-generic root=/dev/mapper/rootvg-rootlv ro quiet splash
  ProcEnviron:
   LANGUAGE=en_US:en
   PATH=(custom, user)
   LANG=en_US
   SHELL=/bin/bash
  ProcVersionSignature: Ubuntu 2.6.32-33.71-generic 2.6.32.41+drm33.18
  Regression: No
  RelatedPackageVersions: linux-firmware 1.34.7
  Reproducible: Yes
  RfKill:
   
  Tags: lucid kconfig needs-upstream-testing
  Uname: Linux 2.6.32-33-generic x86_64
  UserGroups: adm admin audio cdrom dialout dip floppy fuse lpadmin plugdev video voice
  dmi.bios.date: 02/26/2009
  dmi.bios.vendor: Hewlett-Packard
  dmi.bios.version: 786F1 v01.28
  dmi.board.asset.tag: CZC84703HB
  dmi.board.name: 0AACh
  dmi.board.vendor: Hewlett-Packard
  dmi.chassis.asset.tag: CZC84703HB
  dmi.chassis.type: 6
  dmi.chassis.vendor: Hewlett-Packard
  dmi.modalias: dmi:bvnHewlett-Packard:bvr786F1v01.28:bd02/26/2009:svnHewlett-Packard:pnHPCompaqdc7800ConvertibleMinitower:pvr:rvnHewlett-Packard:rn0AACh:rvr:cvnHewlett-Packard:ct6:cvr:
  dmi.product.name: HP Compaq dc7800 Convertible Minitower
  dmi.sys.vendor: Hewlett-Packard

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/96578/+subscriptions