diff options
author | Martin Mares <mj@ucw.cz> | 2000-05-07 00:57:39 +0200 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2000-05-07 00:57:39 +0200 |
commit | ce1da96ee7efc9310f138e4234495557cdef59e2 (patch) | |
tree | b8fb1177f83a9941c7a173093a3fa20256b6c9cc /nest/protocol.h | |
parent | 84f070020500de40e69e6d00df9d41ecc90a3b23 (diff) | |
download | bird-ce1da96ee7efc9310f138e4234495557cdef59e2.tar bird-ce1da96ee7efc9310f138e4234495557cdef59e2.zip |
Added commands `show route protocol <p>' and `show route import <p>' which
show the routing table as exported to the protocol given resp. as returned
from its import control hook.
To get handling of filtered extended attributes right (even in the old
`show route where <filter>' command), the get_route_info hook gets an
attribute list and all protocol specific rte attributes are contained
there as temporary ones. Updated RIP to do that.
Added ea_append() which joins two ea_list's.
Diffstat (limited to 'nest/protocol.h')
-rw-r--r-- | nest/protocol.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nest/protocol.h b/nest/protocol.h index 768792f..7ba4419 100644 --- a/nest/protocol.h +++ b/nest/protocol.h @@ -47,7 +47,7 @@ struct protocol { int (*start)(struct proto *); /* Start the instance */ int (*shutdown)(struct proto *); /* Stop the instance */ 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) */ + void (*get_route_info)(struct rte *, byte *buf, struct ea_list *attrs); /* Get route information (for `show route' command) */ int (*get_attr)(struct eattr *, byte *buf); /* ASCIIfy dynamic attribute (returns GA_*) */ }; |