david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[ipv6] Do not set sin6_scope_id on source address

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>
This commit is contained in:
Michael Brown 2014-05-23 13:34:33 +01:00
parent 6206f8f0f9
commit 6c7146695d
1 changed files with 0 additions and 1 deletions

View 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 ) );