[PATCH v7 7/7] TCPCT part 2g: parse cookie pair and 64-bit timestamp

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: William Allen Simpson
Date: Thursday, February 25, 2010 - 2:03 pm

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.

Fix initialization in tcp_minisocks.

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 ++++++++++++++++++++++++++++++++++++++++++----
  net/ipv4/tcp_minisocks.c |    6 ++
  4 files changed, 152 insertions(+), 34 deletions(-)
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/7] tcp: bugs and cleanup for 2.6.33, William Allen Simpson, (Thu Feb 25, 1:30 pm)
Re: [PATCH 0/7] tcp: bugs and cleanup for 2.6.33, William Allen Simpson, (Thu Feb 25, 1:34 pm)
[PATCH v3 1/7] net: tcp_header_len_th and tcp_option_len_th, William Allen Simpson, (Thu Feb 25, 1:35 pm)
[PATCH v3 2/7] net: remove old tcp_optlen function, William Allen Simpson, (Thu Feb 25, 1:39 pm)
Re: [PATCH 0/7] tcp: bugs and cleanup for 2.6.33, Ben Hutchings, (Thu Feb 25, 1:43 pm)
[PATCH v5 3/7] tcp: harmonize tcp_vx_rcv header length ass ..., William Allen Simpson, (Thu Feb 25, 1:44 pm)
[PATCH v5 4/7] tcp: input header length, prediction, and t ..., William Allen Simpson, (Thu Feb 25, 1:49 pm)
Re: [PATCH v3 2/7] net: remove old tcp_optlen function, Ben Hutchings, (Thu Feb 25, 1:55 pm)
[PATCH v3 5/7] TCPCT part 2e: accept SYNACK data, William Allen Simpson, (Thu Feb 25, 1:56 pm)
[PATCH v5 6/7] TCPCT part 2f: cleanup tcp_parse_options, William Allen Simpson, (Thu Feb 25, 2:01 pm)
[PATCH v7 7/7] TCPCT part 2g: parse cookie pair and 64-bit ..., William Allen Simpson, (Thu Feb 25, 2:03 pm)
Re: [PATCH 0/7] tcp: bugs and cleanup for 2.6.33, William Allen Simpson, (Thu Feb 25, 2:05 pm)
Re: [PATCH 0/7] tcp: bugs and cleanup for 2.6.33, David Miller, (Thu Feb 25, 10:33 pm)