[PATCH v5 6/7] TCPCT part 2f: cleanup tcp_parse_options

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

Split switch, shift cases to the left, fix most lines beyond column 80.

Prepare (future) error return.

Harmonize initialization in syncookies.
Fix initialization in tcp_minisocks.

Repair net/ipv4/tcp_ipv4.c errors with goto targets, overlooked by
David Miller in commit bb5b7c11263dbbe78253cd05945a6bf8f55add8e

Requires:
   TCPCT part 1g: Responder Cookie => Initiator
   net: tcp_header_len_th and tcp_option_len_th

Signed-off-by: William.Allen.Simpson@gmail.com
---
  include/net/tcp.h        |    3 +-
  net/ipv4/syncookies.c    |    9 ++-
  net/ipv4/tcp_input.c     |  223 ++++++++++++++++++++++++++--------------------
  net/ipv4/tcp_ipv4.c      |   10 ++-
  net/ipv4/tcp_minisocks.c |   26 ++++--
  net/ipv6/syncookies.c    |    9 ++-
  net/ipv6/tcp_ipv6.c      |    6 +-
  7 files changed, 172 insertions(+), 114 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)