diff options
author | Florian Obser <florian@cvs.openbsd.org> | 2017-05-27 10:47:24 +0000 |
---|---|---|
committer | Florian Obser <florian@cvs.openbsd.org> | 2017-05-27 10:47:24 +0000 |
commit | ac55f34bbfa9ff6d6f4268c036425ba9a243aec4 (patch) | |
tree | aca359e16343cc92dec5641aab64f65cd5cb756d /usr.sbin/slaacd/frontend.c | |
parent | 6e762b335d8390649478edd9b67dc6a887f0c5b2 (diff) |
configure address on interface
Diffstat (limited to 'usr.sbin/slaacd/frontend.c')
-rw-r--r-- | usr.sbin/slaacd/frontend.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.sbin/slaacd/frontend.c b/usr.sbin/slaacd/frontend.c index 41332d5d8ee..fa0ed08e72a 100644 --- a/usr.sbin/slaacd/frontend.c +++ b/usr.sbin/slaacd/frontend.c @@ -1,4 +1,4 @@ -/* $OpenBSD: frontend.c,v 1.5 2017/05/27 10:45:14 florian Exp $ */ +/* $OpenBSD: frontend.c,v 1.6 2017/05/27 10:47:23 florian Exp $ */ /* * Copyright (c) 2017 Florian Obser <florian@openbsd.org> @@ -568,6 +568,12 @@ route_receive(int fd, short events, void *arg) } break; case RTM_NEWADDR: + /* + * XXX we get a RTM_NEWADDR if the l2 addr changes, also + * when we configure an ip ourselfs or someone + * configures an ip, don't send solicitations in that + * case + */ ifm = (struct if_msghdr *)rtm; if_name = if_indextoname(ifm->ifm_index, ifnamebuf); log_debug("RTM_NEWADDR: %s[%u]", if_name, ifm->ifm_index); |