1. 23 12月, 2011 1 次提交
  2. 22 12月, 2011 1 次提交
  3. 21 12月, 2011 1 次提交
  4. 13 12月, 2011 1 次提交
    • T
      ipip, sit: copy parms.name after register_netdevice · 72b36015
      Ted Feng 提交于
      Same fix as 731abb9c for ipip and sit tunnel.
      Commit 1c5cae81 removed an explicit call to dev_alloc_name in
      ipip_tunnel_locate and ipip6_tunnel_locate, because register_netdevice
      will now create a valid name, however the tunnel keeps a copy of the
      name in the private parms structure. Fix this by copying the name back
      after register_netdevice has successfully returned.
      
      This shows up if you do a simple tunnel add, followed by a tunnel show:
      
      $ sudo ip tunnel add mode ipip remote 10.2.20.211
      $ ip tunnel
      tunl0: ip/ip  remote any  local any  ttl inherit  nopmtudisc
      tunl%d: ip/ip  remote 10.2.20.211  local any  ttl inherit
      $ sudo ip tunnel add mode sit remote 10.2.20.212
      $ ip tunnel
      sit0: ipv6/ip  remote any  local any  ttl 64  nopmtudisc 6rd-prefix 2002::/16
      sit%d: ioctl 89f8 failed: No such device
      sit%d: ipv6/ip  remote 10.2.20.212  local any  ttl inherit
      
      Cc: stable@vger.kernel.org
      Signed-off-by: NTed Feng <artisdom@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      72b36015
  5. 06 12月, 2011 1 次提交
  6. 03 12月, 2011 1 次提交
  7. 02 12月, 2011 3 次提交
  8. 01 12月, 2011 1 次提交
  9. 27 11月, 2011 5 次提交
  10. 24 11月, 2011 3 次提交
  11. 23 11月, 2011 1 次提交
  12. 22 11月, 2011 1 次提交
    • P
      netfilter: possible unaligned packet header in ip_route_me_harder · 5e2afba4
      Paul Guo 提交于
      This patch tries to fix the following issue in netfilter:
      In ip_route_me_harder(), we invoke pskb_expand_head() that
      rellocates new header with additional head room which can break
      the alignment of the original packet header.
      
      In one of my NAT test case, the NIC port for internal hosts is
      configured with vlan and the port for external hosts is with
      general configuration. If we ping an external "unknown" hosts from an
      internal host, an icmp packet will be sent. We find that in
      icmp_send()->...->ip_route_me_harder()->pskb_expand_head(), hh_len=18
      and current headroom (skb_headroom(skb)) of the packet is 16. After
      calling pskb_expand_head() the packet header becomes to be unaligned
      and then our system (arch/tile) panics immediately.
      Signed-off-by: NPaul Guo <ggang@tilera.com>
      Acked-by: NEric Dumazet <eric.dumazet@gmail.com>
      Signed-off-by: NPablo Neira Ayuso <pablo@netfilter.org>
      5e2afba4
  13. 19 11月, 2011 2 次提交
  14. 17 11月, 2011 1 次提交
  15. 14 11月, 2011 1 次提交
  16. 13 11月, 2011 1 次提交
  17. 10 11月, 2011 3 次提交
  18. 09 11月, 2011 2 次提交
  19. 04 11月, 2011 1 次提交
  20. 02 11月, 2011 2 次提交
  21. 01 11月, 2011 3 次提交
  22. 27 10月, 2011 1 次提交
  23. 25 10月, 2011 2 次提交
  24. 24 10月, 2011 1 次提交
    • E
      ipv4: tcp: fix TOS value in ACK messages sent from TIME_WAIT · 66b13d99
      Eric Dumazet 提交于
      There is a long standing bug in linux tcp stack, about ACK messages sent
      on behalf of TIME_WAIT sockets.
      
      In the IP header of the ACK message, we choose to reflect TOS field of
      incoming message, and this might break some setups.
      
      Example of things that were broken :
        - Routing using TOS as a selector
        - Firewalls
        - Trafic classification / shaping
      
      We now remember in timewait structure the inet tos field and use it in
      ACK generation, and route lookup.
      
      Notes :
       - We still reflect incoming TOS in RST messages.
       - We could extend MuraliRaja Muniraju patch to report TOS value in
      netlink messages for TIME_WAIT sockets.
       - A patch is needed for IPv6
      Signed-off-by: NEric Dumazet <eric.dumazet@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      66b13d99