diff --git a/sys/netinet6/in6.h b/sys/netinet6/in6.h index edcbe6265200..960ab14266c3 100644 --- a/sys/netinet6/in6.h +++ b/sys/netinet6/in6.h @@ -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 */ /* diff --git a/sys/netinet6/in6_rmx.c b/sys/netinet6/in6_rmx.c index cb74a49fa0c9..14f72d2ff39f 100644 --- a/sys/netinet6/in6_rmx.c +++ b/sys/netinet6/in6_rmx.c @@ -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, "");