diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-06-01 07:26:25 -0400 | 
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-06-01 08:00:05 -0400 | 
| commit | f0f77c9a590bf538033602a0b2da6084c9ea22e2 (patch) | |
| tree | 80113c30accb622589bcd67ef25fdda17fba0189 /zebra/redistribute.h | |
| parent | f0683d22277017e5a93798ce88a06fc7927dc326 (diff) | |
zebra: Refactor 'struct rib' to be 'struct route_entry'
The 'struct rib' data structure is missnamed.  It really
is a 'struct route_entry' as part of the 'struct route_node'.
We have 1 'struct route_entry' per route src.  As such
1 route node can have multiple route entries if multiple
protocols attempt to install the same route.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/redistribute.h')
| -rw-r--r-- | zebra/redistribute.h | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/zebra/redistribute.h b/zebra/redistribute.h index 8a78574980..429ec1bfdc 100644 --- a/zebra/redistribute.h +++ b/zebra/redistribute.h @@ -36,8 +36,8 @@ extern void zebra_redistribute_default_delete (int, struct zserv *, int,  					       struct zebra_vrf *zvrf);  extern void redistribute_update (struct prefix *, struct prefix *, -                                 struct rib *, struct rib *); -extern void redistribute_delete (struct prefix *, struct prefix *, struct rib *); +                                 struct route_entry *, struct route_entry *); +extern void redistribute_delete (struct prefix *, struct prefix *, struct route_entry *);  extern void zebra_interface_up_update (struct interface *);  extern void zebra_interface_down_update (struct interface *); @@ -57,9 +57,9 @@ extern int zebra_import_table (afi_t afi, u_int32_t table_id,  			       u_int32_t distance, const char *rmap_name, int add);  extern int zebra_add_import_table_entry (struct route_node *rn, -					 struct rib *rib, const char *rmap_name); +					 struct route_entry *re, const char *rmap_name);  extern int zebra_del_import_table_entry (struct route_node *rn, -					 struct rib *rib); +					 struct route_entry *re);  extern int is_zebra_import_table_enabled(afi_t, u_int32_t table_id);  extern int zebra_import_table_config(struct vty *);  | 
