Unification and simplification of outbound TCP options handling

From: Andre Oppermann <andre_at_freebsd.org>
Date: Fri, 02 Mar 2007 21:57:33 +0100
In tcp_syncache and tcp_output we have two entirely separate code paths dealing
with outbound TCP options.  Each of them has a significant size and many quirks.

This patch is a proper rewrite of both of them and introduces a new generic
function tcp_addoptions() to tcp_output.c.  The new function is then used in
both the syncache and the normal tcp_output path instead of their previous
versions.  It it alignment agnostic and can be used to write directly into
mbufs with any alignment.

The patch is here:

  http://people.freebsd.org/~andre/tcp_options-20070302.diff

Any testing and reviews appreciated.

-- 
Andre
Received on Fri Mar 02 2007 - 19:57:35 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:06 UTC