]> git.baikalelectronics.ru Git - kernel.git/commit
[IPV4]: Restore old behaviour of default config values
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 5 Jun 2007 06:36:06 +0000 (23:36 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 7 Jun 2007 20:39:26 +0000 (13:39 -0700)
commit355a62cd496eebf3a742ff85dcfb3b8cbc7fc1eb
tree521645ee5c7e43cc0de100bc4425668e078d92f9
parent9e30b5182a2273baacad43a365384feab7bbbfda
[IPV4]: Restore old behaviour of default config values

Previously inet devices were only constructed when addresses are added
(or rarely in ipmr).  Therefore the default config values they get are
the ones at the time of these operations.

Now that we're creating inet devices earlier, this changes the
behaviour of default config values in an incompatible way (see bug
#8519).

This patch creates a compromise by setting the default values at the
same point as before but only for those that have not been explicitly
set by the user since the inet device's creation.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/inetdevice.h
net/ipv4/devinet.c
net/ipv4/ipmr.c