diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-03-21 23:37:24 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-03-24 07:51:41 -0400 |
| commit | 26a3ffd60e437e66a0762c4f399eebf19ad84a4a (patch) | |
| tree | f95029ad2fb8347f4d2171320eacfffb5af6e484 /lib/agg_table.h | |
| parent | 5a1ae2c237777c6a5a909b89b302cb9c70825092 (diff) | |
bgpd, lib, ripngd: Add agg_node_get_prefix
Modify code to use lookup function agg_node_get_prefix()
as the abstraction layer. When we rework bgp_node to
bgp_dest this will allow us to greatly limit the amount
of work needed to do that.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/agg_table.h')
| -rw-r--r-- | lib/agg_table.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/agg_table.h b/lib/agg_table.h index f95fed6758..9fddc975ed 100644 --- a/lib/agg_table.h +++ b/lib/agg_table.h @@ -155,6 +155,12 @@ static inline struct agg_table *agg_get_table(struct agg_node *node) return (struct agg_table *)route_table_get_info(node->table); } +static inline const struct prefix * +agg_node_get_prefix(const struct agg_node *node) +{ + return &node->p; +} + #ifdef __cplusplus } #endif |
