summaryrefslogtreecommitdiffstats
path: root/sys/netinet6
diff options
context:
space:
mode:
authoritojun <itojun@FreeBSD.org>2000-07-05 01:40:29 +0000
committeritojun <itojun@FreeBSD.org>2000-07-05 01:40:29 +0000
commitb2c4e4cdeb1e0b7021a9e17da57f6b016cefccb6 (patch)
tree02c15819086c795cb456d86ae4cd3b29f5556212 /sys/netinet6
parentafe9c0a378dd6b7ebfe084193596626c2b04a089 (diff)
downloadFreeBSD-src-b2c4e4cdeb1e0b7021a9e17da57f6b016cefccb6.zip
FreeBSD-src-b2c4e4cdeb1e0b7021a9e17da57f6b016cefccb6.tar.gz
split net.inet6.ip6.rtexpire (and others) from net.inet.ip.*.
From: Andrzej Bialecki <abial@webgiro.com>
Diffstat (limited to 'sys/netinet6')
-rw-r--r--sys/netinet6/in6.h8
-rw-r--r--sys/netinet6/in6_rmx.c8
2 files changed, 12 insertions, 4 deletions
diff --git a/sys/netinet6/in6.h b/sys/netinet6/in6.h
index edcbe62..960ab14 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 cb74a49..14f72d2 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, "");
OpenPOWER on IntegriCloud