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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: William Allen Simpson
Date: Saturday, February 13, 2010 - 11:41 pm

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

Prepare (future) error return.

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 |   14 ++-
  net/ipv6/syncookies.c    |    9 ++-
  net/ipv6/tcp_ipv6.c      |    6 +-
  7 files changed, 163 insertions(+), 111 deletions(-)
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/7] tcp: bugs and cleanup updated to 2.6.33-rc8, William Allen Simpson, (Sat Feb 13, 11:01 pm)
[PATCH v3 1/7] net: tcp_header_len_th and tcp_option_len_th, William Allen Simpson, (Sat Feb 13, 11:05 pm)
[PATCH v3 2/7] net: remove old tcp_optlen function, William Allen Simpson, (Sat Feb 13, 11:09 pm)
[PATCH v5 3/7] tcp: harmonize tcp_vx_rcv header length ass ..., William Allen Simpson, (Sat Feb 13, 11:16 pm)
[PATCH v4 4/7] tcp: input header length, prediction, and t ..., William Allen Simpson, (Sat Feb 13, 11:21 pm)
[PATCH v3 5/7] TCPCT part 2e: accept SYNACK data, William Allen Simpson, (Sat Feb 13, 11:26 pm)
[PATCH v4 6/7] TCPCT part 2f: cleanup tcp_parse_options, William Allen Simpson, (Sat Feb 13, 11:41 pm)
[PATCH v6 7/7] TCPCT part 2g: parse cookie pair and 64-bit ..., William Allen Simpson, (Sun Feb 14, 12:02 am)
Re: [PATCH v3 2/7] net: remove old tcp_optlen function, David Miller, (Wed Feb 17, 4:43 pm)