From owner-cvs-all@FreeBSD.ORG Wed Jul 9 15:49:26 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 46A421065670; Wed, 9 Jul 2008 15:49:26 +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 349C08FC20; Wed, 9 Jul 2008 15:49:26 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m69FnQx5086584; Wed, 9 Jul 2008 15:49:26 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.2/8.14.1/Submit) id m69FnQ9o086583; Wed, 9 Jul 2008 15:49:26 GMT (envelope-from rwatson@repoman.freebsd.org) Message-Id: <200807091549.m69FnQ9o086583@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to rwatson@repoman.freebsd.org using -f From: Robert Watson Date: Wed, 9 Jul 2008 15:48:16 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD 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: Wed, 09 Jul 2008 15:49:26 -0000 rwatson 2008-07-09 15:48:16 UTC FreeBSD src repository Modified files: sys/net raw_cb.c raw_cb.h raw_usrreq.c rtsock.c sys/netipsec keysock.c Log: SVN rev 180385 on 2008-07-09 15:48:16Z by rwatson 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. MFC after: 3 weeks Reviewed by: bz Revision Changes Path 1.37 +0 -37 src/sys/net/raw_cb.c 1.22 +1 -5 src/sys/net/raw_cb.h 1.46 +30 -71 src/sys/net/raw_usrreq.c 1.148 +1 -3 src/sys/net/rtsock.c 1.21 +0 -3 src/sys/netipsec/keysock.c