mirror of
https://github.com/ipxe/ipxe
synced 2026-02-14 02:31:26 +03:00
[ipv6] Fix mask calculation when prefix length is not a multiple of 8
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -251,7 +251,7 @@ int ipv6_add_miniroute ( struct net_device *netdev, struct in6_addr *address,
|
||||
*prefix_mask = 0xff;
|
||||
}
|
||||
if ( remaining )
|
||||
*prefix_mask <<= ( 8 - remaining );
|
||||
*prefix_mask = ( 0xff << ( 8 - remaining ) );
|
||||
}
|
||||
|
||||
/* Add to start of routing table */
|
||||
|
||||
Reference in New Issue
Block a user