diff --git a/protocols/bgp/server/fsm_established.go b/protocols/bgp/server/fsm_established.go index d4464a7bd29f15a3e897b83d50ddd01771090fbb..e74a660ab859e00b2d70f66175ddc6c750ffd495 100644 --- a/protocols/bgp/server/fsm_established.go +++ b/protocols/bgp/server/fsm_established.go @@ -171,6 +171,7 @@ func (s *establishedState) msgReceived(data []byte) (state, string) { } switch msg.Header.Type { case packet.NotificationMsg: + fmt.Println(data) return s.notification() case packet.UpdateMsg: return s.update(msg) diff --git a/protocols/bgp/server/update_helper.go b/protocols/bgp/server/update_helper.go index b472127c4edb1ff20adad47565fcde07fb22cb84..50850cb6e3747f95bee8dd802797269bb3d63724 100644 --- a/protocols/bgp/server/update_helper.go +++ b/protocols/bgp/server/update_helper.go @@ -41,7 +41,7 @@ func pathAttribues(p *route.Path) (*packet.PathAttribute, error) { } } - return origin, nil + return asPath, nil } func addOptionalPathAttribues(p *route.Path, parent *packet.PathAttribute) error {