diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-09-13 22:39:21 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-09-13 22:39:21 +0900 |
commit | 5be31cce0de1797664d4125957d157991a6fbd4a (patch) | |
tree | 5a54a2f12184ea6d7bface519707bf878df859f9 /server/peer.go | |
parent | c717f53456e0c1ac256377bfdd933431cc6a66bd (diff) |
Add bmp support
Can be enabled like:
[Global]
[Global.GlobalConfig]
As = 64512
RouterId = "10.0.255.254"
[BmpServers]
[[BmpServers.BmpServerList]]
[BmpServers.BmpServerList.BmpServerConfig]
Address = "127.0.0.1"
Port=11019
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'server/peer.go')
-rw-r--r-- | server/peer.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/server/peer.go b/server/peer.go index 45cb1c79..24638130 100644 --- a/server/peer.go +++ b/server/peer.go @@ -44,6 +44,7 @@ type Peer struct { inPolicies []*policy.Policy defaultInPolicy config.DefaultPolicyType isConfederationMember bool + recvOpen *bgp.BGPMessage } func NewPeer(g config.Global, conf config.Neighbor) *Peer { @@ -121,6 +122,7 @@ func (peer *Peer) handleBGPmessage(m *bgp.BGPMessage) ([]*table.Path, bool, []*b switch m.Header.Type { case bgp.BGP_MSG_OPEN: + peer.recvOpen = m body := m.Body.(*bgp.BGPOpen) peer.peerInfo.ID = m.Body.(*bgp.BGPOpen).ID r := make(map[bgp.RouteFamily]bool) |