Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 May 2004 19:30:12 +0200
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        freebsd-net@freebsd.org
Subject:   Socket selection.
Message-ID:  <20040520173012.GR845@darkness.comp.waw.pl>

next in thread | raw e-mail | index | archive | help

--QUQ5hgLY738rkNmy
Content-Type: text/plain; charset=iso-8859-2
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hello.

In in_pcblookup_hash() function, in the last loop if we find exact
match, we return immediately, if it is "wild", we store a pointer and
we countinue looking for exact match.
I wonder if this is ok, that we change pointer every time we find a
"wild" match. Is it inteded? Shouldn't it be:

	http://people.freebsd.org/~pjd/patches/in_pcb.c.2.patch

?

While I'm here, I want to improve code readability a bit:

	http://people.freebsd.org/~pjd/patches/in_pcb.c.3.patch

Is it ok?

--=20
Pawel Jakub Dawidek                       http://www.FreeBSD.org
pjd@FreeBSD.org                           http://garage.freebsd.pl
FreeBSD committer                         Am I Evil? Yes, I Am!

--QUQ5hgLY738rkNmy
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFArOskForvXbEpPzQRAuqYAJsEGP+3IZc3Iisjnnd5/gsPirjNlQCg99KE
P07Vse12bNaTjw38fQHeQJs=
=nweI
-----END PGP SIGNATURE-----

--QUQ5hgLY738rkNmy--



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