]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Dropping rte-local dumper entries
authorMaria Matejka <mq@ucw.cz>
Mon, 17 Feb 2020 11:42:14 +0000 (12:42 +0100)
committerMaria Matejka <mq@ucw.cz>
Wed, 13 Oct 2021 17:09:05 +0000 (19:09 +0200)
nest/proto-hooks.c
nest/protocol.h
nest/rt-table.c

index 0cd4ac3714d2399a7fa51c30cdd1c565c3d9fcf7..716ce86c80ef0b1d8b4d0814dee0de6b72a5138c 100644 (file)
@@ -75,16 +75,6 @@ int reconfigure(struct proto *p, struct proto_config *c)
 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
index 1679d59063ea2138a4fc7ed1329dec96b80ebfa9..05d4d88b626782827c7fbb62e61e1934c736a242 100644 (file)
@@ -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) */
index ff0ef463a1f553ba8652455de2439f30e1f4d907..9140e938c01fa3afabc44fdc5e3c6800c0be50c5 100644 (file)
@@ -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");
 }