Browse Source

[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 years ago
parent
commit
6c7146695d
1 changed files with 0 additions and 1 deletions
  1. 0
    1
      src/net/ndp.c

+ 0
- 1
src/net/ndp.c View File

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…
Cancel
Save