[net-next-2.6 PATCH v7 5/7 RFC] TCPCT part 1e: implement socket option TCP_COOKIE_TRANSACTIONS

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: William Allen Simpson
Date: Friday, November 20, 2009 - 7:48 am

Provide per socket control of the TCP cookie option and SYN/SYNACK data.

This is a straightforward re-implementation of an earlier (year-old)
patch that no longer applies cleanly, with permission of the original
author (Adam Langley):

    http://thread.gmane.org/gmane.linux.network/102586

The principle difference is using a TCP option to carry the cookie nonce,
instead of a user configured offset in the data.

Allocations have been rearranged to avoid requiring GFP_ATOMIC.

Requires:
   net: TCP_MSS_DEFAULT, TCP_MSS_DESIRED
   TCPCT part 1c: sysctl_tcp_cookie_size, socket option TCP_COOKIE_TRANSACTIONS
   TCPCT part 1d: define TCP cookie option, extend existing struct's

Signed-off-by: William.Allen.Simpson@gmail.com
---
  net/ipv4/tcp.c |  133 +++++++++++++++++++++++++++++++++++++++++++++++++++++++-
  1 files changed, 131 insertions(+), 2 deletions(-)
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[net-next-2.6 PATCH v7 0/7 RFC] TCPCT part 1: cookie optio ..., William Allen Simpson, (Fri Nov 20, 7:04 am)
[net-next-2.6 PATCH v7 1/7 RFC] TCPCT part 1a: add request ..., William Allen Simpson, (Fri Nov 20, 7:12 am)
[net-next-2.6 PATCH v7 2/7 RFC] TCPCT part 1b: generate Re ..., William Allen Simpson, (Fri Nov 20, 7:23 am)
[net-next-2.6 PATCH v7 3/7 RFC] TCPCT part 1c: sysctl_tcp_ ..., William Allen Simpson, (Fri Nov 20, 7:33 am)
[net-next-2.6 PATCH v7 4/7 RFC] TCPCT part 1d: define TCP ..., William Allen Simpson, (Fri Nov 20, 7:38 am)
[net-next-2.6 PATCH v7 5/7 RFC] TCPCT part 1e: implement s ..., William Allen Simpson, (Fri Nov 20, 7:48 am)
[net-next-2.6 PATCH v7 6/7 RFC] TCPCT part 1f: Initiator C ..., William Allen Simpson, (Fri Nov 20, 7:55 am)
[net-next-2.6 PATCH v7 7/7 RFC] TCPCT part 1g: Responder C ..., William Allen Simpson, (Fri Nov 20, 8:06 am)
Re: [net-next-2.6 PATCH v7 2/7 RFC] TCPCT part 1b: generat ..., William Allen Simpson, (Sat Nov 21, 9:09 am)
Re: [net-next-2.6 PATCH v7 3/7 RFC] TCPCT part 1c: sysctl_ ..., William Allen Simpson, (Sat Nov 21, 9:51 am)
Re: [net-next-2.6 PATCH v7 3/7 RFC] TCPCT part 1c: sysctl_ ..., William Allen Simpson, (Sat Nov 21, 9:40 pm)
Re: [net-next-2.6 PATCH v7 4/7 RFC] TCPCT part 1d: define ..., William Allen Simpson, (Sat Nov 21, 9:53 pm)
Re: [net-next-2.6 PATCH v7 5/7 RFC] TCPCT part 1e: impleme ..., William Allen Simpson, (Sat Nov 21, 11:25 pm)
Re: [net-next-2.6 PATCH v7 5/7 RFC] TCPCT part 1e: impleme ..., William Allen Simpson, (Mon Nov 23, 4:16 am)
Re: [net-next-2.6 PATCH] net/ipv4: Move && and || to end o ..., =?ISO-8859-15?Q?Ilpo ..., (Mon Nov 23, 3:08 pm)
Re: [net-next-2.6 PATCH] net/ipv4: Move && and || to end o ..., =?ISO-8859-15?Q?Ilpo ..., (Mon Nov 23, 3:32 pm)