1. 11 5月, 2016 1 次提交
  2. 10 5月, 2016 6 次提交
  3. 07 5月, 2016 2 次提交
  4. 05 5月, 2016 3 次提交
    • P
      netfilter: x_tables: get rid of old and inconsistent debugging · d7cdf816
      Pablo Neira Ayuso 提交于
      The dprintf() and duprintf() functions are enabled at compile time,
      these days we have better runtime debugging through pr_debug() and
      static keys.
      
      On top of this, this debugging is so old that I don't expect anyone
      using this anymore, so let's get rid of this.
      
      IP_NF_ASSERT() is still left in place, although this needs that
      NETFILTER_DEBUG is enabled, I think these assertions provide useful
      context information when reading the code.
      
      Note that ARP_NF_ASSERT() has been removed as there is no user of
      this.
      
      Kill also DEBUG_ALLOW_ALL and a couple of pr_error() and pr_debug()
      spots that are inconsistently placed in the code.
      Signed-off-by: NPablo Neira Ayuso <pablo@netfilter.org>
      d7cdf816
    • A
      gre6: add Kconfig dependency for NET_IPGRE_DEMUX · 8bf42e9e
      Arnd Bergmann 提交于
      The ipv6 gre implementation was cleaned up to share more code
      with the ipv4 version, but it can be enabled even when NET_IPGRE_DEMUX
      is disabled, resulting in a link error:
      
      net/built-in.o: In function `gre_rcv':
      :(.text+0x17f5d0): undefined reference to `gre_parse_header'
      ERROR: "gre_parse_header" [net/ipv6/ip6_gre.ko] undefined!
      
      This adds a Kconfig dependency to prevent that now invalid
      configuration.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Fixes: 308edfdf ("gre6: Cleanup GREv6 receive path, call common GRE functions")
      Acked-by: NTom Herbert <tom@herbertland.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      8bf42e9e
    • J
      gre: change gre_parse_header to return the header length · f132ae7c
      Jiri Benc 提交于
      It's easier for gre_parse_header to return the header length instead of
      filing it into a parameter. That way, the callers that don't care about the
      header length can just check whether the returned value is lower than zero.
      
      In gre_err, the tunnel header must not be pulled. See commit b7f8fe25
      ("gre: do not pull header in ICMP error processing") for details.
      
      This patch reduces the conflict between the mentioned commit and commit
      95f5c64c ("gre: Move utility functions to common headers").
      Signed-off-by: NJiri Benc <jbenc@redhat.com>
      Acked-by: NTom Herbert <tom@herbertland.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f132ae7c
  5. 04 5月, 2016 2 次提交
  6. 03 5月, 2016 7 次提交
  7. 29 4月, 2016 1 次提交
  8. 28 4月, 2016 9 次提交
  9. 26 4月, 2016 8 次提交
    • D
      net: ipv6: Delete host routes on an ifdown · 38bd10c4
      David Ahern 提交于
      It was a simple idea -- save IPv6 configured addresses on a link down
      so that IPv6 behaves similar to IPv4. As always the devil is in the
      details and the IPv6 stack as too many behavioral differences from IPv4
      making the simple idea more complicated than it needs to be.
      
      The current implementation for keeping IPv6 addresses can panic or spit
      out a warning in one of many paths:
      
      1. IPv6 route gets an IPv4 route as its 'next' which causes a panic in
         rt6_fill_node while handling a route dump request.
      
      2. rt->dst.obsolete is set to DST_OBSOLETE_DEAD hitting the WARN_ON in
         fib6_del
      
      3. Panic in fib6_purge_rt because rt6i_ref count is not 1.
      
      The root cause of all these is references related to the host route for
      an address that is retained.
      
      So, this patch deletes the host route every time the ifdown loop runs.
      Since the host route is deleted and will be re-generated an up there is
      no longer a need for the l3mdev fix up. On the 'admin up' side move
      addrconf_permanent_addr into the NETDEV_UP event handling so that it
      runs only once versus on UP and CHANGE events.
      
      All of the current panics and warnings appear to be related to
      addresses on the loopback device, but given the catastrophic nature when
      a bug is triggered this patch takes the conservative approach and evicts
      all host routes rather than trying to determine when it can be re-used
      and when it can not. That can be a later optimizaton if desired.
      Signed-off-by: NDavid Ahern <dsa@cumulusnetworks.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      38bd10c4
    • D
      Revert "ipv6: Revert optional address flusing on ifdown." · 6a923934
      David S. Miller 提交于
      This reverts commit 841645b5.
      
      Ok, this puts the feature back.  I've decided to apply David A.'s
      bug fix and run with that rather than make everyone wait another
      whole release for this feature.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6a923934
    • T
      ila: add checksum neutral ILA translations · 90bfe662
      Tom Herbert 提交于
      Support checksum neutral ILA as described in the ILA draft. The low
      order 16 bits of the identifier are used to contain the checksum
      adjustment value.
      
      The csum-mode parameter is added to described checksum processing. There
      are three values:
       - adjust transport checksum (previous behavior)
       - do checksum neutral mapping
       - do nothing
      
      On output the csum-mode in the ila_params is checked and acted on. If
      mode is checksum neutral mapping then to mapping and set C-bit.
      
      On input, C-bit is checked. If it is set checksum-netural mapping is
      done (regardless of csum-mode in ila params) and C-bit will be cleared.
      If it is not set then action in csum-mode is taken.
      Signed-off-by: NTom Herbert <tom@herbertland.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      90bfe662
    • T
      ila: xlat changes · 642c2c95
      Tom Herbert 提交于
      Change model of xlat to be used only for input where lookup is done on
      the locator part of an address (comparing to locator_match as key
      in rhashtable). This is needed for checksum neutral translation
      which obfuscates the low order 16 bits of the identifier. It also
      permits hosts to be in muliple ILA domains (each locator can map
      to a different SIR address). A check is also added to disallow
      translating non-ILA addresses (check of type in identifier).
      Signed-off-by: NTom Herbert <tom@herbertland.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      642c2c95
    • T
      ila: Add struct definitions and helpers · 351596aa
      Tom Herbert 提交于
      Add structures for identifiers, locators, and an ila address which
      is composed of a locator and identifier and in6_addr can be cast to
      it. This includes a three bit type field and enums for the types defined
      in ILA I-D.
      
      In ILA lwt don't allow user to set a translation for a non-ILA
      address (type of identifier is zero meaning it is an IID). This also
      requires that the destination prefix is at least 65 bytes (64
      bit locator and first byte of identifier).
      Signed-off-by: NTom Herbert <tom@herbertland.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      351596aa
    • E
      net: better drop monitoring in ip{6}_recv_error() · 960a2628
      Eric Dumazet 提交于
      We should call consume_skb(skb) when skb is properly consumed,
      or kfree_skb(skb) when skb must be dropped in error case.
      Signed-off-by: NEric Dumazet <edumazet@google.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      960a2628
    • D
      ipv6: Revert optional address flusing on ifdown. · 841645b5
      David S. Miller 提交于
      This reverts the following three commits:
      
      70af921d
      799977d9
      f1705ec1
      
      The feature was ill conceived, has terrible semantics, and has added
      nothing but regressions to the already fragile ipv6 stack.
      
      Fixes: f1705ec1 ("net: ipv6: Make address flushing on ifdown optional")
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      841645b5
    • N
      ipv6: use nla_put_u64_64bit() · f13a82d8
      Nicolas Dichtel 提交于
      Signed-off-by: NNicolas Dichtel <nicolas.dichtel@6wind.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f13a82d8
  10. 25 4月, 2016 1 次提交