Subject: Re: Obtaining client IP address before accept(2)
To: None <tech-kern@NetBSD.org>
From: Ignatios Souvatzis <ignatios@cs.uni-bonn.de>
List: tech-kern
Date: 07/13/2005 14:14:19
--nFreZHaLTZJo0R7j
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Jul 13, 2005 at 10:54:39AM +0200, Tonnerre wrote:
> Salut,
>=20
> On Tue, Jul 12, 2005 at 06:16:11PM -0400, Matthew Mondor wrote:
> > It would be most useful for some of my applications to be able to know
> > the IP address of a client before calling accept(2), and to be able to
> > cancel that connection event without needing to accept(2) and close(2)
> > it.
>=20
> Since you usually get clientfds in an accept() loop, close()ing the
> connection would be the natural way of doing things. If you want to
> NAK the connection from the beginning, you should do it in the firewall.
> However, this is unnatural behavior, normally you just RST a connection,
> which can be done by close().

Now I'm sure I must have misunderstood something.
What are we talking about here? TCP, UDP, something completely different?

	-is

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

-----BEGIN PGP SIGNATURE-----
Version: 2.6.i

iQEVAgUBQtUFHTCn4om+4LhpAQF2Cwf6AzVf7+9GtLcO9rGDlU02dWGWSXWhHQs1
QnOC4A2sm1Pq6LmcfGAB2/yUgOjb6lok/w9D1Sie9uo+Sa+Usy3eTJ9lMFN5daU0
KjQdaqZT4f7QqoVNbv2ZQQEtI4b9jRi+sXczMokfsfk4EpF+tBviT5jUYvzJmVt0
OKmf8Rv+2eq0fHJhW+9fPBpCKk/Qh9/IiLds15uXrRJMbJtgzUce4tXBfxGzaHZg
rpyrScYIEPwkWfQ4aJLvFqrX/CjtVbxfnIaQSR/jvqkJZ2CYXViBHeB8CU9TMV2a
i+E8N5k5ce74gVK/rvS4w2nWStGttV2vwNQdUE9FSfD9tG+1X0jQRA==
=9qzW
-----END PGP SIGNATURE-----

--nFreZHaLTZJo0R7j--