diff options
author | 2018-05-17 11:52:04 +0000 | |
---|---|---|
committer | 2018-05-17 11:52:04 +0000 | |
commit | b27584d8edf02156b1eed8e9fa56bd731c6c3cc0 (patch) | |
tree | 45a3bfe44247c93ca82e350c947851faf1e1247b | |
parent | Introduce SLAACD_RTA_LABEL define to not use a string constant all (diff) | |
download | wireguard-openbsd-b27584d8edf02156b1eed8e9fa56bd731c6c3cc0.tar.xz wireguard-openbsd-b27584d8edf02156b1eed8e9fa56bd731c6c3cc0.zip |
Fully align this with route(8); no need to be different here and might
help us if we ever get rid of KAME hack.
-rw-r--r-- | sbin/slaacd/slaacd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/slaacd/slaacd.c b/sbin/slaacd/slaacd.c index 4e08c865ed4..8b5499f97af 100644 --- a/sbin/slaacd/slaacd.c +++ b/sbin/slaacd/slaacd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: slaacd.c,v 1.20 2018/05/17 11:51:27 florian Exp $ */ +/* $OpenBSD: slaacd.c,v 1.21 2018/05/17 11:52:04 florian Exp $ */ /* * Copyright (c) 2017 Florian Obser <florian@openbsd.org> @@ -831,8 +831,9 @@ configure_gateway(struct imsg_configure_dfr *dfr, uint8_t rtm_type) } memcpy(&gw, &dfr->addr, sizeof(gw)); + /* from route(8) getaddr()*/ *(u_int16_t *)& gw.sin6_addr.s6_addr[2] = htons(gw.sin6_scope_id); - /* gw.sin6_scope_id = 0; XXX route(8) does this*/ + gw.sin6_scope_id = 0; iov[iovcnt].iov_base = &gw; iov[iovcnt++].iov_len = sizeof(gw); rtm.rtm_msglen += sizeof(gw); |