Date: Sun, 18 Jun 2000 16:25:02 -0500 From: Jonathan Lemon <jlemon@flugsvamp.com> To: Alfred Perlstein <bright@wintelcom.net> Cc: arch@FreeBSD.ORG Subject: Re: accept filters Message-ID: <20000618162502.A619@prism.flugsvamp.com> In-Reply-To: <20000618140412.F18462@fw.wintelcom.net> References: <20000618140412.F18462@fw.wintelcom.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jun 18, 2000 at 02:04:12PM -0700, Alfred Perlstein wrote: > http://people.freebsd.org/~alfred/accf.diff This part I somewhat dislike: struct socket { struct vm_zone *so_zone; /* zone we were allocated from */ short so_type; /* generic type, see socket.h */ @@ -112,6 +114,9 @@ /* NB: generation count must not be first; easiest to make it last. */ so_gen_t so_gencnt; /* generation count */ void *so_emuldata; /* private data for emulators */ + struct accept_filter *so_accept_filter; + void *so_accept_filter_arg; /* saved filter args */ + char *so_accept_filter_str; /* saved user args */ }; Isn't there a better way of doing this than adding more elements to every socket? Especially since this only applies to listen() sockets? -- Jonathan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000618162502.A619>