diff options
author | Maria Matejka <mq@ucw.cz> | 2020-02-17 12:42:14 +0100 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2021-10-13 19:09:05 +0200 |
commit | 89ff49f8f0bcd2015f157134728d28ec428e1262 (patch) | |
tree | 34b2013eaa12381354e7a745c8f905bf39dc5ae9 /nest | |
parent | 541881bedf391d9a19f071b856dcbd55e850dece (diff) |
Dropping rte-local dumper entries
Diffstat (limited to 'nest')
-rw-r--r-- | nest/proto-hooks.c | 10 | ||||
-rw-r--r-- | nest/protocol.h | 2 | ||||
-rw-r--r-- | nest/rt-table.c | 2 |
3 files changed, 0 insertions, 14 deletions
diff --git a/nest/proto-hooks.c b/nest/proto-hooks.c index 0cd4ac37..716ce86c 100644 --- a/nest/proto-hooks.c +++ b/nest/proto-hooks.c @@ -76,16 +76,6 @@ void dump(struct proto *p) { DUMMY; } /** - * dump_attrs - dump protocol-dependent attributes - * @e: a route entry - * - * This hook dumps all attributes in the &rte which belong to this - * protocol to the debug output. - */ -void dump_attrs(rte *e) -{ DUMMY; } - -/** * start - request instance startup * @p: protocol instance * diff --git a/nest/protocol.h b/nest/protocol.h index 1679d590..05d4d88b 100644 --- a/nest/protocol.h +++ b/nest/protocol.h @@ -74,7 +74,6 @@ struct protocol { struct proto * (*init)(struct proto_config *); /* Create new instance */ int (*reconfigure)(struct proto *, struct proto_config *); /* Try to reconfigure instance, returns success */ void (*dump)(struct proto *); /* Debugging dump */ - void (*dump_attrs)(struct rte *); /* Dump protocol-dependent attributes */ int (*start)(struct proto *); /* Start the instance */ int (*shutdown)(struct proto *); /* Stop the instance */ void (*cleanup)(struct proto *); /* Called after shutdown when protocol became hungry/down */ @@ -467,7 +466,6 @@ struct channel_class { void (*dump)(struct proto *); /* Debugging dump */ - void (*dump_attrs)(struct rte *); /* Dump protocol-dependent attributes */ void (*get_status)(struct proto *, byte *buf); /* Get instance status (for `show protocols' command) */ void (*get_route_info)(struct rte *, byte *buf); /* Get route information (for `show route' command) */ diff --git a/nest/rt-table.c b/nest/rt-table.c index ff0ef463..9140e938 100644 --- a/nest/rt-table.c +++ b/nest/rt-table.c @@ -1504,8 +1504,6 @@ rte_dump(rte *e) debug("%-1N ", n->n.addr); debug("PF=%02x ", e->pflags); rta_dump(e->attrs); - if (e->src->proto->proto->dump_attrs) - e->src->proto->proto->dump_attrs(e); debug("\n"); } |