set autoconfprivacy flag; prodding naddy
authorflorian <florian@openbsd.org>
Sun, 28 May 2017 19:57:38 +0000 (19:57 +0000)
committerflorian <florian@openbsd.org>
Sun, 28 May 2017 19:57:38 +0000 (19:57 +0000)
usr.sbin/slaacd/engine.c
usr.sbin/slaacd/engine.h
usr.sbin/slaacd/slaacd.c

index 6e641d2..4dca924 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: engine.c,v 1.22 2017/05/28 19:13:13 naddy Exp $       */
+/*     $OpenBSD: engine.c,v 1.23 2017/05/28 19:57:38 florian Exp $     */
 
 /*
  * Copyright (c) 2017 Florian Obser <florian@openbsd.org>
@@ -1638,6 +1638,7 @@ configure_address(struct slaacd_iface *iface, struct address_proposal
        memcpy(&address.mask, &addr_proposal->mask, sizeof(address.mask));
        address.vltime = addr_proposal->vltime;
        address.pltime = addr_proposal->pltime;
+       address.privacy = addr_proposal->privacy;
 
        engine_imsg_compose_main(IMSG_CONFIGURE_ADDRESS, 0, &address,
            sizeof(address));
index aa579c3..0956f7d 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: engine.h,v 1.6 2017/05/28 09:35:56 florian Exp $      */
+/*     $OpenBSD: engine.h,v 1.7 2017/05/28 19:57:38 florian Exp $      */
 
 /*
  * Copyright (c) 2004, 2005 Esben Norby <norby@openbsd.org>
@@ -34,6 +34,7 @@ struct imsg_configure_address {
        struct in6_addr          mask;
        uint32_t                 vltime;
        uint32_t                 pltime;
+       int                      privacy;
 };
 
 struct imsg_configure_dfr {
index cba2930..23348b4 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: slaacd.c,v 1.15 2017/05/28 09:35:56 florian Exp $     */
+/*     $OpenBSD: slaacd.c,v 1.16 2017/05/28 19:57:38 florian Exp $     */
 
 /*
  * Copyright (c) 2017 Florian Obser <florian@openbsd.org>
@@ -666,6 +666,7 @@ 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;
 
        log_debug("%s: %s", __func__, if_name);