tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Patch: accept filters for NetBSD



On Tue, Jan 29, 2008 at 12:12:15PM -0500, Thor Lancelot Simon wrote:
> of certain application-layer protocols (the ones that like to make a lot
> of connections at once) without moving the entire protocol into the kernel,
> which you would presumably object to much more (talk about string parsing
> in the kernel! :-)).

I do imediately see the usefullness of the dataready filter, but could you
elaborate a bit more about protocol specific filters and why they
are a good idea?

I wonder if this could be simplified to:

 (1) a socketopt to turn on/off "dataready" behaviour
 (2) a socketopt to set a "banner" string, output to each new connection
     by the kernel on accept, followed by waiting for an input packet
     if dataready is turned on

Incompatible with freebsd, slighly less versatile. Simple & elegant - or
evil hack?

Martin



Home | Main Index | Thread Index | Old Index