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
..
2008-04-03 02:41:54 +00:00
2006-09-26 09:47:46 +00:00
2008-04-03 02:41:54 +00:00
2009-06-01 09:32:12 +00:00
2009-10-11 00:08:55 +00:00
2010-08-02 16:01:45 +00:00
2006-09-17 21:27:35 +00:00
2006-10-07 05:13:32 +00:00
2007-04-05 21:17:52 +00:00
2010-10-21 12:27:13 +00:00
2008-11-11 14:55:59 +00:00
2010-08-06 14:33:42 +00:00
2010-10-08 12:40:16 +00:00
2009-06-15 21:52:27 +00:00
2007-05-14 13:58:54 +00:00
2010-07-30 11:58:18 +00:00
2007-12-19 03:33:13 +00:00
2010-01-07 21:14:46 +00:00
2009-09-18 14:17:00 +00:00
2006-09-17 21:27:35 +00:00
2010-10-13 16:57:06 +00:00
2010-10-21 12:27:13 +00:00
2009-01-12 13:12:02 +00:00
2007-06-18 01:50:03 +00:00
2007-06-18 01:50:03 +00:00