Luigi Rizzo 5c9d0a9ad3 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).

The ipfw-related code that uses the optopn will be committed separately.

This change adds a field to 'struct socket', but the struct is not
part of any driver or userland-visible ABI so the change should be
harmless.

See the discussion at
http://lists.freebsd.org/pipermail/freebsd-ipfw/2009-October/004001.html

Idea and code from Paul Joe, small modifications and manpage
changes by myself.

Submitted by:	Paul Joe
MFC after:	1 week
2010-11-12 13:02:26 +00:00
..
2010-08-30 14:26:02 +00:00
2010-11-11 21:53:46 +00:00
2010-11-10 21:06:49 +00:00
2010-10-29 19:07:36 +00:00
2010-11-09 10:59:09 +00:00
2010-07-09 10:57:55 +00:00
2010-08-30 14:26:02 +00:00
2010-08-30 14:26:02 +00:00
2010-01-04 20:59:52 +00:00
2009-05-26 09:19:21 +00:00
2010-06-26 21:44:45 +00:00