summaryrefslogtreecommitdiffhomepage
path: root/packet/bgp_test.go
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 /packet/bgp_test.go
parent231cac6d8550553bf1df924e7d4c6e44a8a6c662 (diff)
packet: improve graceful restart cap usability
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'packet/bgp_test.go')
-rw-r--r--packet/bgp_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/packet/bgp_test.go b/packet/bgp_test.go
index d8e41e68..f243a785 100644
--- a/packet/bgp_test.go
+++ b/packet/bgp_test.go
@@ -26,10 +26,10 @@ func open() *BGPMessage {
[]ParameterCapabilityInterface{NewCapRouteRefresh()})
p2 := NewOptionParameterCapability(
[]ParameterCapabilityInterface{NewCapMultiProtocol(RF_IPv4_UC)})
- g := CapGracefulRestartTuples{4, 2, 3}
+ g := &CapGracefulRestartTuple{4, 2, 3}
p3 := NewOptionParameterCapability(
- []ParameterCapabilityInterface{NewCapGracefulRestart(2, 100,
- []CapGracefulRestartTuples{g})})
+ []ParameterCapabilityInterface{NewCapGracefulRestart(false, 100,
+ []*CapGracefulRestartTuple{g})})
p4 := NewOptionParameterCapability(
[]ParameterCapabilityInterface{NewCapFourOctetASNumber(100000)})
p5 := NewOptionParameterCapability(