diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-03-31 06:09:25 +0000 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-04-04 13:26:39 +0900 |
commit | fe05aac51a605fc5fcc45efc368cd90ed8579f3a (patch) | |
tree | 06716862e544dc5aaa3213c34137fde7327a50e2 /packet/bgp.go | |
parent | 1c8c1df2544b8b7382e17968e4eb17aa95157868 (diff) |
packet: fix creation of NewIPAddrPrefix
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'packet/bgp.go')
-rw-r--r-- | packet/bgp.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packet/bgp.go b/packet/bgp.go index 1b5cbbb5..9ae1aa32 100644 --- a/packet/bgp.go +++ b/packet/bgp.go @@ -536,7 +536,7 @@ type IPv6AddrPrefix struct { func NewIPAddrPrefix(length uint8, prefix string) *IPAddrPrefix { return &IPAddrPrefix{ - IPAddrPrefixDefault{length, net.ParseIP(prefix)}, + IPAddrPrefixDefault{length, net.ParseIP(prefix).To4()}, 4, } } |