commit | 0a825c79339870bd9d815172a29ae9567b61c4e6 | [log] [tgz] |
---|---|---|
author | paul <paul> | Sat May 24 13:48:16 2003 +0000 |
committer | paul <paul> | Sat May 24 13:48:16 2003 +0000 |
tree | 12e6c9948fc6229fa61bbfce191a6b48909426f9 | |
parent | e9af5c78a0110bd0066d54e3ece50ffa875cafc8 [diff] [blame] |
2003-05-24 Kenji Yabuuchi * ospf_interface.c(ospf_if_lookup_recv_if): Use the most specific match for interface lookup.
diff --git a/ospfd/ospf_interface.c b/ospfd/ospf_interface.c index c37e194..569e478 100644 --- a/ospfd/ospf_interface.c +++ b/ospfd/ospf_interface.c
@@ -425,7 +425,11 @@ else { if (prefix_match (oi->address, (struct prefix *) &addr)) - match = oi; + { + if (match == NULL || + (match->address->prefixlen < oi->address->prefixlen) + match = oi; + } } }