Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755141Ab0BNHCP (ORCPT ); Sun, 14 Feb 2010 02:02:15 -0500 Received: from mail-iw0-f201.google.com ([209.85.223.201]:34025 "EHLO mail-iw0-f201.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753348Ab0BNHCN (ORCPT ); Sun, 14 Feb 2010 02:02:13 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type; b=FIHp5DnCbCsGkqMSi6b37oEih+y16neXnzOXHPlWOwD6Y8l2byqCjDTnE6EPR1YsO+ Jp8fa5BrPFdp3LBO2pNOZnGCf9dFtEPr5GtVmjCZ1hyIsjPthtuDCMdcOagiw9ayTyCN AicqRDfSLN7t2rfu71lsh0hRkTBfc5s8qNnzQ= Message-ID: <4B779FF0.7080101@gmail.com> Date: Sun, 14 Feb 2010 02:02:08 -0500 From: William Allen Simpson User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) MIME-Version: 1.0 To: Linux Kernel Developers , Linux Kernel Network Developers CC: Andrew Morton , David Miller Subject: [PATCH v6 7/7] TCPCT part 2g: parse cookie pair and 64-bit timestamp References: <4B7791CF.9030201@gmail.com> In-Reply-To: <4B7791CF.9030201@gmail.com> Content-Type: multipart/mixed; boundary="------------020607050309040009040003" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 14872 Lines: 225 This is a multi-part message in MIME format. --------------020607050309040009040003 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Every bit is sacred. Use as few bits as possible in tcp_options_received. Group related timestamp flag bits for cache line memory efficiency. Fix #define spacing for TCP options. Define and parse 64-bit timestamp extended option (and minor cleanup). However, only 32-bits are used at this time (permitted by specification). Parse cookie pair extended option (previously defined). Handle header extension. Requires: net: tcp_header_len_th and tcp_option_len_th TCPCT part 2f: cleanup tcp_parse_options Signed-off-by: William.Allen.Simpson@gmail.com --- include/linux/tcp.h | 12 ++++- include/net/tcp.h | 45 +++++++++--------- net/ipv4/tcp_input.c | 123 +++++++++++++++++++++++++++++++++++++++++++++---- 3 files changed, 146 insertions(+), 34 deletions(-) --------------020607050309040009040003 Content-Type: text/plain; x-mac-type="54455854"; x-mac-creator="0"; name="TCPCT+2g6+2.6.33-rc8.patch" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="TCPCT+2g6+2.6.33-rc8.patch" ZGlmZiAtLWdpdCBhL2luY2x1ZGUvbGludXgvdGNwLmggYi9pbmNsdWRlL2xpbnV4L3RjcC5o CmluZGV4IDI5ODdlZTguLjA1ZmE5YjIgMTAwNjQ0Ci0tLSBhL2luY2x1ZGUvbGludXgvdGNw LmgKKysrIGIvaW5jbHVkZS9saW51eC90Y3AuaApAQCAtMjQ3LDcgKzI0Nyw3IEBAIHN0cnVj dCB0Y3Bfb3B0aW9uc19yZWNlaXZlZCB7CiAJdTMyCXRzX3JlY2VudDsJLyogVGltZSBzdGFt cCB0byBlY2hvIG5leHQJCSovCiAJdTMyCXJjdl90c3ZhbDsJLyogVGltZSBzdGFtcCB2YWx1 ZSAgICAgICAgICAgICAJKi8KIAl1MzIJcmN2X3RzZWNyOwkvKiBUaW1lIHN0YW1wIGVjaG8g cmVwbHkgICAgICAgIAkqLwotCXUxNiAJc2F3X3RzdGFtcCA6IDEsCS8qIFNhdyBUSU1FU1RB TVAgb24gbGFzdCBwYWNrZXQJCSovCisJdTE2IAl0c3RhbXA2NF9vazoxLAkvKiBWZXJpZmll ZCB3aXRoIGNvb2tpZSBwYWlyCQkqLwogCQl0c3RhbXBfb2sgOiAxLAkvKiBUSU1FU1RBTVAg c2VlbiBvbiBTWU4gcGFja2V0CQkqLwogCQlkc2FjayA6IDEsCS8qIEQtU0FDSyBpcyBzY2hl ZHVsZWQJCQkqLwogCQl3c2NhbGVfb2sgOiAxLAkvKiBXc2NhbGU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Aog CVRDUF9FQ05fYWNjZXB0X2N3cih0cCwgc2tiKTsKIApAQCAtNTAzOCw4ICs1MTQxLDggQEAg c3RhdGljIHZvaWQgdGNwX3VyZyhzdHJ1Y3Qgc29jayAqc2ssIHN0cnVjdCBza19idWZmICpz a2IsIHN0cnVjdCB0Y3BoZHIgKnRoKQogCiAJLyogRG8gd2Ugd2FpdCBmb3IgYW55IHVyZ2Vu dCBkYXRhPyAtIG5vcm1hbGx5IG5vdC4uLiAqLwogCWlmICh0cC0+dXJnX2RhdGEgPT0gVENQ X1VSR19OT1RZRVQpIHsKLQkJdTMyIHB0ciA9IHRwLT51cmdfc2VxIC0gbnRvaGwodGgtPnNl cSkgKyAodGgtPmRvZmYgKiA0KSAtCi0JCQkgIHRoLT5zeW47CisJCXUzMiBwdHIgPSAoKHRo LT5kb2ZmICsgdHAtPnJ4X29wdC5leHRlbmRlZCkgKiA0KQorCQkJKyB0cC0+dXJnX3NlcSAt IG50b2hsKHRoLT5zZXEpIC0gdGgtPnN5bjsKIAogCQkvKiBJcyB0aGUgdXJnZW50IHBvaW50 ZXIgcG9pbnRpbmcgaW50byB0aGlzIHBhY2tldD8gKi8KIAkJaWYgKHB0ciA8IHNrYi0+bGVu KSB7Ci0tIAoxLjYuMy4zCgo= --------------020607050309040009040003-- -- 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/