]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Added extra argument to rt_update hook which contains a pointer to the
authorMartin Mares <mj@ucw.cz>
Mon, 31 May 1999 18:55:35 +0000 (18:55 +0000)
committerMartin Mares <mj@ucw.cz>
Mon, 31 May 1999 18:55:35 +0000 (18:55 +0000)
temporary attribute list.

nest/protocol.h
nest/rt-table.c
proto/rip/rip.c
sysdep/unix/krt.c

index 3aed2f21a31b4d9d2ef131a521350ebc93e3c1a7..84c46fa812a144991b8cc9e125608433fac802fc 100644 (file)
@@ -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);
index a603c7f107f6bdbca647e78101d4dabb0f89091f..7aff8b397b7ad8672c65f845baa34d37d855a9af 100644 (file)
@@ -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)
index 8d81486170c02ff097f9c5c7fce52bb00b0d1a28..446f310dc9b2353598a340724f3fd28183f932e3 100644 (file)
@@ -528,7 +528,7 @@ rip_if_notify(struct proto *p, unsigned c, struct iface *iface)
 }
 
 static void
-rip_rt_notify(struct proto *p, struct network *net, struct rte *new, struct rte *old)
+rip_rt_notify(struct proto *p, struct network *net, struct rte *new, struct rte *old, struct ea_list *tmpa)
 {
   CHK_MAGIC;
 
index 364147da14d1d6693451e2641abfffcfea9010dd..06473468d39aa2f1eabe0e9f66313fc1e7559fa0 100644 (file)
@@ -574,7 +574,7 @@ krt_scan(timer *t)
  */
 
 static void
-krt_notify(struct proto *P, net *net, rte *new, rte *old)
+krt_notify(struct proto *P, net *net, rte *new, rte *old, struct ea_list *tmpa)
 {
   struct krt_proto *p = (struct krt_proto *) P;