瀏覽代碼

[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 11 年之前
父節點
當前提交
6c7146695d
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0
    1
      src/net/ndp.c

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

120
 	sin6_src.sin6_family = AF_INET6;
120
 	sin6_src.sin6_family = AF_INET6;
121
 	memcpy ( &sin6_src.sin6_addr, net_source,
121
 	memcpy ( &sin6_src.sin6_addr, net_source,
122
 		 sizeof ( sin6_src.sin6_addr ) );
122
 		 sizeof ( sin6_src.sin6_addr ) );
123
-	sin6_src.sin6_scope_id = netdev->index;
124
 
123
 
125
 	/* Construct multicast destination address */
124
 	/* Construct multicast destination address */
126
 	memset ( &sin6_dest, 0, sizeof ( sin6_dest ) );
125
 	memset ( &sin6_dest, 0, sizeof ( sin6_dest ) );

Loading…
取消
儲存