From cf96db1cef3e039f3a87c0bc36206b882e804949 Mon Sep 17 00:00:00 2001 From: hasso Date: Wed, 25 May 2005 21:15:32 +0000 Subject: * rip_routemap.c: Make "match interface" routemap command match both - in and out interfaces. Fixes bugzilla #185. [backport candidate] --- ripd/rip_routemap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ripd/rip_routemap.c') diff --git a/ripd/rip_routemap.c b/ripd/rip_routemap.c index e9dae2a3..63d0ccce 100644 --- a/ripd/rip_routemap.c +++ b/ripd/rip_routemap.c @@ -228,7 +228,7 @@ route_match_interface (void *rule, struct prefix *prefix, rinfo = object; - if (rinfo->ifindex_out == ifp->ifindex) + if (rinfo->ifindex_out == ifp->ifindex || rinfo->ifindex == ifp->ifindex) return RMAP_MATCH; else return RMAP_NOMATCH; -- cgit v1.2.1