From owner-cvs-all Wed Dec 19 8: 3:30 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id A627137B405; Wed, 19 Dec 2001 08:03:27 -0800 (PST) Received: (from brian@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id fBJG3RR10396; Wed, 19 Dec 2001 08:03:27 -0800 (PST) (envelope-from brian) Message-Id: <200112191603.fBJG3RR10396@freefall.freebsd.org> From: Brian Somers Date: Wed, 19 Dec 2001 08:03:27 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/net rtsock.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG brian 2001/12/19 08:03:27 PST Modified files: sys/net rtsock.c Log: Only call rt_getifa() if we've either been passed a gateway or if we've been given an RTA_IFP or changed RTA_IFA sockaddr. This fixes the following bug: >/dev/tun100 >/dev/tun101 ifconfig tun100 1.2.3.4 5.6.7.8 ifconfig tun101 1.2.3.4 6.7.8.9 route change 6.7.8.9 -ifa 1.2.3.4 -iface -mtu 500 which erroneously changed tun101's host route to have an ifp of tun100 (rt_getifa() sets the ifp after calling ifa_ifwithnet(1.2.3.4)) This incarnation submitted by: ru Revision Changes Path 1.62 +8 -2 src/sys/net/rtsock.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message