svn commit: r215178 - in head: lib/libc/sys sys/kern sys/sys
Ivan Voras
ivoras at freebsd.org
Mon Nov 15 11:57:13 UTC 2010
On 12 November 2010 14:02, Luigi Rizzo <luigi at freebsd.org> wrote:
> Author: luigi
> Date: Fri Nov 12 13:02:26 2010
> New Revision: 215178
> URL: http://svn.freebsd.org/changeset/base/215178
>
> Log:
> This commit implements the SO_USER_COOKIE socket option, which lets
> you tag a socket with an uint32_t value. The cookie can then be
> used by the kernel for various purposes, e.g. setting the skipto
> rule or pipe number in ipfw (this is the reason SO_USER_COOKIE has
> been implemented; however there is nothing ipfw-specific in its
> implementation).
While at it, why not intptr_t? It would be marginally more useful and
almost free.
More information about the svn-src-all
mailing list