Browse Source

* rip_routemap.c: Make "match interface" routemap command match both -
in and out interfaces.

Fixes bugzilla #185. [backport candidate]

hasso 14 years ago
parent
commit
cf96db1cef
2 changed files with 6 additions and 1 deletions
  1. 5 0
      ripd/ChangeLog
  2. 1 1
      ripd/rip_routemap.c

+ 5 - 0
ripd/ChangeLog

@@ -1,3 +1,8 @@
+2005-05-26 Hasso Tepper <hasso at quagga.net>
+
+	* rip_routemap.c: Make "match interface" routemap command match both -
+	  in and out interfaces.
+
 2005-05-11 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
 
 	* rip_interface.c (rip_interface_add): Need to call

+ 1 - 1
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;