1. 21 10月, 2010 5 次提交
  2. 18 10月, 2010 1 次提交
  3. 14 10月, 2010 3 次提交
  4. 05 10月, 2010 1 次提交
    • E
      netfilter: ipt_LOG: add bufferisation to call printk() once · a8defca0
      Eric Dumazet 提交于
      ipt_LOG & ip6t_LOG use lot of calls to printk() and use a lock in a hope
      several cpus wont mix their output in syslog.
      
      printk() being very expensive [1], its better to call it once, on a
      prebuilt and complete line. Also, with mixed IPv4 and IPv6 trafic,
      separate IPv4/IPv6 locks dont avoid garbage.
      
      I used an allocation of a 1024 bytes structure, sort of seq_printf() but
      with a fixed size limit.
      Use a static buffer if dynamic allocation failed.
      
      Emit a once time alert if buffer size happens to be too short.
      
      [1]: printk() has various features like printk_delay()...
      Signed-off-by: NEric Dumazet <eric.dumazet@gmail.com>
      Signed-off-by: NPatrick McHardy <kaber@trash.net>
      a8defca0
  5. 10 9月, 2010 1 次提交
  6. 09 9月, 2010 2 次提交
    • E
      udp: add rehash on connect() · 719f8358
      Eric Dumazet 提交于
      commit 30fff923 introduced in linux-2.6.33 (udp: bind() optimisation)
      added a secondary hash on UDP, hashed on (local addr, local port).
      
      Problem is that following sequence :
      
      fd = socket(...)
      connect(fd, &remote, ...)
      
      not only selects remote end point (address and port), but also sets
      local address, while UDP stack stored in secondary hash table the socket
      while its local address was INADDR_ANY (or ipv6 equivalent)
      
      Sequence is :
       - autobind() : choose a random local port, insert socket in hash tables
                    [while local address is INADDR_ANY]
       - connect() : set remote address and port, change local address to IP
                    given by a route lookup.
      
      When an incoming UDP frame comes, if more than 10 sockets are found in
      primary hash table, we switch to secondary table, and fail to find
      socket because its local address changed.
      
      One solution to this problem is to rehash datagram socket if needed.
      
      We add a new rehash(struct socket *) method in "struct proto", and
      implement this method for UDP v4 & v6, using a common helper.
      
      This rehashing only takes care of secondary hash table, since primary
      hash (based on local port only) is not changed.
      Reported-by: NKrzysztof Piotr Oledzki <ole@ans.pl>
      Signed-off-by: NEric Dumazet <eric.dumazet@gmail.com>
      Tested-by: NKrzysztof Piotr Oledzki <ole@ans.pl>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      719f8358
    • E
      net: inet_add_protocol() can use cmpxchg() · e0386005
      Eric Dumazet 提交于
      Use cmpxchg() to get rid of spinlocks in inet_add_protocol() and
      friends.
      
      inet_protos[] & inet6_protos[] are moved to read_mostly section
      Signed-off-by: NEric Dumazet <eric.dumazet@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e0386005
  7. 08 9月, 2010 2 次提交
  8. 04 9月, 2010 2 次提交
  9. 02 9月, 2010 1 次提交
  10. 31 8月, 2010 2 次提交
  11. 24 8月, 2010 1 次提交
  12. 23 8月, 2010 1 次提交
  13. 18 8月, 2010 1 次提交
  14. 15 8月, 2010 1 次提交
  15. 02 8月, 2010 1 次提交
  16. 23 7月, 2010 2 次提交
  17. 19 7月, 2010 1 次提交
    • A
      IPv6: fix CoA check in RH2 input handler (mip6_rthdr_input()) · d9a9dc66
      Arnaud Ebalard 提交于
      The input handler for Type 2 Routing Header (mip6_rthdr_input())
      checks if the CoA in the packet matches the CoA in the XFRM state.
      
      Current check is buggy: it compares the adddress in the Type 2
      Routing Header, i.e. the HoA, against the expected CoA in the state.
      The comparison should be made against the address in the destination
      field of the IPv6 header.
      
      The bug remained unnoticed because the main (and possibly only current)
      user of the code (UMIP MIPv6 Daemon) initializes the XFRM state with the
      unspecified address, i.e. explicitly allows everything.
      
      Yoshifuji-san, can you ack that one?
      Signed-off-by: NArnaud Ebalard <arno@natisbad.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d9a9dc66
  18. 13 7月, 2010 1 次提交
  19. 12 7月, 2010 1 次提交
  20. 05 7月, 2010 2 次提交
  21. 02 7月, 2010 1 次提交
  22. 01 7月, 2010 4 次提交
  23. 28 6月, 2010 2 次提交
  24. 27 6月, 2010 1 次提交