1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

Ignore Hello packets from different IP network (than primary).

This commit is contained in:
Ondrej Zajicek
2009-05-24 17:51:27 +02:00
parent 050ceb867f
commit 8cc598a520
2 changed files with 30 additions and 7 deletions

View File

@@ -323,6 +323,9 @@ ospf_rx_hook(sock * sk, int size)
return 1;
}
/* This is deviation from RFC 2328 - neighbours should be identified by
* IP address on broadcast and NBMA networks.
*/
n = find_neigh(ifa, ntohl(((struct ospf_packet *) ps)->routerid));
if(!n && (ps->type != HELLO_P))