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/rip/rip.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'proto/rip') diff --git a/proto/rip/rip.c b/proto/rip/rip.c index 4b3de2e..920af3a 100644 --- a/proto/rip/rip.c +++ b/proto/rip/rip.c @@ -841,6 +841,9 @@ rip_import_control(struct proto *p, struct rte **rt, struct ea_list **attrs, str if ((*rt)->attrs->proto == p) /* My own must not be touched */ return 1; + if ((*rt)->attrs->cast != RTC_UNICAST) + return -1; + if ((*rt)->attrs->source != RTS_RIP) { struct ea_list *new = rip_gen_attrs(pool, 1, 0); new->next = *attrs; -- cgit v1.2.3