From owner-cvs-all@FreeBSD.ORG Mon Feb 28 10:16:24 2005 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 72FF016A4CE; Mon, 28 Feb 2005 10:16:24 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D9A543D46; Mon, 28 Feb 2005 10:16:24 +0000 (GMT) (envelope-from glebius@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j1SAGOfx007054; Mon, 28 Feb 2005 10:16:24 GMT (envelope-from glebius@repoman.freebsd.org) Received: (from glebius@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j1SAGOJJ007051; Mon, 28 Feb 2005 10:16:24 GMT (envelope-from glebius) Message-Id: <200502281016.j1SAGOJJ007051@repoman.freebsd.org> From: Gleb Smirnoff Date: Mon, 28 Feb 2005 10:16:24 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_5 Subject: cvs commit: src/sys/netinet udp_usrreq.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 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: Mon, 28 Feb 2005 10:16:24 -0000 glebius 2005-02-28 10:16:24 UTC FreeBSD src repository Modified files: (Branch: RELENG_5) sys/netinet udp_usrreq.c Log: MFC 1.172: In in_pcbconnect_setup() jailed sockets are treated specially: if local address is not supplied, then jail IP is choosed and in_pcbbind() is called. Since udp_output() does not save local addr after call to in_pcbconnect_setup(), in_pcbbind() is called for each packet, and this is incorrect. So, we shall treat jailed sockets specially in udp_output(), we will save their local address. This fixes a long standing bug with broken sendto() system call in jails. PR: kern/26506 Reviewed by: rwatson Revision Changes Path 1.162.2.7 +5 -0 src/sys/netinet/udp_usrreq.c