summaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-10-21 14:33:15 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-02-10 22:15:04 -0800
commitdd880838f0aaf46ed729f1812dd7655f627dd7e7 (patch)
treedfc028e3ec5bdc30f271d024885ed2e314beadb4 /server
parent231cac6d8550553bf1df924e7d4c6e44a8a6c662 (diff)
packet: improve graceful restart cap usability
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'server')
-rw-r--r--server/fsm_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/fsm_test.go b/server/fsm_test.go
index a6720a3d..459c4183 100644
--- a/server/fsm_test.go
+++ b/server/fsm_test.go
@@ -312,10 +312,10 @@ func open() *bgp.BGPMessage {
[]bgp.ParameterCapabilityInterface{bgp.NewCapRouteRefresh()})
p2 := bgp.NewOptionParameterCapability(
[]bgp.ParameterCapabilityInterface{bgp.NewCapMultiProtocol(bgp.RF_IPv4_UC)})
- g := bgp.CapGracefulRestartTuples{4, 2, 3}
+ g := &bgp.CapGracefulRestartTuple{4, 2, 3}
p3 := bgp.NewOptionParameterCapability(
- []bgp.ParameterCapabilityInterface{bgp.NewCapGracefulRestart(2, 100,
- []bgp.CapGracefulRestartTuples{g})})
+ []bgp.ParameterCapabilityInterface{bgp.NewCapGracefulRestart(true, 100,
+ []*bgp.CapGracefulRestartTuple{g})})
p4 := bgp.NewOptionParameterCapability(
[]bgp.ParameterCapabilityInterface{bgp.NewCapFourOctetASNumber(100000)})
return bgp.NewBGPOpenMessage(11033, 303, "100.4.10.3",