]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Set scope for DHCPv6
authorRoy Marples <roy@marples.name>
Thu, 16 May 2013 19:02:14 +0000 (19:02 +0000)
committerRoy Marples <roy@marples.name>
Thu, 16 May 2013 19:02:14 +0000 (19:02 +0000)
dhcp6.c

diff --git a/dhcp6.c b/dhcp6.c
index 45224d97aee55a5c22cf316c367abf4561d7d8ae..aec603936ed1f2412b47f8dea00bd36326f8ecf1 100644 (file)
--- a/dhcp6.c
+++ b/dhcp6.c
@@ -699,6 +699,7 @@ dhcp6_sendmessage(struct interface *ifp, void (*callback)(void *))
        dhcp6_updateelapsed(ifp, state->send, state->send_len);
 
        to = alldhcp;
+       to.sin6_scope_id = ifp->index;
        sndhdr.msg_name = (caddr_t)&to;
        sndhdr.msg_iov[0].iov_base = (caddr_t)state->send;
        sndhdr.msg_iov[0].iov_len = state->send_len;