summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorflorian <florian@openbsd.org>2020-03-28 16:15:45 +0000
committerflorian <florian@openbsd.org>2020-03-28 16:15:45 +0000
commit4fec1b251c8baa22ae58faaf4d543e8324c13eaf (patch)
tree0cc5e656f5f41df89c45b18d132c1bff80bac840 /sys
parentExport the number of arguments exposed by a probe to userland. (diff)
downloadwireguard-openbsd-4fec1b251c8baa22ae58faaf4d543e8324c13eaf.tar.xz
wireguard-openbsd-4fec1b251c8baa22ae58faaf4d543e8324c13eaf.zip
Move ND6_PRIV_* constants from nd6.h to slaacd the only place where
they are used. Nobody in the wider eco system uses these. While here reduce temporary address valid lifetime to 2 days as per draft-ietf-6man-rfc4941bis. This should considerably reduce the amount of addresses configured on an interface - a common complaint. Original diff from Fernando Gont (fernando AT gont.com.ar), thanks! Ports tree scanning by sthen@
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet6/nd6.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/netinet6/nd6.h b/sys/netinet6/nd6.h
index 4449a7ed73c..82e674c5ecf 100644
--- a/sys/netinet6/nd6.h
+++ b/sys/netinet6/nd6.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: nd6.h,v 1.75 2019/06/21 17:11:43 mpi Exp $ */
+/* $OpenBSD: nd6.h,v 1.76 2020/03/28 16:15:45 florian Exp $ */
/* $KAME: nd6.h,v 1.95 2002/06/08 11:31:06 itojun Exp $ */
/*
@@ -89,11 +89,6 @@ struct in6_ndifreq {
#define ND6_INFINITE_LIFETIME 0xffffffff
-/* constants for RFC 4941 autoconf privacy extension */
-#define ND6_PRIV_MAX_DESYNC_FACTOR 512 /* largest pow2 < 10 minutes */
-#define ND6_PRIV_VALID_LIFETIME 604800 /* 1 week */
-#define ND6_PRIV_PREFERRED_LIFETIME 86400 /* 1 day */
-
#ifdef _KERNEL
#include <sys/queue.h>