From: Michael Brown Date: Fri, 23 May 2014 12:34:33 +0000 (+0100) Subject: [ipv6] Do not set sin6_scope_id on source address X-Git-Tag: v1.20.1~1166 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c7146695de4c1f2f851e23edca8658868605a77;p=thirdparty%2Fipxe.git [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 --- diff --git a/src/net/ndp.c b/src/net/ndp.c index 6450aa9f0..e62f7d5cb 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 ) );