Skip to content
Snippets Groups Projects
Commit d1c2b53b authored by Daniel Czerwonk's avatar Daniel Czerwonk
Browse files

fixed attribute return

parent 5e3933b1
No related branches found
No related tags found
No related merge requests found
...@@ -171,6 +171,7 @@ func (s *establishedState) msgReceived(data []byte) (state, string) { ...@@ -171,6 +171,7 @@ func (s *establishedState) msgReceived(data []byte) (state, string) {
} }
switch msg.Header.Type { switch msg.Header.Type {
case packet.NotificationMsg: case packet.NotificationMsg:
fmt.Println(data)
return s.notification() return s.notification()
case packet.UpdateMsg: case packet.UpdateMsg:
return s.update(msg) return s.update(msg)
......
...@@ -41,7 +41,7 @@ func pathAttribues(p *route.Path) (*packet.PathAttribute, error) { ...@@ -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 { func addOptionalPathAttribues(p *route.Path, parent *packet.PathAttribute) error {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment