From 30ed90673d6eaf49ce19a209ecba7e6f2c45ce3e Mon Sep 17 00:00:00 2001 From: andre Date: Fri, 14 Nov 2003 21:48:57 +0000 Subject: Remove the global one-level rtcache variable and associated complex locking and rework ip_rtaddr() to do its own rtlookup. Adopt all its callers to this and make ip_output() callable with NULL rt pointer. Reviewed by: sam (mentor) --- sys/netinet/in_rmx.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'sys/netinet/in_rmx.c') diff --git a/sys/netinet/in_rmx.c b/sys/netinet/in_rmx.c index b762c29..b33094e 100644 --- a/sys/netinet/in_rmx.c +++ b/sys/netinet/in_rmx.c @@ -134,13 +134,6 @@ in_addroute(void *v_arg, void *n_arg, struct radix_node_head *head, } } - /* - * If the new route created successfully, and we are forwarding, - * flush any cached routes to avoid using a stale value. - */ - if (ret != NULL && ipforwarding) - ip_forward_cacheinval(); - return ret; } -- cgit v1.1