Re: [net-next-2.6 PATCH v8 3/7] TCPCT part 1c: sysctl_tcp_cookie_size, socket option TCP_COOKIE_TRANSACTIONS

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: William Allen Simpson
Date: Wednesday, December 2, 2009 - 9:14 pm

Define sysctl (tcp_cookie_size) to turn on and off the cookie option
default globally, instead of a compiled configuration option.

Define per socket option (TCP_COOKIE_TRANSACTIONS) for setting constant
data values, retrieving variable cookie values, and other facilities.

Move inline tcp_clear_options() unchanged from net/tcp.h to linux/tcp.h,
near its corresponding struct tcp_options_received (prior to changes).

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

These functions will also be used in subsequent patches that implement
additional features.

Requires:
   net: TCP_MSS_DEFAULT, TCP_MSS_DESIRED

Signed-off-by: William.Allen.Simpson@gmail.com
---
  Documentation/networking/ip-sysctl.txt |    8 +++++++
  include/linux/tcp.h                    |   33 +++++++++++++++++++++++++++++++-
  include/net/tcp.h                      |    6 +----
  net/ipv4/sysctl_net_ipv4.c             |    8 +++++++
  net/ipv4/tcp_output.c                  |    3 ++
  5 files changed, 52 insertions(+), 6 deletions(-)
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[net-next-2.6 PATCH v8 0/7] TCPCT part 1: cookie option ex ..., William Allen Simpson, (Wed Dec 2, 9:04 pm)
Re: [net-next-2.6 PATCH v8 1/7] TCPCT part 1a: add request ..., William Allen Simpson, (Wed Dec 2, 9:07 pm)
Re: [net-next-2.6 PATCH v8 2/7] TCPCT part 1b: generate Re ..., William Allen Simpson, (Wed Dec 2, 9:12 pm)
Re: [net-next-2.6 PATCH v8 3/7] TCPCT part 1c: sysctl_tcp_ ..., William Allen Simpson, (Wed Dec 2, 9:14 pm)
Re: [net-next-2.6 PATCH v8 4/7] TCPCT part 1d: define TCP ..., William Allen Simpson, (Wed Dec 2, 9:17 pm)
Re: [net-next-2.6 PATCH v8 5/7] TCPCT part 1e: implement s ..., William Allen Simpson, (Wed Dec 2, 9:19 pm)
Re: [net-next-2.6 PATCH v8 6/7] TCPCT part 1f: Initiator C ..., William Allen Simpson, (Wed Dec 2, 9:23 pm)
Re: [net-next-2.6 PATCH v8 7/7] TCPCT part 1g: Responder C ..., William Allen Simpson, (Wed Dec 2, 9:25 pm)