luigi d5e8d236f4 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-10-31 04:45:25 +00:00
2010-08-23 22:24:11 +00:00
2010-08-03 17:40:09 +00:00
2010-08-03 17:40:09 +00:00
2010-06-13 01:27:29 +00:00
2010-08-03 17:40:09 +00:00
2010-05-03 09:49:42 +00:00
2010-11-06 10:54:33 +00:00
2010-08-03 17:40:09 +00:00
2010-11-11 15:48:27 +00:00