diff options
author | andre <andre@FreeBSD.org> | 2003-11-14 21:48:57 +0000 |
---|---|---|
committer | andre <andre@FreeBSD.org> | 2003-11-14 21:48:57 +0000 |
commit | 30ed90673d6eaf49ce19a209ecba7e6f2c45ce3e (patch) | |
tree | 27563081cd19963af766c97746f7b1b600e28e70 /sys/netinet/in_rmx.c | |
parent | e83306cda93c90d2842e30a1bc92c5b1089d702b (diff) | |
download | FreeBSD-src-30ed90673d6eaf49ce19a209ecba7e6f2c45ce3e.zip FreeBSD-src-30ed90673d6eaf49ce19a209ecba7e6f2c45ce3e.tar.gz |
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)
Diffstat (limited to 'sys/netinet/in_rmx.c')
-rw-r--r-- | sys/netinet/in_rmx.c | 7 |
1 files changed, 0 insertions, 7 deletions
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; } |