]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Removed the `rta_same' hook since it's no longer needed (all protocols
authorMartin Mares <mj@ucw.cz>
Wed, 17 Mar 1999 13:13:18 +0000 (13:13 +0000)
committerMartin Mares <mj@ucw.cz>
Wed, 17 Mar 1999 13:13:18 +0000 (13:13 +0000)
needing some local information should use extended attrs and cached
rta's).

nest/protocol.h
proto/rip/rip.c

index a1ee2b8b42d33459791bfd93917aa333625739d3..a168b41215ecbdb10d38859d70b36583046b200d 100644 (file)
@@ -93,7 +93,6 @@ struct proto {
   void (*rt_notify)(struct proto *, struct network *net, struct rte *new, struct rte *old);
   void (*neigh_notify)(struct neighbor *neigh);
 
-  int (*rta_same)(struct rta *, struct rta *);
   int (*rte_better)(struct rte *, struct rte *);
   void (*rte_insert)(struct network *, struct rte *);
   void (*rte_remove)(struct network *, struct rte *);
index 6cd70d864a7fd6144304087ef657f26ab43a76f7..249026d3603fe5b6ff4573ea2172e6cfa5785ccd 100644 (file)
@@ -578,13 +578,6 @@ rip_rte_better(struct rte *new, struct rte *old)
   return 0;
 }
 
-static int
-rip_rta_same(rta *a, rta *b)
-{
-  /* As we have no specific data in rta, they are always the same */
-  return 1;
-}
-
 static void
 rip_rte_insert(net *net, rte *rte)
 {
@@ -606,7 +599,6 @@ rip_init_instance(struct proto *p)
   p->if_notify = rip_if_notify;
   p->rt_notify = rip_rt_notify;
   p->rte_better = rip_rte_better;
-  p->rta_same = rip_rta_same;
   p->rte_insert = rip_rte_insert;
   p->rte_remove = rip_rte_remove;
 }