(peer *peer, paths, olds []*table.Path)
| 1153 | } |
| 1154 | |
| 1155 | func (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 | |
| 1173 | func (s *BgpServer) handleRouteRefresh(peer *peer, e *fsmMsg) { |
| 1174 | m := e.MsgData.(*bgp.BGPMessage) |
no test coverage detected