summaryrefslogtreecommitdiffstats
path: root/nest
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1999-05-31 20:55:35 +0200
committerMartin Mares <mj@ucw.cz>1999-05-31 20:55:35 +0200
commitbb027be1e232ca2207a03a8e001441965cc07801 (patch)
treeb7a569cdde146f6eb6fe02dd73e2ec69f502613a /nest
parent75b84c34e3434209517f2ebc8160f39d33e3735e (diff)
downloadbird-bb027be1e232ca2207a03a8e001441965cc07801.tar
bird-bb027be1e232ca2207a03a8e001441965cc07801.zip
Added extra argument to rt_update hook which contains a pointer to the
temporary attribute list.
Diffstat (limited to 'nest')
-rw-r--r--nest/protocol.h3
-rw-r--r--nest/rt-table.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/nest/protocol.h b/nest/protocol.h
index 3aed2f2..84c46fa 100644
--- a/nest/protocol.h
+++ b/nest/protocol.h
@@ -22,6 +22,7 @@ struct proto_config;
struct config;
struct proto;
struct event;
+struct ea_list;
/*
* Routing Protocol
@@ -111,7 +112,7 @@ struct proto {
void (*if_notify)(struct proto *, unsigned flags, struct iface *i);
void (*ifa_notify)(struct proto *, unsigned flags, struct ifa *a);
- void (*rt_notify)(struct proto *, struct network *net, struct rte *new, struct rte *old);
+ void (*rt_notify)(struct proto *, struct network *net, struct rte *new, struct rte *old, struct ea_list *tmpa);
void (*neigh_notify)(struct neighbor *neigh);
struct ea_list *(*make_tmp_attrs)(struct rte *rt, struct linpool *pool);
void (*store_tmp_attrs)(struct rte *rt, struct ea_list *attrs);
diff --git a/nest/rt-table.c b/nest/rt-table.c
index a603c7f..7aff8b3 100644
--- a/nest/rt-table.c
+++ b/nest/rt-table.c
@@ -127,7 +127,7 @@ do_rte_announce(struct announce_hook *a, net *net, rte *new, rte *old, ea_list *
}
}
if (new || old)
- p->rt_notify(p, net, new, old);
+ p->rt_notify(p, net, new, old, tmpa);
if (new && new != new0) /* Discard temporary rte's */
rte_free(new);
if (old && old != old0)