summaryrefslogtreecommitdiffhomepage
path: root/packet/bgp/helper.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2017-06-23 15:44:16 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2017-06-23 15:44:16 +0900
commit1747a3311c7a29a3d58a223e70e37e854460b852 (patch)
treeca1fb1a668b7892a389fd53d1d450bd1f9f39937 /packet/bgp/helper.go
parentdee06c638b0f3a1a4196d85a165aabb0383f3aab (diff)
packet: fix addpath capability parser/serializer
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'packet/bgp/helper.go')
-rw-r--r--packet/bgp/helper.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/packet/bgp/helper.go b/packet/bgp/helper.go
index 1a06db1e..d97095f9 100644
--- a/packet/bgp/helper.go
+++ b/packet/bgp/helper.go
@@ -31,7 +31,7 @@ func NewTestBGPOpenMessage() *BGPMessage {
p4 := NewOptionParameterCapability(
[]ParameterCapabilityInterface{NewCapFourOctetASNumber(100000)})
p5 := NewOptionParameterCapability(
- []ParameterCapabilityInterface{NewCapAddPath(RF_IPv4_UC, BGP_ADD_PATH_BOTH)})
+ []ParameterCapabilityInterface{NewCapAddPath([]*CapAddPathTuple{NewCapAddPathTuple(RF_IPv4_UC, BGP_ADD_PATH_BOTH)})})
return NewBGPOpenMessage(11033, 303, "100.4.10.3",
[]OptionParameterInterface{p1, p2, p3, p4, p5})
}