summaryrefslogtreecommitdiffstats
path: root/share/man/man4/inet.4
diff options
context:
space:
mode:
authormelifaro <melifaro@FreeBSD.org>2014-11-11 02:52:40 +0000
committermelifaro <melifaro@FreeBSD.org>2014-11-11 02:52:40 +0000
commit12580bcaa8a78094978261a456034eb3684e9f58 (patch)
tree03ac2d127be5e5ef838975d007a62d8250819cc3 /share/man/man4/inet.4
parent42e544acc78653110a142e99a4c7ce581b8e3689 (diff)
downloadFreeBSD-src-12580bcaa8a78094978261a456034eb3684e9f58.zip
FreeBSD-src-12580bcaa8a78094978261a456034eb3684e9f58.tar.gz
Kill custom in_matroute() radix mathing function removing one rte mutex lock.
Initially in_matrote() in_clsroute() in their current state was introduced by r4105 20 years ago. Instead of deleting inactive routes immediately, we kept them in route table, setting RTPRF_OURS flag and some expire time. After that, either GC came or RTPRF_OURS got removed on first-packet. It was a good solution in that days (and probably another decade after that) to keep TCP metrics. However, after moving metrics to TCP hostcache in r122922, most of in_rmx functionality became unused. It might had been used for flushing icmp-originated routes before rte mutexes/refcounting, but I'm not sure about that. So it looks like this is nearly impossible to make GC do its work nowadays: in_rtkill() ignores non-RTPRF_OURS routes. route can only become RTPRF_OURS after dropping last reference via rtfree() which calls in_clsroute(), which, it turn, ignores UP and non-RTF_DYNAMIC routes. Dynamic routes can still be installed via received redirect, but they have default lifetime (no specific rt_expire) and no one has another trie walker to call RTFREE() on them. So, the changelist: * remove custom rnh_match / rnh_close matching function. * remove all GC functions * partially revert r256695 (proto3 is no more used inside kernel, it is not possible to use rt_expire from user point of view, proto3 support is not complete) * Finish r241884 (similar to this commit) and remove remaining IPv6 parts MFC after: 1 month
Diffstat (limited to 'share/man/man4/inet.4')
-rw-r--r--share/man/man4/inet.415
1 files changed, 0 insertions, 15 deletions
diff --git a/share/man/man4/inet.4 b/share/man/man4/inet.4
index 0b7a108..b0b5a9e 100644
--- a/share/man/man4/inet.4
+++ b/share/man/man4/inet.4
@@ -211,21 +211,6 @@ Boolean: enable/disable accepting of source-routed IP packets (default false).
.It Dv IPCTL_SOURCEROUTE
.Pq ip.sourceroute
Boolean: enable/disable forwarding of source-routed IP packets (default false).
-.It Dv IPCTL_RTEXPIRE
-.Pq ip.rtexpire
-Integer: lifetime in seconds of protocol-cloned
-.Tn IP
-routes after the last reference drops (default one hour).
-This value varies dynamically as described above.
-.It Dv IPCTL_RTMINEXPIRE
-.Pq ip.rtminexpire
-Integer: minimum value of ip.rtexpire (default ten seconds).
-This value has no effect on user modifications, but restricts the dynamic
-adaptation described above.
-.It Dv IPCTL_RTMAXCACHE
-.Pq ip.rtmaxcache
-Integer: trigger level of cached, unreferenced, protocol-cloned routes
-which initiates dynamic adaptation (default 128).
.It Va ip.process_options
Integer: control IP options processing.
By setting this variable to 0, all IP options in the incoming packets
OpenPOWER on IntegriCloud