]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Dropping the unused rte_same hook
authorMaria Matejka <mq@ucw.cz>
Tue, 14 Sep 2021 09:20:16 +0000 (11:20 +0200)
committerMaria Matejka <mq@ucw.cz>
Wed, 13 Oct 2021 17:09:05 +0000 (19:09 +0200)
nest/protocol.h
nest/rt-table.c

index 05d4d88b626782827c7fbb62e61e1934c736a242..e05dd7ecacbf39f365078eebd28a5dbab5685c03 100644 (file)
@@ -231,7 +231,6 @@ struct proto {
 
   int (*rte_recalculate)(struct rtable *, struct network *, struct rte *, struct rte *, struct rte *);
   int (*rte_better)(struct rte *, struct rte *);
-  int (*rte_same)(struct rte *, struct rte *);
   int (*rte_mergable)(struct rte *, struct rte *);
   struct rte * (*rte_modify)(struct rte *, struct linpool *);
   void (*rte_insert)(struct network *, struct rte *);
index 9140e938c01fa3afabc44fdc5e3c6800c0be50c5..89e94c5594161b0e330ff657666f90256cc340c3 100644 (file)
@@ -910,7 +910,6 @@ rte_same(rte *x, rte *y)
     x->attrs == y->attrs &&
     x->pflags == y->pflags &&
     x->src == y->src &&
-    (!x->src->proto->rte_same || x->src->proto->rte_same(x, y)) &&
     rte_is_filtered(x) == rte_is_filtered(y);
 }