diff options
author | Maria Matejka <mq@ucw.cz> | 2021-09-14 11:20:16 +0200 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2021-10-13 19:09:05 +0200 |
commit | 0b295d695acab007dd7baab3e9e97c682f716ee8 (patch) | |
tree | ddbb3434947137dbc700c41d4d64c7894cbba2ee /nest | |
parent | 89ff49f8f0bcd2015f157134728d28ec428e1262 (diff) |
Dropping the unused rte_same hook
Diffstat (limited to 'nest')
-rw-r--r-- | nest/protocol.h | 1 | ||||
-rw-r--r-- | nest/rt-table.c | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/nest/protocol.h b/nest/protocol.h index 05d4d88b..e05dd7ec 100644 --- a/nest/protocol.h +++ b/nest/protocol.h @@ -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 *); diff --git a/nest/rt-table.c b/nest/rt-table.c index 9140e938..89e94c55 100644 --- a/nest/rt-table.c +++ b/nest/rt-table.c @@ -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); } |