1. 03 Sep, 2010 2 commits
    • Thomas Graf's avatar
      ipv6: add special mode accept_ra=2 to accept RA while configured as router · 65e9b62d
      Thomas Graf authored
      The current IPv6 behavior is to not accept router advertisements while
      forwarding, i.e. configured as router.
      
      This does make sense, a router is typically not supposed to be auto
      configured. However there are exceptions and we should allow the
      current behavior to be overwritten.
      
      Therefore this patch enables the user to overrule the "if forwarding
      enabled then don't listen to RAs" rule by setting accept_ra to the
      special value of 2.
      
      An alternative would be to ignore the forwarding switch alltogether
      and solely accept RAs based on the value of accept_ra. However, I
      found that if not intended, accepting RAs as a router can lead to
      strange unwanted behavior therefore we it seems wise to only do so
      if the user explicitely asks for this behavior.
      Signed-off-by: default avatarThomas Graf <tgraf@infradead.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      65e9b62d
    • Eric Dumazet's avatar
      drivers/net: avoid some skb->ip_summed initializations · bc8acf2c
      Eric Dumazet authored
      fresh skbs have ip_summed set to CHECKSUM_NONE (0)
      
      We can avoid setting again skb->ip_summed to CHECKSUM_NONE in drivers.
      
      Introduce skb_checksum_none_assert() helper so that we keep this
      assertion documented in driver sources.
      
      Change most occurrences of :
      
      skb->ip_summed = CHECKSUM_NONE;
      
      by :
      
      skb_checksum_none_assert(skb);
      Signed-off-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      bc8acf2c
  2. 02 Sep, 2010 11 commits
  3. 01 Sep, 2010 26 commits
  4. 31 Aug, 2010 1 commit