summaryrefslogtreecommitdiffhomepage
path: root/server/server.go
diff options
context:
space:
mode:
Diffstat (limited to 'server/server.go')
-rw-r--r--server/server.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/server.go b/server/server.go
index 5492cb1c..92b9b606 100644
--- a/server/server.go
+++ b/server/server.go
@@ -43,6 +43,7 @@ type serverMsg struct {
type serverMsgDataPeer struct {
peerMsgCh chan *peerMsg
address net.IP
+ As uint32
}
type peerMapInfo struct {
@@ -176,6 +177,7 @@ func (server *BgpServer) Serve() {
d := &serverMsgDataPeer{
address: peer.NeighborAddress,
peerMsgCh: pch,
+ As: peer.PeerAs,
}
msg := &serverMsg{
msgType: SRV_MSG_PEER_ADDED,