Date: Fri, 12 Nov 2010 13:02:26 +0000 (UTC) From: Luigi Rizzo <luigi@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/lib/libc/sys getsockopt.2 src/sys/kern uipc_socket.c src/sys/sys socket.h socketvar.h Message-ID: <201011121303.oACD3IGY049302@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
luigi 2010-11-12 13:02:26 UTC FreeBSD src repository Modified files: lib/libc/sys getsockopt.2 sys/kern uipc_socket.c sys/sys socket.h socketvar.h Log: SVN rev 215178 on 2010-11-12 13:02:26Z by luigi 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 Revision Changes Path 1.42 +18 -0 src/lib/libc/sys/getsockopt.2 1.351 +10 -0 src/sys/kern/uipc_socket.c 1.106 +1 -0 src/sys/sys/socket.h 1.175 +7 -0 src/sys/sys/socketvar.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011121303.oACD3IGY049302>