From owner-freebsd-net@FreeBSD.ORG Fri Sep 28 16:23:01 2007 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8555116A421 for ; Fri, 28 Sep 2007 16:23:01 +0000 (UTC) (envelope-from maxim@macomnet.ru) Received: from mp2.macomnet.net (mp2.macomnet.net [195.128.64.6]) by mx1.freebsd.org (Postfix) with ESMTP id E354E13C44B for ; Fri, 28 Sep 2007 16:23:00 +0000 (UTC) (envelope-from maxim@macomnet.ru) Received: from localhost (localhost.int.ru [127.0.0.1] (may be forged)) by mp2.macomnet.net (8.13.7/8.13.8) with ESMTP id l8SG3BeV008351; Fri, 28 Sep 2007 20:03:18 +0400 (MSD) (envelope-from maxim@macomnet.ru) Date: Fri, 28 Sep 2007 20:03:11 +0400 (MSD) From: Maxim Konovalov To: Igor Sysoev In-Reply-To: <20070816142431.GO57126@rambler-co.ru> Message-ID: <20070928200241.F77827@mp2.macomnet.net> References: <20070816142431.GO57126@rambler-co.ru> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-net@freebsd.org Subject: Re: syncookie in 6.x and 7.x X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Sep 2007 16:23:01 -0000 On Thu, 16 Aug 2007, 18:24+0400, Igor Sysoev wrote: > During testing 7.0-CURRENT I have found that it always sends syncookies > while on early FreeBSD versions "netstat -s -p tcp" always shows: > > 0 cookies sent > 0 cookies received > > I have looked sources and found that in early versions the sent counter > was simply not incremented at all. The patch attached. > > After the patch has been applied I have found that 6 always sends > syncookies too, however, 6 unlike 7 never receives them. Why ? > Mine does: $ netstat -sp tcp | grep cook 51588 cookies sent 25 cookies received $ uname -r 6.2-STABLE -- Maxim Konovalov