Skip to content
Commit ba026941 authored by Jukka Rissanen's avatar Jukka Rissanen
Browse files

net: ipv6: Fix IPv6 prefix comparision



If the prefix length % 8 is not 0, then the remaining
bit length was calculated incorrectly and the prefixes
were claimed to match even though they might not be the
same.

Adding a test cases for testing this properly.

Coverity-CID: 157591

Change-Id: I9cb5a73d5cc211ec183176400fa5e2dfd209e2da
Signed-off-by: default avatarJukka Rissanen <jukka.rissanen@linux.intel.com>
parent d3301aae
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment