summaryrefslogtreecommitdiffhomepage
path: root/table/destination.go
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-08-30 21:36:41 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-08-31 22:48:50 +0900
commit375e1d65b2c90c3d287b83633ec13efde9aa62a2 (patch)
tree80980c59f300924005b674d5e0beacae85c7acab /table/destination.go
parent955409c37ce17daf346e30aa1d1e2d40767ebb43 (diff)
server: support route reflector behavior
scenario_test is also added Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'table/destination.go')
-rw-r--r--table/destination.go12
1 files changed, 7 insertions, 5 deletions
diff --git a/table/destination.go b/table/destination.go
index 290830a4..5889fb5b 100644
--- a/table/destination.go
+++ b/table/destination.go
@@ -52,11 +52,13 @@ func CidrToRadixkey(cidr string) string {
}
type PeerInfo struct {
- AS uint32
- ID net.IP
- LocalAS uint32
- LocalID net.IP
- Address net.IP
+ AS uint32
+ ID net.IP
+ LocalAS uint32
+ LocalID net.IP
+ Address net.IP
+ RouteReflectorClient bool
+ RouteReflectorClusterID net.IP
}
func (lhs *PeerInfo) Equal(rhs *PeerInfo) bool {