summaryrefslogtreecommitdiffstats
path: root/nest/iface.c
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1999-02-13 22:58:53 +0100
committerMartin Mares <mj@ucw.cz>1999-02-13 22:58:53 +0100
commitd1f7eab6b5f1bd86a47402cb8fdb5cbcedc8947f (patch)
tree7bd180cc550f82570e7acaf8a5e078b6729cc089 /nest/iface.c
parent726141746b7f86b02a902bd6b316792e4be0380c (diff)
downloadbird-d1f7eab6b5f1bd86a47402cb8fdb5cbcedc8947f.tar
bird-d1f7eab6b5f1bd86a47402cb8fdb5cbcedc8947f.zip
Parameter order for the proto->if_notify hook was different in the include
file and different in reality. Decided to use the same order as we do for proto->rt_notify (i.e., first new value and second the old one).
Diffstat (limited to 'nest/iface.c')
-rw-r--r--nest/iface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nest/iface.c b/nest/iface.c
index ae40caa..86f0a8a 100644
--- a/nest/iface.c
+++ b/nest/iface.c
@@ -283,7 +283,7 @@ if_notify_change(unsigned c, struct iface *old, struct iface *new)
WALK_LIST(p, proto_list)
if (p->if_notify)
- p->if_notify(p, c, old, new);
+ p->if_notify(p, c, new, old);
if (c & IF_CHANGE_DOWN)
neigh_if_down(old);
@@ -351,7 +351,7 @@ if_feed_baby(struct proto *p)
return;
debug("Announcing interfaces to new protocol %s\n", p->name);
WALK_LIST(i, iface_list)
- p->if_notify(p, IF_CHANGE_CREATE | ((i->flags & IF_UP) ? IF_CHANGE_UP : 0), NULL, i);
+ p->if_notify(p, IF_CHANGE_CREATE | ((i->flags & IF_UP) ? IF_CHANGE_UP : 0), i, NULL);
}
static void