Subject: Re: Proposal: socketfrom()
To: NetBSD Networking Technical Discussion List <>
From: Greg A. Woods <>
List: tech-net
Date: 07/05/2007 17:58:40
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

At Thu, 5 Jul 2007 20:51:38 +0100 (BST), David Brownlee wrote:
Subject: Re: Proposal: socketfrom()
>  	It means any library that craetes a socket, including third
>  	party libraries, needs to know about this feature and
>  	specifically code around it.

Or rather that any application making use of the setsockopt_defaults()
facility know about all library routines it uses which could create a
socket and then reset the defaults back to "normal" for the duration of
the library call.....  :-)

(assuming the new defaults would be unworkable for the library call)

Not ideal if those calls are interleaved with socket() or accept() calls
mind you, but perhaps pairs of setsockopt_defaults() would be faster
than many setsockopt() calls and so would still be a win....

						Greg A. Woods

H:+1 416 218-0098 W:+1 416 489-5852 x122 VE3TCP RoboHack <>
Planix, Inc. <>       Secrets of the Weird <>

Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

Version: PGPfreeware 5.0i for non-commercial use
MessageID: KYbGREq9BneYp4MwhbfjsipUQl3eO2EO