Ver código fonte

[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 anos atrás
pai
commit
6c7146695d
1 arquivos alterados com 0 adições e 1 exclusões
  1. 0
    1
      src/net/ndp.c

+ 0
- 1
src/net/ndp.c Ver arquivo

@@ -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 ) );

Carregando…
Cancelar
Salvar