From owner-cvs-src@FreeBSD.ORG Fri Aug 27 15:39:34 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A815516A4CE; Fri, 27 Aug 2004 15:39:34 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 882A043D48; Fri, 27 Aug 2004 15:39:34 +0000 (GMT) (envelope-from andre@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i7RFdYHL062930; Fri, 27 Aug 2004 15:39:34 GMT (envelope-from andre@repoman.freebsd.org) Received: (from andre@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i7RFdYNO062929; Fri, 27 Aug 2004 15:39:34 GMT (envelope-from andre) Message-Id: <200408271539.i7RFdYNO062929@repoman.freebsd.org> From: Andre Oppermann Date: Fri, 27 Aug 2004 15:39:34 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/netinet ip_output.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Aug 2004 15:39:34 -0000 andre 2004-08-27 15:39:34 UTC FreeBSD src repository Modified files: sys/netinet ip_output.c Log: In the case the destination of a packet was changed by the packet filter to point to a local IP address; and the packet was sourced from this host we fill in the m_pkthdr.rcvif with a pointer to the loopback interface. Before the function ifunit("lo0") was used to obtain the ifp. However this is sub-optimal from a performance point of view and might be dangerous if the loopback interface has been renamed. Use the global variable 'loif' instead which always points to the loopback interface. Submitted by: brooks Revision Changes Path 1.229 +2 -2 src/sys/netinet/ip_output.c