From 9d35f8c51f1062ddd8e2f41cf535d8a8d69ec6be Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 4 Nov 2010 10:55:48 +0100 Subject: OSPF, RIP: Only accept unicast routes --- proto/ospf/ospf.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'proto/ospf') diff --git a/proto/ospf/ospf.c b/proto/ospf/ospf.c index a9dc1de..ed82a55 100644 --- a/proto/ospf/ospf.c +++ b/proto/ospf/ospf.c @@ -468,6 +468,9 @@ ospf_import_control(struct proto *p, rte ** new, ea_list ** attrs, if (p == e->attrs->proto) return -1; /* Reject our own routes */ + if (e->attrs->cast != RTC_UNICAST) + return -1; + eattr *ea = ea_find(e->attrs->eattrs, EA_GEN_IGP_METRIC); u32 m1 = (ea && (ea->u.data < LSINFINITY)) ? ea->u.data : LSINFINITY; -- cgit v1.2.3