summaryrefslogtreecommitdiffstats
path: root/ripd/rip_routemap.c
diff options
context:
space:
mode:
authorhasso <hasso>2005-05-25 21:15:32 +0000
committerhasso <hasso>2005-05-25 21:15:32 +0000
commit681311bd92753822d23d19bc7f553e09d1f31cb2 (patch)
tree53ec51ffc8de158fd9834056c99202fc1c9dc120 /ripd/rip_routemap.c
parent3ae31b610183db3fb52052685e73023a540fc422 (diff)
downloadquagga-681311bd92753822d23d19bc7f553e09d1f31cb2.tar.bz2
quagga-681311bd92753822d23d19bc7f553e09d1f31cb2.tar.xz
* rip_routemap.c: Make "match interface" routemap command match both -
in and out interfaces. Fixes bugzilla #185. [backport candidate]
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;