Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 02 Mar 2007 21:57:33 +0100
From:      Andre Oppermann <andre@freebsd.org>
To:        freebsd-current@freebsd.org,  freebsd-net@freebsd.org
Cc:        qingli@freebsd.org, silby@freebsd.org, bms@freebsd.org, mohans@freebsd.org
Subject:   Unification and simplification of outbound TCP options handling
Message-ID:  <45E88FBD.4060407@freebsd.org>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45E88FBD.4060407>