mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
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.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user