summaryrefslogtreecommitdiffstats
path: root/nest/route.h
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1999-12-01 16:10:21 +0100
committerMartin Mares <mj@ucw.cz>1999-12-01 16:10:21 +0100
commit730f2e2c8c29b3461caa096fa514cbf71f84e51b (patch)
tree0a01f3aeb128be3746f67ee9c9adc1c8c62013d7 /nest/route.h
parent04a60c689aeb10fafa9919bcff5f8391e0f3a158 (diff)
downloadbird-730f2e2c8c29b3461caa096fa514cbf71f84e51b.tar
bird-730f2e2c8c29b3461caa096fa514cbf71f84e51b.zip
Added dumping of routing tables (`show route'). This includes filtering.
Diffstat (limited to 'nest/route.h')
-rw-r--r--nest/route.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/nest/route.h b/nest/route.h
index c2b21d1..41d188d 100644
--- a/nest/route.h
+++ b/nest/route.h
@@ -15,6 +15,9 @@
struct protocol;
struct proto;
+struct symbol;
+struct filter;
+struct cli;
/*
* Generic data structure for storing network prefixes. Also used
@@ -186,6 +189,16 @@ void rt_feed_baby(struct proto *p);
void rt_prune(rtable *tab);
void rt_prune_all(void);
+struct rt_show_data {
+ ip_addr prefix;
+ unsigned pxlen;
+ rtable *table;
+ struct filter *filter;
+ int verbose;
+ struct fib_iterator fit;
+};
+void rt_show(struct rt_show_data *);
+
/*
* Route Attributes
*
@@ -311,6 +324,7 @@ static inline void rta_free(rta *r) { if (r && !--r->uc) rta__free(r); }
void rta_dump(rta *);
void rta_dump_all(void);
static inline eattr * rta_find(rta *a, unsigned ea) { return ea_find(a->eattrs, ea); }
+void rta_show(struct cli *, rta *);
/*
* Default protocol preferences