From f14a4becbe77cfb3c2e4243d6fc383b0acd8956f Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sun, 16 Jan 2000 23:30:06 +0000 Subject: Reworked proto lists -- each proto is now in two lists: the global one (proto_list) and per-type one (original lists). A lot of things simplified. Implemented `disable', `enable' and `restart' CLI commands. --- nest/iface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nest/iface.c') diff --git a/nest/iface.c b/nest/iface.c index 4f12365..bf73b46 100644 --- a/nest/iface.c +++ b/nest/iface.c @@ -278,7 +278,7 @@ ifa_notify_change(unsigned c, struct ifa *a) struct proto *p; debug("IFA change notification (%x) for %s:%I\n", c, a->iface->name, a->ip); - WALK_LIST(p, proto_list) + WALK_LIST(p, active_proto_list) if (p->ifa_notify) p->ifa_notify(p, c, a); } @@ -307,7 +307,7 @@ if_notify_change(unsigned c, struct iface *i) ifa_notify_change(IF_CHANGE_DOWN, a); } - WALK_LIST(p, proto_list) + WALK_LIST(p, active_proto_list) if (p->if_notify) p->if_notify(p, c, i); -- cgit v1.2.3