Date: Mon, 27 Sep 2010 11:55:38 -0400 From: John Nielsen <lists@jnielsen.net> To: Paul Joe <apauljoe@gmail.com> Cc: freebsd-net@freebsd.org Subject: Re: Extending dummynet/ipfw Message-ID: <0A10F8F0-5BAB-4782-87CF-91E7661D805E@jnielsen.net> In-Reply-To: <AANLkTi=GozyQv%2BxuXS7xT6Kzaa7XaFxAOrihKdKdnCge@mail.gmail.com> References: <AANLkTi=GozyQv%2BxuXS7xT6Kzaa7XaFxAOrihKdKdnCge@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sep 27, 2010, at 11:20 AM, Paul Joe wrote: > I have attached a patch which allows to do flow classifications in = userland > (e.g based on url categories, LDAP users) > and do bandwidth control in kernel(dummynet). >=20 > The patch has >=20 > a) a setsocketopt, to associate a pipe to the socket. >=20 > b) an ipfw option(sockarg) to redirect flows to corresponding pipe. >=20 > Moreover, a member uint32_t is added to struct socket to hold the pipe = info. >=20 > I guess this structure is not part of kernel userland ABI. >=20 > Please let me know your comments, which I would be glad to incorporate This is something I have wished for in the past so I'm glad to see it. = I'd love to test it but I'm not sure what to do, especially on the = userland side. Could you post a simple ipfw ruleset that uses your patch = along with directions or a simple example program for doing the userland = classification? Thanks! JN
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0A10F8F0-5BAB-4782-87CF-91E7661D805E>