Skip to content
Snippets Groups Projects
Commit 6dc51678 authored by Maximilian Wilhelm's avatar Maximilian Wilhelm
Browse files

Save if a route was learned via eBGP or iBGP.

parent 41f347aa
No related branches found
No related tags found
No related merge requests found
...@@ -217,6 +217,7 @@ func (s *establishedState) updates(u *packet.BGPUpdate) { ...@@ -217,6 +217,7 @@ func (s *establishedState) updates(u *packet.BGPUpdate) {
Type: route.BGPPathType, Type: route.BGPPathType,
BGPPath: &route.BGPPath{ BGPPath: &route.BGPPath{
Source: bnet.IPv4ToUint32(s.fsm.peer.addr), Source: bnet.IPv4ToUint32(s.fsm.peer.addr),
EBGP: s.fsm.peer.localASN != s.fsm.peer.peerASN,
}, },
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment