1. 06 Oct, 2004 35 commits
  2. 05 Oct, 2004 5 commits
    • Herbert Xu's avatar
      [TCP]: Fix bug that hid sockets in tcp_diag · 02ae675f
      Herbert Xu authored
      This patch squashes a bug in tcp_diag which was created when the
      sk_* loops replaced the original for loops.  It's a pity that these
      sk_*/hlist_*/list_* loops don't take an arbitrary expression as an
      argument for continue.
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      02ae675f
    • Hideaki Yoshifuji's avatar
      [INET]: Fix ECN encapsulation. · a31f1aeb
      Hideaki Yoshifuji authored
      We broke ECN encapsulation in tunnels recently.
      Without this patch, even though encapusulated (inner) packet is 
      'not-ECN', encapusulating (outer) packet is sent with 'ECT(0)' set.
      This is wrong and should be 'not-ECN.'
      This patch fixes up.
      
      From RFC3168:
         The full-functionality option for ECN encapsulation is to copy the
         ECN codepoint of the inside header to the outside header on
         encapsulation if the inside header is not-ECT or ECT, and to set the
         ECN codepoint of the outside header to ECT(0) if the ECN codepoint of
         the inside header is CE.
      Signed-off-by: default avatarHideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      a31f1aeb
    • Herbert Xu's avatar
      [TCP]: Show all SYN_RECV sockets in /proc/net/tcp · a1b4d745
      Herbert Xu authored
      I was fixing the tcp_diag so that it shows SYN_RECV sockets properly.
      I found that /proc/net/tcp didn't do it correctly either.  So here is
      a small patch to fix /proc/net/tcp.
      
      The logic in there stinks though so I'd love to see a rewrite.
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      a1b4d745
    • David S. Miller's avatar
      [SPARC64]: Make kprobe implementation more robust. · cb8b9b70
      David S. Miller authored
      Switch over to use the single-step scheme which x86 uses
      which is to execute the kprobe instruction in the
      kprobe->insn[] area.  Also, make sure the kprobe execution
      runs fully with interrupts disabled, so we do not deadlock.
      
      This required adding code to fix things up as a result of
      the instruction executing at a PC which is different from
      where it would normally execute.  For example, if the
      instruction is a PC-relative branch, we have to adjust the
      final PC value.
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      cb8b9b70
    • Linus Torvalds's avatar
      i386: mark do_test_wp_bit() noinline · 8756f2ef
      Linus Torvalds authored
      As reported by Zachary Amsden <zach@vmware.com>,
      some gcc versions will inline the function even when
      it is declared after the call-site. This particular
      function must not be inlined, since the exception
      recovery doesn't like __init sections (which the caller
      is in).
      8756f2ef