1. 09 2月, 2007 31 次提交
  2. 08 2月, 2007 1 次提交
  3. 06 2月, 2007 1 次提交
  4. 03 2月, 2007 2 次提交
  5. 02 2月, 2007 1 次提交
    • P
      [NET_SCHED]: act_ipt: fix regression in ipt action · 239a87c8
      Patrick McHardy 提交于
      The x_tables patch broke target module autoloading in the ipt action
      by replacing the ipt_find_target call (which does autoloading) by
      xt_find_target (which doesn't do autoloading). Additionally xt_find_target
      may return ERR_PTR values in case of an error, which are not handled.
      
      Use xt_request_find_target, which does both autoloading and ERR_PTR
      handling properly. Also don't forget to drop the target module reference
      again when xt_check_target fails.
      Signed-off-by: NPatrick McHardy <kaber@trash.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      239a87c8
  6. 31 1月, 2007 4 次提交
    • P
      [NETFILTER]: xt_hashlimit: fix ip6tables dependency · 2e553023
      Patrick McHardy 提交于
      IP6_NF_IPTABLES=m, CONFIG_NETFILTER_XT_MATCH_HASHLIMIT=y results in a
      linker error since ipv6_find_hdr is defined in ip6_tables.c. Fix similar
      to Adrian Bunk's H.323 conntrack patch: selecting ip6_tables to be build
      as module requires hashlimit to be built as module as well.
      Signed-off-by: NPatrick McHardy <kaber@trash.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      2e553023
    • V
      [SCTP]: Force update of the rto when processing HB-ACK · e533ca16
      Vlad Yasevich 提交于
      When processing a HEARTBEAT-ACK it's possible that the transport rto
      timers will not be updated because a prior T3-RTX processing would
      have cleared the rto_pending flag on the transport.  However, if
      we received a valid HEARTBEAT-ACK, we want to force update the
      rto variables, so re-set the rto_pending flag before calling
      sctp_transport_update_rto().
      Signed-off-by: NVlad Yasevich <vladislav.yasevich@hp.com>
      Signed-off-by: NSridhar Samudrala <sri@us.ibm.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e533ca16
    • L
      [IPV6]: fix BUG of ndisc_send_redirect() · 29556526
      Li Yewang 提交于
        When I tested IPv6 redirect function about kernel 2.6.19.1, and found
      that the kernel can send redirect packets whose target address is global
      address, and the target is not the actual endpoint of communication.
      
        But the criteria conform to RFC2461, the target address defines as
      following:
      
        Target Address An IP address that is a better first hop to use for
                       he ICMP Destination Address.  When the target is
                       the actual endpoint of communication, i.e., the
                       destination is a neighbor, the Target Address field
                       MUST contain the same value as the ICMP Destination
                       Address field.  Otherwise the target is a better
                       first-hop router and the Target Address MUST be the
                       router's link-local address so that hosts can
                       uniquely identify routers.
      
      According to this definition, when a router redirect to a host, the
      target address either the better first-hop router's link-local address
      or the same as the ICMP destination address field. But the function of
      ndisc_send_redirect() in net/ipv6/ndisc.c, does not check the target
      address correctly.
      
      There is another definition about receive Redirect message in RFC2461:
      
      8.1.  Validation of Redirect Messages
      
         A host MUST silently discard any received Redirect message that does
         not satisfy all of the following validity checks:
         ......
         - The ICMP Target Address is either a link-local address (when
           redirected to a router) or the same as the ICMP Destination
           Address (when redirected to the on-link destination).
         ......
      
      And the receive redirect function of ndisc_redirect_rcv() implemented
      this definition, checks the target address correctly.
          if (ipv6_addr_equal(dest, target)) {
              on_link = 1;
          } else if (!(ipv6_addr_type(target) & IPV6_ADDR_LINKLOCAL)) {
              ND_PRINTK2(KERN_WARNING
                     "ICMPv6 Redirect: target address is not link-local.\n");
              return;
          }
      
      So, I think the send redirect function must check the target address
      also.
      Signed-off-by: NLi Yewang <lyw@nanjing-fnst.com>
      Acked-by: NYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      29556526
    • N
      [IPV6]: Fix up some CONFIG typos · fa03ef38
      Neil Horman 提交于
      Signed-off-by: NNeil Horman <nhorman@tuxdriver.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      fa03ef38