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);
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
struct proto_config *cf_dev_proto;
static void
-dev_if_notify(struct proto *p, unsigned c, struct iface *old, struct iface *new)
+dev_if_notify(struct proto *p, unsigned c, struct iface *new, struct iface *old)
{
struct rt_dev_config *P = (void *) p->cf;
}
static void
-rip_if_notify(struct proto *p, unsigned c, struct iface *old, struct iface *new)
+rip_if_notify(struct proto *p, unsigned c, struct iface *new, struct iface *old)
{
DBG( "RIP: if notify\n" );
if (old) {