summaryrefslogtreecommitdiffstats
path: root/nest/rt-dev.c
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1999-08-03 21:30:49 +0200
committerMartin Mares <mj@ucw.cz>1999-08-03 21:30:49 +0200
commit8edf2361f9c4bd745a1249db3f66dfc079dd2ca1 (patch)
tree5b97c4394925806715ea89a6c9fc61a0e44cdc1a /nest/rt-dev.c
parent9273035403ace754e5b405b2c5efba7d55c28e78 (diff)
downloadbird-8edf2361f9c4bd745a1249db3f66dfc079dd2ca1.tar
bird-8edf2361f9c4bd745a1249db3f66dfc079dd2ca1.zip
Cleaned up handling of interface patterns:
o Parsing of interface patterns moved to generic code, introduced this_ipatt which works similarly to this_iface. o Interface patterns now support selection by both interface names and primary IP addresses. o Proto `direct' updated. o RIP updated as well, it also seems the memory corruption bug there is gone.
Diffstat (limited to 'nest/rt-dev.c')
-rw-r--r--nest/rt-dev.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/nest/rt-dev.c b/nest/rt-dev.c
index 63548fc..c07b5de 100644
--- a/nest/rt-dev.c
+++ b/nest/rt-dev.c
@@ -23,7 +23,9 @@ dev_ifa_notify(struct proto *p, unsigned c, struct ifa *ad)
{
struct rt_dev_config *P = (void *) p->cf;
- if (!iface_patt_match(&P->iface_list, ad->iface))
+ if (!EMPTY_LIST(P->iface_list) &&
+ !iface_patt_match(&P->iface_list, ad->iface))
+ /* Empty list is automagically treated as "*" */
return;
if (c & IF_CHANGE_DOWN)
{