From owner-freebsd-net@FreeBSD.ORG Thu Oct 25 11:01:18 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 C828316A419 for ; Thu, 25 Oct 2007 11:01:18 +0000 (UTC) (envelope-from rpaulo@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.175]) by mx1.freebsd.org (Postfix) with ESMTP id 579BF13C4B3 for ; Thu, 25 Oct 2007 11:01:17 +0000 (UTC) (envelope-from rpaulo@gmail.com) Received: by ug-out-1314.google.com with SMTP id y2so559788uge for ; Thu, 25 Oct 2007 04:01:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer:sender; bh=pJWjjiB1vQxsfHCrBZV9jTUpUAdKZrkyLJvaqz/YIkc=; b=Oc4hnBPEVxFzjHCzN6UZ3BoPhgFn5phIlTDHucpsoRrupTDFzOYs3YZWDoDwHkKfqSH/d2h/RrRcRbKcL4+mJA6mgjQFuzOYOruB3QPpu8Ae99mazhDgFKV45tZbjensr4DrJ8VYRBpXwEuAi9c7ky2P3p5oVOA06pDKhXdJp4M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer:sender; b=DlQKQ0fBz3UattRiAxJblZA1d1EX4oz5oD7c2syIvSzA6snDpwcHqGyNqYBx3GLeBvbbSU/AOlyNLasJkPxFfJb6iILHX/vgP9YkWOKUTrZN+MRYsWZURnVETum36g+z6DDkSY1kdSRZllih4hsfPfao0SCOT8aPQIbnvDCK+cs= Received: by 10.66.249.16 with SMTP id w16mr3159ugh.1193310076307; Thu, 25 Oct 2007 04:01:16 -0700 (PDT) Received: from ?10.0.0.11? ( [87.196.115.7]) by mx.google.com with ESMTPS id y37sm2391349iky.2007.10.25.04.01.12 (version=SSLv3 cipher=OTHER); Thu, 25 Oct 2007 04:01:14 -0700 (PDT) In-Reply-To: <47206EE2.6030606@citrin.ru> References: <47206EE2.6030606@citrin.ru> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <3171D7CB-2E63-4FAF-92A9-3907D44AB845@fnop.net> Content-Transfer-Encoding: 7bit From: Rui Paulo Date: Thu, 25 Oct 2007 12:01:08 +0100 To: Anton Yuzhaninov X-Mailer: Apple Mail (2.752.3) Sender: Rui Paulo Cc: freebsd-net@freebsd.org Subject: Re: RELENG_7: can't connect to Solaris 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: Thu, 25 Oct 2007 11:01:18 -0000 On 25 Oct 2007, at 11:24, Anton Yuzhaninov wrote: > > I can't connect from FreeBSD 7 box to Solaris 9. While between > FreeBSD6 and Solaris 9 tcp work fine. > > I run on FreeBSD, and it nod't work: > $ fetch -o /dev/null http://mail6:8274 fetch: transfer timed out > > OS versions: > FreeBSD citrin.rambler.stack.net 7.0-PRERELEASE FreeBSD 7.0- > PRERELEASE #0: Fri Oct 19 00:31:03 MSD 2007 > citrin@citrin.rambler.stack.net:/usr/obj/usr/src/sys/GENERIC amd64 > SunOS mail6 5.9 Generic_117172-07 i86pc i386 i86pc > > tcpdump on freebsd side: > 04:26:28.332895 81.19.65.162.57161 > 81.19.71.6.8274: S [bad tcp > cksum 3038!] 3123015513:3123015513(0) win 65535 1460,nop,wscale 8,sackOK,timestamp 498561841 0> (DF) (ttl 64, id > 27368, len 60, bad cksum 0!) > 04:26:28.333213 81.19.71.6.8274 > 81.19.65.162.57161: S [tcp sum > ok] 2890615179:2890615179(0) ack 3123015514 win 33304 > 1,nop,nop,sackOK> (DF) (ttl 62, id 16035, len 64) > 04:26:28.333290 81.19.65.162.57161 > 81.19.71.6.8274: . [bad tcp > cksum 793f!] ack 1 win 260 > (DF) (ttl 64, id 27369, len 52, bad cksum 0!) > 04:26:28.334892 81.19.65.162.57161 > 81.19.71.6.8274: P [bad tcp > cksum 572f!] 1:88(87) ack 1 win 260 622594948> (DF) (ttl 64, id 27370, len 139, bad cksum 0!) > 04:26:28.335148 81.19.71.6.8274 > 81.19.65.162.57161: . [tcp sum > ok] ack 88 win 33260 (DF) > (ttl 62, id 16036, len 52) > > snoop in Solaris show same: > 1 0.00000 81.19.65.162 -> 81.19.71.6 TCP D=8274 S=57161 Syn > Seq=3123015513 Len=0 Win=65535 Options= 8,sackOK,tstamp 498561841 0> > 2 0.00001 81.19.71.6 -> 81.19.65.162 TCP D=57161 S=8274 Syn > Ack=3123015514 Seq=2890615179 Len=0 Win=33304 > Options= 1,nop,nop,sackOK> > 3 0.00028 81.19.65.162 -> 81.19.71.6 TCP D=8274 S=57161 > Ack=2890615180 Seq=3123015514 Len=0 Win=260 Options= 498561841 622594948> > 4 0.00162 81.19.65.162 -> 81.19.71.6 TCP D=8274 S=57161 Push > Ack=2890615180 Seq=3123015514 Len=87 Win=260 > Options= > 5 0.00003 81.19.71.6 -> 81.19.65.162 TCP D=57161 S=8274 > Ack=3123015601 Seq=2890615180 Len=0 Win=33260 > Options= > > > With net.inet.tcp.rfc1323=0 tcp work, but it should work with > rfc1323=1 (and in FreeBSD 6 tcp to SunOS work with rfc1323=1). > > net.inet.tcp.log_debug=1 and nothing about this connection logged. As silby@ already pointed out to me, try changing TCP_MAX_WINSHIFT in src/sys/netinet/tcp.h to 4. Regards. -- Rui Paulo