Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755442AbYBRHdI (ORCPT ); Mon, 18 Feb 2008 02:33:08 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753847AbYBRHcy (ORCPT ); Mon, 18 Feb 2008 02:32:54 -0500 Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:33518 "EHLO sunset.davemloft.net" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1753795AbYBRHcx (ORCPT ); Mon, 18 Feb 2008 02:32:53 -0500 Date: Sun, 17 Feb 2008 23:33:30 -0800 (PST) Message-Id: <20080217.233330.157255657.davem@davemloft.net> To: ggriffin.kernel@gmail.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] Support arbitrary initial TCP timestamps From: David Miller In-Reply-To: <1203097630-13237-1-git-send-email-ggriffin.kernel@gmail.com> References: <1203097630-13237-1-git-send-email-ggriffin.kernel@gmail.com> X-Mailer: Mew version 5.2 on Emacs 22.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1435 Lines: 33 From: Glenn Griffin Date: Fri, 15 Feb 2008 09:47:08 -0800 > Introduce the ability to send arbitrary initial tcp timestamps that are not > tied directly to jiffies. The basic conecpt is every tcp_request_sock and > tcp_sock now has a ts_off offset that represents the difference between > tcp_time_stamp and the timestamp we send and expect to > receive. > > This has the advantage of not divulging system information (uptime) > depending on the policy chosen for the initial timestamps. > > A policy where ts_off is always set to zero should produce no change in > behavior. The policy implemented is not intended for real use, but just as > a simple example. A realistic example would probably be similar to the tcp > init sequence generator. > > Signed-off-by: Glenn Griffin Adding yet another member to the already bloated tcp_sock structure to implement this is too high a cost. I would instead prefer that there be some global random number calculated when the first TCP socket is created, and use that as a global offset. You can even recompute it every few hours if you like. We do similar things already elsewhere. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/