1. 24 Mar, 2010 11 commits
  2. 23 Mar, 2010 14 commits
  3. 22 Mar, 2010 12 commits
  4. 20 Mar, 2010 3 commits
    • David S. Miller's avatar
      ipv6: Fix bug in ipv6_chk_same_addr(). · 3e81c6da
      David S. Miller authored
      hlist_for_each_entry(p...) will not necessarily initialize 'p'
      to anything if the hlist is empty.  GCC notices this and emits
      a warning.
      
      Just return true explicitly when we hit a match, and return
      false is we fall out of the loop without one.
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      3e81c6da
    • YOSHIFUJI Hideaki's avatar
      ipv6: Reduce timer events for addrconf_verify(). · b2db7564
      YOSHIFUJI Hideaki authored
      This patch reduces timer events while keeping accuracy by rounding
      our timer and/or batching several address validations in addrconf_verify().
      
      addrconf_verify() is called at earliest timeout among interface addresses'
      timeouts, but at maximum ADDR_CHECK_FREQUENCY (120 secs).
      
      In most cases, all of timeouts of interface addresses are long enough
      (e.g. several hours or days vs 2 minutes), this timer is usually called
      every ADDR_CHECK_FREQUENCY, and it is okay to be lazy.
      (Note this timer could be eliminated if all code paths which modifies
      variables related to timeouts call us manually, but it is another story.)
      
      However, in other least but important cases, we try keeping accuracy.
      
      When the real interface address timeout is coming, and the timeout
      is just before the rounded timeout, we accept some error.
      
      When a timeout has been reached, we also try batching other several
      events in very near future.
      Signed-off-by: default avatarYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      b2db7564
    • stephen hemminger's avatar
      IPv6: addrconf cleanup addrconf_verify · 88949cf4
      stephen hemminger authored
      The variable regen_advance is only used in the privacy case.
      Move it to simplify code and eliminate ifdef's
      Signed-off-by: default avatarStephen Hemminger <shemminger@vyatta.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      88949cf4