netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [0/4] [IPV4]: Fix compatibility issue with ipv4_devconf_dflt
@ 2007-06-02 10:01 Herbert Xu
  2007-06-02 10:02 ` [1/4] [IPV4]: Only panic if inetdev_init fails for loopback Herbert Xu
                   ` (3 more replies)
  0 siblings, 4 replies; 18+ messages in thread
From: Herbert Xu @ 2007-06-02 10:01 UTC (permalink / raw)
  To: David S. Miller, netdev

Hi Dave:

When we moved the IPv4/IPv6 device creation from address addition time
to device registration time it changed the behaviour of the default
configuration values (e.g., /proc/sys/net/ipv4/conf/default).  Previously
you could specify default configuration values and as long as you do it
before any addresses are added (or when the device is brought up for IPv6)
it would apply to every single device other than loopback.

With the new scheme this no longer works for devices registered at boot
time (e.g., devices built-in to the kernel).  One such scenario can be
seen at http://bugzilla.kernel.org/show_bug.cgi?id=8519.

Since this is a kernel/user-space interface it'd be nice if we can keep
the compatibility while still achieving what we wanted.

The following series tries to do that for IPv4 by keeping track of what
the user has explicitly set and copying the default values over again
at the same points as before for values which have not been explicitly
set.

If this looks OK I'll do the same thing for IPv6 as well.

Cheers,
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

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

end of thread, other threads:[~2007-06-11 12:31 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-02 10:01 [0/4] [IPV4]: Fix compatibility issue with ipv4_devconf_dflt Herbert Xu
2007-06-02 10:02 ` [1/4] [IPV4]: Only panic if inetdev_init fails for loopback Herbert Xu
2007-06-02 10:02 ` [2/4] [IPV4]: Convert IPv4 devconf to an array Herbert Xu
2007-06-02 11:47   ` jamal
2007-06-05  6:17   ` David Miller
2007-06-05  6:29     ` Herbert Xu
2007-06-05  6:31       ` [PATCH 1/4] [IPV4]: Only panic if inetdev_init fails for loopback Herbert Xu
2007-06-05  6:34         ` David Miller
2007-06-05  6:31       ` [PATCH 2/4] [IPV4]: Convert IPv4 devconf to an array Herbert Xu
2007-06-05  6:34         ` David Miller
2007-06-05  6:31       ` [PATCH 3/4] [IPV4]: Add default config support after inetdev_init Herbert Xu
2007-06-05  6:35         ` David Miller
2007-06-11 12:26         ` Patrick McHardy
2007-06-11 12:31           ` Herbert Xu
2007-06-05  6:31       ` [PATCH 4/4] [IPV4]: Restore old behaviour of default config values Herbert Xu
2007-06-05  6:36         ` David Miller
2007-06-02 10:03 ` [3/4] [IPV4]: Add default config support after inetdev_init Herbert Xu
2007-06-02 10:03 ` [4/4] [IPV4]: Restore old behaviour of default config values Herbert Xu

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).