From owner-cvs-all@FreeBSD.ORG Sun Aug 31 15:56:45 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 68B361065671; Sun, 31 Aug 2008 15:56:45 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 54C448FC0C; Sun, 31 Aug 2008 15:56:45 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.2/8.14.2) with ESMTP id m7VFujdE061245; Sun, 31 Aug 2008 15:56:45 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.2/8.14.1/Submit) id m7VFujbG061244; Sun, 31 Aug 2008 15:56:45 GMT (envelope-from rwatson@repoman.freebsd.org) Message-Id: <200808311556.m7VFujbG061244@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to rwatson@repoman.freebsd.org using -f From: Robert Watson Date: Sun, 31 Aug 2008 15:55:59 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_7 Cc: Subject: cvs commit: src/sys/net raw_cb.c raw_cb.h raw_usrreq.c rtsock.c src/sys/netipsec keysock.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Aug 2008 15:56:45 -0000 rwatson 2008-08-31 15:55:59 UTC FreeBSD src repository Modified files: (Branch: RELENG_7) sys/net raw_cb.c raw_cb.h raw_usrreq.c rtsock.c sys/netipsec keysock.c Log: SVN rev 182546 on 2008-08-31 15:55:59Z by rwatson Merge r180385 from head to stable/7: Remove unused support for local and foreign addresses in generic raw socket support. These utility routines are used only for routing and pfkey sockets, neither of which have a notion of address, so were required to mock up fake socket addresses to avoid connection requirements for applications that did not specify their own fake addresses (most of them). Quite a bit of the removed code is #ifdef notdef, since raw sockets don't support bind() or connect() in practice. Removing this simplifies the raw socket implementation, and removes two (commented out) uses of dtom(9). Fake addresses passed to sendto(2) by applications are ignored for compatibility reasons, but this is now done in a more consistent way (and with a comment). Possibly, EINVAL could be returned here in the future if it is determined that no applications depend on the semantic inconsistency of specifying a destination address for a protocol without address support, but this will require some amount of careful surveying. NB: This does not affect netinet, netinet6, or other wire protocol raw sockets, which provide their own independent infrastructure with control block address support specific to the protocol. Reviewed by: bz Revision Changes Path 1.34.2.2 +0 -37 src/sys/net/raw_cb.c 1.19.10.3 +1 -5 src/sys/net/raw_cb.h 1.44.2.2 +30 -71 src/sys/net/raw_usrreq.c 1.143.2.3 +1 -3 src/sys/net/rtsock.c 1.18.2.3 +0 -3 src/sys/netipsec/keysock.c