summaryrefslogtreecommitdiff
path: root/ripd/rip_routemap.c
diff options
context:
space:
mode:
Diffstat (limited to 'ripd/rip_routemap.c')
-rw-r--r--ripd/rip_routemap.c2
1 files changed, 1 insertions, 1 deletions
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;