diff options
author | Wataru Ishida <ishida.wataru@lab.ntt.co.jp> | 2016-09-27 14:54:20 +0000 |
---|---|---|
committer | Wataru Ishida <ishida.wataru@lab.ntt.co.jp> | 2016-10-04 04:03:46 +0000 |
commit | cda8d873fa0cc508ac8756a7da95f79253116aae (patch) | |
tree | a9beed8f597bbcb2bc9b7e7622ad594446c06906 /table | |
parent | bccb1c0c23ab57d9b94db3d07872ebb6c340f473 (diff) |
packet/bgp: fix handling of IPv4 mapped IPv6 prefixes
closes #1117
Signed-off-by: Wataru Ishida <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'table')
-rw-r--r-- | table/destination_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/table/destination_test.go b/table/destination_test.go index 2778b8a4..7cace89e 100644 --- a/table/destination_test.go +++ b/table/destination_test.go @@ -399,6 +399,7 @@ 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").To4(), 24)) assert.Equal(t, "000010100000001100100000", IpToRadixkey(net.ParseIP("10.3.32.0").To4(), 24)) + assert.Equal(t, CidrToRadixkey("::ffff:0.0.0.0/96")+"000010100000001100100000", CidrToRadixkey("::ffff:10.3.32.0/120")) } func TestMultipath(t *testing.T) { |