Better common bits function

This commit is contained in:
Jason A. Donenfeld
2018-05-14 15:49:20 +02:00
parent 7f1c9d1cc2
commit 09235d48d8
2 changed files with 44 additions and 56 deletions

View File

@ -106,7 +106,7 @@ func BenchmarkTrieIPv6Peers10Addresses10(b *testing.B) {
}
/* Test ported from kernel implementation:
* selftest/routingtable.h
* selftest/allowedips.h
*/
func TestTrieIPv4(t *testing.T) {
a := &Peer{}
@ -192,7 +192,7 @@ func TestTrieIPv4(t *testing.T) {
}
/* Test ported from kernel implementation:
* selftest/routingtable.h
* selftest/allowedips.h
*/
func TestTrieIPv6(t *testing.T) {
a := &Peer{}