From: naddy Date: Sun, 28 May 2017 21:05:54 +0000 (+0000) Subject: only mark privacy addresses as such instead of all configured addresses X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=51216247514b080d53e926de8a9df8f4319e7c97;p=openbsd only mark privacy addresses as such instead of all configured addresses ok florian@ --- diff --git a/usr.sbin/slaacd/slaacd.c b/usr.sbin/slaacd/slaacd.c index 9202c14aaa1..5cf3797fe8f 100644 --- a/usr.sbin/slaacd/slaacd.c +++ b/usr.sbin/slaacd/slaacd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: slaacd.c,v 1.17 2017/05/28 20:40:13 florian Exp $ */ +/* $OpenBSD: slaacd.c,v 1.18 2017/05/28 21:05:54 naddy Exp $ */ /* * Copyright (c) 2017 Florian Obser @@ -666,7 +666,8 @@ configure_interface(struct imsg_configure_address *address) in6_addreq.ifra_lifetime.ia6t_preferred = t + address->pltime; in6_addreq.ifra_lifetime.ia6t_pltime = address->pltime; - in6_addreq.ifra_flags = IN6_IFF_PRIVACY; + if (address->privacy) + in6_addreq.ifra_flags |= IN6_IFF_PRIVACY; log_debug("%s: %s", __func__, if_name);