Просмотр исходного кода

[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 лет назад
Родитель
Сommit
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 ) );

Загрузка…
Отмена
Сохранить