MCPcopy
hub / github.com/osrg/gobgp / processOutgoingPaths

Method processOutgoingPaths

pkg/server/server.go:1155–1171  ·  view source on GitHub ↗
(peer *peer, paths, olds []*table.Path)

Source from the content-addressed store, hash-verified

1153}
1154
1155func (s *BgpServer) processOutgoingPaths(peer *peer, paths, olds []*table.Path) []*table.Path {
1156 if !needToAdvertise(peer) {
1157 return nil
1158 }
1159
1160 outgoing := make([]*table.Path, 0, len(paths))
1161 for idx, path := range paths {
1162 var old *table.Path
1163 if olds != nil {
1164 old = olds[idx]
1165 }
1166 if p := s.filterpath(peer, path, old); p != nil {
1167 outgoing = append(outgoing, p)
1168 }
1169 }
1170 return outgoing
1171}
1172
1173func (s *BgpServer) handleRouteRefresh(peer *peer, e *fsmMsg) {
1174 m := e.MsgData.(*bgp.BGPMessage)

Callers 2

processRTCMembershipMethod · 0.95

Calls 2

filterpathMethod · 0.95
needToAdvertiseFunction · 0.85

Tested by

no test coverage detected