diff options
-rw-r--r-- | nest/iface.c | 4 | ||||
-rw-r--r-- | nest/rt-dev.c | 2 | ||||
-rw-r--r-- | proto/rip/rip.c | 2 |
3 files changed, 4 insertions, 4 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 diff --git a/nest/rt-dev.c b/nest/rt-dev.c index b6e8d70..ebe3a1a 100644 --- a/nest/rt-dev.c +++ b/nest/rt-dev.c @@ -21,7 +21,7 @@ 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; diff --git a/proto/rip/rip.c b/proto/rip/rip.c index 294206b..1249294 100644 --- a/proto/rip/rip.c +++ b/proto/rip/rip.c @@ -497,7 +497,7 @@ new_iface(struct proto *p, struct iface *new, unsigned long flags) } 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) { |