• Herbert Xu's avatar
    [IPV4]: Add default config support after inetdev_init · 31be3085
    Herbert Xu authored
    Previously once inetdev_init has been called on a device any changes
    made to ipv4_devconf_dflt would have no effect on that device's
    configuration.
    
    This creates a problem since we have moved the point where
    inetdev_init is called from when an address is added to where the
    device is registered.
    
    This patch is the first half of a set that tries to mimic the old
    behaviour while still calling inetdev_init.
    
    It propagates any changes to ipv4_devconf_dflt to those devices that
    have not had the corresponding attribute set.
    
    The next patch will forcibly set all values at the point where
    inetdev_init was previously called.
    Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    31be3085
devinet.c 37.2 KB