]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[ipv6] Do not set sin6_scope_id on source address
authorMichael Brown <mcb30@ipxe.org>
Fri, 23 May 2014 12:34:33 +0000 (13:34 +0100)
committerMichael Brown <mcb30@ipxe.org>
Fri, 23 May 2014 13:11:17 +0000 (14:11 +0100)
The transmitting network device is specified via the destination
address, not the source address.  There is no reason to set
sin6_scope_id on the source address.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/net/ndp.c

index 6450aa9f044ba025029442d26fcc80c72ea47e40..e62f7d5cb2b5058a6f18351032a377e17774f14e 100644 (file)
@@ -120,7 +120,6 @@ static int ndp_tx_request ( struct net_device *netdev,
        sin6_src.sin6_family = AF_INET6;
        memcpy ( &sin6_src.sin6_addr, net_source,
                 sizeof ( sin6_src.sin6_addr ) );
-       sin6_src.sin6_scope_id = netdev->index;
 
        /* Construct multicast destination address */
        memset ( &sin6_dest, 0, sizeof ( sin6_dest ) );