From owner-cvs-src-old@FreeBSD.ORG Thu Oct 1 20:32:49 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2585A1065693 for ; Thu, 1 Oct 2009 20:32:49 +0000 (UTC) (envelope-from qingli@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 0CDCE8FC1D for ; Thu, 1 Oct 2009 20:32:49 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n91KWmwA063027 for ; Thu, 1 Oct 2009 20:32:48 GMT (envelope-from qingli@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n91KWmq8063026 for cvs-src-old@freebsd.org; Thu, 1 Oct 2009 20:32:48 GMT (envelope-from qingli@repoman.freebsd.org) Message-Id: <200910012032.n91KWmq8063026@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to qingli@repoman.freebsd.org using -f From: Qing Li Date: Thu, 1 Oct 2009 20:32:29 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/net flowtable.c flowtable.h route.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Oct 2009 20:32:49 -0000 qingli 2009-10-01 20:32:29 UTC FreeBSD src repository Modified files: sys/net flowtable.c flowtable.h route.c Log: SVN rev 197687 on 2009-10-01 20:32:29Z by qingli The flow-table associates TCP/UDP flows and IP destinations with specific routes. When the routing table changes, for example, when a new route with a more specific prefix is inserted into the routing table, the flow-table is not updated to reflect that change. As such existing connections cannot take advantage of the new path. In some cases the path is broken. This patch will update the affected flow-table entries when a more specific route is added. The route entry is properly marked when a route is deleted from the table. In this case, when the flow-table performs a search, the stale entry is updated automatically. Therefore this patch is not necessary for route deletion. Submitted by: simon, phk Reviewed by: bz, kmacy MFC after: 3 days Revision Changes Path 1.21 +35 -5 src/sys/net/flowtable.c 1.12 +2 -0 src/sys/net/flowtable.h 1.168 +61 -0 src/sys/net/route.c