summaryrefslogtreecommitdiffstats
path: root/src/net/ndp.c
diff options
context:
space:
mode:
authorMichael Brown2014-05-23 14:34:33 +0200
committerMichael Brown2014-05-23 15:11:17 +0200
commit6c7146695de4c1f2f851e23edca8658868605a77 (patch)
tree7c9944a57c98bca4e3196b48b421c8bc23a57214 /src/net/ndp.c
parent[dhcpv6] Do not set sin6_scope_id on the unspecified client socket address (diff)
downloadipxe-6c7146695de4c1f2f851e23edca8658868605a77.tar.gz
ipxe-6c7146695de4c1f2f851e23edca8658868605a77.tar.xz
ipxe-6c7146695de4c1f2f851e23edca8658868605a77.zip
[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>
Diffstat (limited to 'src/net/ndp.c')
-rw-r--r--src/net/ndp.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/net/ndp.c b/src/net/ndp.c
index 6450aa9f..e62f7d5c 100644
--- a/src/net/ndp.c
+++ b/src/net/ndp.c
@@ -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 ) );