瀏覽代碼

[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>
tags/v1.20.1
Michael Brown 10 年之前
父節點
當前提交
6c7146695d
共有 1 個檔案被更改,包括 0 行新增1 行删除
  1. 0
    1
      src/net/ndp.c

+ 0
- 1
src/net/ndp.c 查看文件

@@ -120,7 +120,6 @@ static int ndp_tx_request ( struct net_device *netdev,
120 120
 	sin6_src.sin6_family = AF_INET6;
121 121
 	memcpy ( &sin6_src.sin6_addr, net_source,
122 122
 		 sizeof ( sin6_src.sin6_addr ) );
123
-	sin6_src.sin6_scope_id = netdev->index;
124 123
 
125 124
 	/* Construct multicast destination address */
126 125
 	memset ( &sin6_dest, 0, sizeof ( sin6_dest ) );

Loading…
取消
儲存