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
@ -528,8 +528,14 @@ struct in6_pktinfo {
|
|||||||
#define IPV6CTL_USE_DEPRECATED 21 /* use deprecated addr (RFC2462 5.5.4) */
|
#define IPV6CTL_USE_DEPRECATED 21 /* use deprecated addr (RFC2462 5.5.4) */
|
||||||
#define IPV6CTL_RR_PRUNE 22 /* walk timer for router renumbering */
|
#define IPV6CTL_RR_PRUNE 22 /* walk timer for router renumbering */
|
||||||
#define IPV6CTL_MAPPED_ADDR 23
|
#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. */
|
/* New entries should be added here from current IPV6CTL_MAXID value. */
|
||||||
#define IPV6CTL_MAXID 24
|
#define IPV6CTL_MAXID 28
|
||||||
#endif /* !_XOPEN_SOURCE */
|
#endif /* !_XOPEN_SOURCE */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -241,19 +241,21 @@ in6_matroute(void *v_arg, struct radix_node_head *head)
|
|||||||
return rn;
|
return rn;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SYSCTL_DECL(_net_inet6_ip6);
|
||||||
|
|
||||||
static int rtq_reallyold = 60*60;
|
static int rtq_reallyold = 60*60;
|
||||||
/* one hour is ``really old'' */
|
/* 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, "");
|
CTLFLAG_RW, &rtq_reallyold , 0, "");
|
||||||
|
|
||||||
static int rtq_minreallyold = 10;
|
static int rtq_minreallyold = 10;
|
||||||
/* never automatically crank down to less */
|
/* 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, "");
|
CTLFLAG_RW, &rtq_minreallyold , 0, "");
|
||||||
|
|
||||||
static int rtq_toomany = 128;
|
static int rtq_toomany = 128;
|
||||||
/* 128 cached routes is ``too many'' */
|
/* 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, "");
|
CTLFLAG_RW, &rtq_toomany , 0, "");
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user