summaryrefslogtreecommitdiffstats
path: root/sys/net/flowtable.h
diff options
context:
space:
mode:
authorqingli <qingli@FreeBSD.org>2009-10-01 20:32:29 +0000
committerqingli <qingli@FreeBSD.org>2009-10-01 20:32:29 +0000
commit42eac0e4cd282f481832c740708479326b81f790 (patch)
tree4db02a39f3df6fba7d79e3f3032208d6ad0e2bb9 /sys/net/flowtable.h
parent81d3ae4acc9a2163ee2f7986b1e4b298bbc2d213 (diff)
downloadFreeBSD-src-42eac0e4cd282f481832c740708479326b81f790.zip
FreeBSD-src-42eac0e4cd282f481832c740708479326b81f790.tar.gz
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
Diffstat (limited to 'sys/net/flowtable.h')
-rw-r--r--sys/net/flowtable.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/net/flowtable.h b/sys/net/flowtable.h
index afc8fb7..7d7abdf 100644
--- a/sys/net/flowtable.h
+++ b/sys/net/flowtable.h
@@ -51,5 +51,7 @@ struct flowtable *flowtable_alloc(int nentry, int flags);
int flowtable_lookup(struct flowtable *ft, struct mbuf *m,
struct route *ro, uint32_t fibnum);
+void flowtable_route_flush(struct flowtable *ft, struct rtentry *rt);
+
#endif /* _KERNEL */
#endif
OpenPOWER on IntegriCloud