Subject: Re: Obtaining client IP address before accept(2)
To: None <tech-kern@NetBSD.org>
From: Matthias Scheler <tron@zhadum.de>
List: tech-kern
Date: 08/29/2005 03:49:44
In article <200507131310.JAA13299@sparkle.rodents.montreal.qc.ca>,
	der Mouse <mouse@Rodents.Montreal.QC.CA> writes:
>> However, this is unnatural behavior, normally you just RST a
>> connection, which can be done by close().
> It can?  When I do that, I see a FIN segment, not an RST.

If you activate lingering with setsockopt(2) using a linger time of zero
you will get an RST on close(2).

	Kind regards

-- 
Matthias Scheler                                  http://scheler.de/~matthias/