lkml.org 
[lkml]   [1999]   [Dec]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Syn Cookies
Hi Andi.

> The appended patch fixes the problem too.

> diff -urN linux-2.2.13/net/ipv4/tcp_ipv4.c linux-2.2.13/net/ipv4/tcp_ipv4.c
> --- linux-2.2.13/net/ipv4/tcp_ipv4.c Wed Oct 20 02:14:02 1999
> +++ linux-2.2.13/net/ipv4/tcp_ipv4.c Mon Nov 1 15:58:04 1999
> @@ -1615,7 +1615,8 @@
> sk = tcp_check_req(sk, skb, req);
> }
> #ifdef CONFIG_SYN_COOKIES
> - else if (flg == __constant_htonl(0x00120000)) {
> + else if ((flg & __constant_htonl(0x00120000))==__constant_htonl(0x00100000))
> + {
> sk = cookie_v4_check(sk, skb, &(IPCB(skb)->opt));
> }
> #endif

Can I confirm that that patch is correct? The old test required both
bits 17 and 20 to be set, whilst the revised test requires bit 17 to
be clear instead ???

Best wishes from Riley.

* Copyright (C) 1999, Memory Alpha Systems.
* All rights and wrongs reserved.

+----------------------------------------------------------------------+
| There is something frustrating about the quality and speed of Linux |
| development, ie., the quality is too high and the speed is too high, |
| in other words, I can implement this XXXX feature, but I bet someone |
| else has already done so and is just about to release their patch. |
+----------------------------------------------------------------------+
* http://www.memalpha.cx/Linux/Kernel/


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:0.058 / U:2.604 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site