From 8cc598a5205dbe46f5f249fa4f2de0586438965d Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Sun, 24 May 2009 17:51:27 +0200 Subject: Ignore Hello packets from different IP network (than primary). --- proto/ospf/packet.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'proto/ospf/packet.c') diff --git a/proto/ospf/packet.c b/proto/ospf/packet.c index 23785fe..783d28e 100644 --- a/proto/ospf/packet.c +++ b/proto/ospf/packet.c @@ -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)) -- cgit v1.2.3