mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-06 13:09:50 +00:00
split net.inet6.ip6.rtexpire (and others) from net.inet.ip.*.
From: Andrzej Bialecki <abial@webgiro.com>
This commit is contained in:
parent
261216553f
commit
7ee982bcac
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=62604
@ -528,8 +528,14 @@ struct in6_pktinfo {
|
||||
#define IPV6CTL_USE_DEPRECATED 21 /* use deprecated addr (RFC2462 5.5.4) */
|
||||
#define IPV6CTL_RR_PRUNE 22 /* walk timer for router renumbering */
|
||||
#define IPV6CTL_MAPPED_ADDR 23
|
||||
#ifdef notdef /*__NetBSD__ - reserved, don't delete*/
|
||||
#define IPV6CTL_BINDV6ONLY 24
|
||||
#endif
|
||||
#define IPV6CTL_RTEXPIRE 25 /* cloned route expiration time */
|
||||
#define IPV6CTL_RTMINEXPIRE 26 /* min value for expiration time */
|
||||
#define IPV6CTL_RTMAXCACHE 27 /* trigger level for dynamic expire */
|
||||
/* New entries should be added here from current IPV6CTL_MAXID value. */
|
||||
#define IPV6CTL_MAXID 24
|
||||
#define IPV6CTL_MAXID 28
|
||||
#endif /* !_XOPEN_SOURCE */
|
||||
|
||||
/*
|
||||
|
@ -241,19 +241,21 @@ in6_matroute(void *v_arg, struct radix_node_head *head)
|
||||
return rn;
|
||||
}
|
||||
|
||||
SYSCTL_DECL(_net_inet6_ip6);
|
||||
|
||||
static int rtq_reallyold = 60*60;
|
||||
/* one hour is ``really old'' */
|
||||
SYSCTL_INT(_net_inet_ip, IPCTL_RTEXPIRE, rtexpire,
|
||||
SYSCTL_INT(_net_inet6_ip6, IPV6CTL_RTEXPIRE, rtexpire,
|
||||
CTLFLAG_RW, &rtq_reallyold , 0, "");
|
||||
|
||||
static int rtq_minreallyold = 10;
|
||||
/* never automatically crank down to less */
|
||||
SYSCTL_INT(_net_inet_ip, IPCTL_RTMINEXPIRE, rtminexpire,
|
||||
SYSCTL_INT(_net_inet6_ip6, IPV6CTL_RTMINEXPIRE, rtminexpire,
|
||||
CTLFLAG_RW, &rtq_minreallyold , 0, "");
|
||||
|
||||
static int rtq_toomany = 128;
|
||||
/* 128 cached routes is ``too many'' */
|
||||
SYSCTL_INT(_net_inet_ip, IPCTL_RTMAXCACHE, rtmaxcache,
|
||||
SYSCTL_INT(_net_inet6_ip6, IPV6CTL_RTMAXCACHE, rtmaxcache,
|
||||
CTLFLAG_RW, &rtq_toomany , 0, "");
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user