diff options
author | hasso <hasso> | 2005-05-25 21:15:32 +0000 |
---|---|---|
committer | hasso <hasso> | 2005-05-25 21:15:32 +0000 |
commit | cf96db1cef3e039f3a87c0bc36206b882e804949 (patch) | |
tree | 10c9cb9bae5772bdfb340ae263b59a3d4deb3ce4 | |
parent | b5f29603399070041289729e175fbec085e8e904 (diff) |
* rip_routemap.c: Make "match interface" routemap command match both -
in and out interfaces.
Fixes bugzilla #185. [backport candidate]
-rw-r--r-- | ripd/ChangeLog | 5 | ||||
-rw-r--r-- | ripd/rip_routemap.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ripd/ChangeLog b/ripd/ChangeLog index 7b47268a..9e787d07 100644 --- a/ripd/ChangeLog +++ b/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 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; |