From 3991d84e8fa9118a43149d4d3304726eb786bd46 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sat, 1 Apr 2000 10:19:47 +0000 Subject: Changed initialization of protocol list -- now we call proto_build() instead of calling the protocols manually. Implemented printing of dynamic attributes in `show route all'. Each protocol can now register its own attribute class (protocol->attr_class, set to EAP_xxx) and also a callback for naming and formatting of attributes. The callback can return one of the following results: GA_UNKNOWN Attribute not recognized. GA_NAME Attribute name recognized and put to the buffer, generic code should format the value. GA_FULL Both attribute name and value put to the buffer. Please update protocols generating dynamic attributes to provide the attr_class and formatting hook. --- nest/rt-table.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'nest/rt-table.c') diff --git a/nest/rt-table.c b/nest/rt-table.c index 3daa836..6ad5b06 100644 --- a/nest/rt-table.c +++ b/nest/rt-table.c @@ -675,11 +675,7 @@ rt_show_rte(struct cli *c, byte *ia, rte *e, struct rt_show_data *d) bsprintf(info, " (%d)", e->pref); cli_printf(c, -1007, "%-18s %s [%s %s%s]%s", ia, via, a->proto->name, tm, from, info); if (d->verbose) - { - rta_show(c, a); - if (a->proto->proto->show_route_data) - a->proto->proto->show_route_data(e); - } + rta_show(c, a); } static void -- cgit v1.2.3