summaryrefslogtreecommitdiffhomepage
path: root/table/destination_test.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-11-18 21:07:45 -0800
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-11-18 21:07:45 -0800
commitf6897fd47f74abf4c33f003063d6cd201c6e4d05 (patch)
tree1c963c1cf74f6ee9def46d36a4035cdccd250241 /table/destination_test.go
parente8bff5b3662713180518de6eb12b3c11bd0d7775 (diff)
rpki: fix IPv4-mapped addresss handling
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'table/destination_test.go')
-rw-r--r--table/destination_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/table/destination_test.go b/table/destination_test.go
index e8edf562..8624bc8d 100644
--- a/table/destination_test.go
+++ b/table/destination_test.go
@@ -194,6 +194,6 @@ func updateMsgD3() *bgp.BGPMessage {
func TestRadixkey(t *testing.T) {
assert.Equal(t, "000010100000001100100000", CidrToRadixkey("10.3.32.0/24"))
- assert.Equal(t, "000010100000001100100000", IpToRadixkey(net.ParseIP("10.3.32.0"), 24))
+ assert.Equal(t, "000010100000001100100000", IpToRadixkey(net.ParseIP("10.3.32.0").To4(), 24))
assert.Equal(t, "000010100000001100100000", IpToRadixkey(net.ParseIP("10.3.32.0").To4(), 24))
}