diff options
author | Jiri Pirko <jiri@resnulli.us> | 2014-01-07 15:55:45 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-01-07 15:55:17 -0500 |
commit | dfd1582d1e4d117f46df720679d595f984ef902a (patch) | |
tree | 4047480cb28bde2699345808c5e38e488886cb95 /net/ipv4/devinet.c | |
parent | 509aba3b0d366b7f16a9a2eebac1156b25f5f622 (diff) | |
download | linux-dfd1582d1e4d117f46df720679d595f984ef902a.tar.bz2 |
ipv4: loopback device: ignore value changes after device is upped
When lo is brought up, new ifa is created. Then, devconf and neigh values
bitfield should be set so later changes of default values would not
affect lo values.
Note that the same behaviour is in ipv6. Also note that this is likely
not an issue in many distros (for example Fedora 19) because userspace
sets address to lo manually before bringing it up.
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/devinet.c')
-rw-r--r-- | net/ipv4/devinet.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ipv4/devinet.c b/net/ipv4/devinet.c index 0feebd5de295..9809f7b69728 100644 --- a/net/ipv4/devinet.c +++ b/net/ipv4/devinet.c @@ -1385,6 +1385,8 @@ static int inetdev_event(struct notifier_block *this, unsigned long event, memcpy(ifa->ifa_label, dev->name, IFNAMSIZ); set_ifa_lifetime(ifa, INFINITY_LIFE_TIME, INFINITY_LIFE_TIME); + ipv4_devconf_setall(in_dev); + neigh_parms_data_state_setall(in_dev->arp_parms); inet_insert_ifa(ifa); } } |