(id state.NodeId)
| 269 | } |
| 270 | |
| 271 | func (n *Nylon) checkNeigh(id state.NodeId) bool { |
| 272 | for _, node := range n.RouterState.Neighbours { |
| 273 | if node.Id == id { |
| 274 | return true |
| 275 | } |
| 276 | } |
| 277 | n.router.log.Warn("received packet from unknown neighbour", "from", id) |
| 278 | return false |
| 279 | } |
| 280 | |
| 281 | func (n *Nylon) checkPrefix(prefix netip.Prefix) bool { |
| 282 | for _, p := range n.GetPrefixes() { |
no outgoing calls
no test coverage detected