Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Mar 1997 17:21:35 +1100 (EST)
From:      michael butler <imb@scgt.oz.au>
To:        dg@root.com
Cc:        davem@jenolan.rutgers.edu, netdev@roxanne.nuclecu.unam.mx, hackers@FreeBSD.ORG
Subject:   Re: ok, final sockhash changes, new diff
Message-ID:  <199703020621.RAA12400@asstdc.scgt.oz.au>
In-Reply-To: <199703020156.RAA00329@root.com> from David Greenman at "Mar 1, 97 05:56:24 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
David Greenman writes:

>    The reason just occured to me: In the case of a server with googols of
> IP aliases, the {faddr, lport, fport} are all the same (faddr and fport
> are wildcards) for the listening sockets of a given service (say
> http)...so the only thing unique is the laddr, which if not included in
> the hash, will cause all of the listening sockets to be hashed to the same
> bucket.

This being the case, a simple counter (number of listens performed) added to
the hash would help redistribute across buckets - don't care about
wrap-around .. or am I off the planet ? :-)

	michael



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