From owner-cvs-src-old@FreeBSD.ORG Fri Nov 12 13:03:18 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B7F5D106566B for ; Fri, 12 Nov 2010 13:03:18 +0000 (UTC) (envelope-from luigi@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id A30078FC21 for ; Fri, 12 Nov 2010 13:03:18 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id oACD3IqS049303 for ; Fri, 12 Nov 2010 13:03:18 GMT (envelope-from luigi@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id oACD3IGY049302 for cvs-src-old@freebsd.org; Fri, 12 Nov 2010 13:03:18 GMT (envelope-from luigi@repoman.freebsd.org) Message-Id: <201011121303.oACD3IGY049302@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to luigi@repoman.freebsd.org using -f From: Luigi Rizzo Date: Fri, 12 Nov 2010 13:02:26 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libc/sys getsockopt.2 src/sys/kern uipc_socket.c src/sys/sys socket.h socketvar.h X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Nov 2010 13:03:18 -0000 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