summaryrefslogtreecommitdiff
path: root/sbin/slaacd/frontend.c
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2020-07-03 17:42:51 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2020-07-03 17:42:51 +0000
commitda030b7298caa2a59332f30cbfa978ba09e815aa (patch)
treea982e1aa198e4e413ea09240c6f825214f0bba79 /sbin/slaacd/frontend.c
parentffd133fafbda58a8bb9cdad485c07756a56fb529 (diff)
Rename IN6_IFF_PRIVACY to IN6_IFF_TEMPORARY.
This is the name the other BSDs use for this, there is no reason to be different, the IPv6 RFCs call these addresses temporary, and some software in ports wants to use this as well. Most recently pointed out for firefox by landry. OK claudio, sthen
Diffstat (limited to 'sbin/slaacd/frontend.c')
-rw-r--r--sbin/slaacd/frontend.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/slaacd/frontend.c b/sbin/slaacd/frontend.c
index 2d4c66ab581..2adbdb0f97a 100644
--- a/sbin/slaacd/frontend.c
+++ b/sbin/slaacd/frontend.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: frontend.c,v 1.32 2020/04/17 06:27:32 florian Exp $ */
+/* $OpenBSD: frontend.c,v 1.33 2020/07/03 17:42:50 florian Exp $ */
/*
* Copyright (c) 2017 Florian Obser <florian@openbsd.org>
@@ -587,11 +587,11 @@ update_autoconf_addresses(uint32_t if_index, char* if_name)
}
if (!(ifr6.ifr_ifru.ifru_flags6 & (IN6_IFF_AUTOCONF |
- IN6_IFF_PRIVACY)))
+ IN6_IFF_TEMPORARY)))
continue;
imsg_addrinfo.privacy = ifr6.ifr_ifru.ifru_flags6 &
- IN6_IFF_PRIVACY ? 1 : 0;
+ IN6_IFF_TEMPORARY ? 1 : 0;
memset(&ifr6, 0, sizeof(ifr6));
(void) strlcpy(ifr6.ifr_name, if_name, sizeof(ifr6.ifr_name));
@@ -659,7 +659,7 @@ flags_to_str(int flags)
(void)strlcat(buf, " deprecated", sizeof(buf));
if (flags & IN6_IFF_AUTOCONF)
(void)strlcat(buf, " autoconf", sizeof(buf));
- if (flags & IN6_IFF_PRIVACY)
+ if (flags & IN6_IFF_TEMPORARY)
(void)strlcat(buf, " autoconfprivacy", sizeof(buf));
return (buf);