diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-05-07 08:55:55 -0400 | 
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-05-08 08:10:49 -0400 | 
| commit | f92155718692b89c60d483c378e59120628e9538 (patch) | |
| tree | bac5ead531f26714ad026651eda65f37badd8bf0 /zebra/zebra_rnh.h | |
| parent | 67ceb408692a478db37bcd2c87ed9d0e37acbb3c (diff) | |
zebra: Remove typedef rnh_type_t from system
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_rnh.h')
| -rw-r--r-- | zebra/zebra_rnh.h | 14 | 
1 files changed, 7 insertions, 7 deletions
diff --git a/zebra/zebra_rnh.h b/zebra/zebra_rnh.h index 6e2dab8d9f..f07e5bc791 100644 --- a/zebra/zebra_rnh.h +++ b/zebra/zebra_rnh.h @@ -31,7 +31,7 @@ extern "C" {  extern void zebra_rnh_init(void); -static inline const char *rnh_type2str(rnh_type_t type) +static inline const char *rnh_type2str(enum rnh_type type)  {  	switch (type) {  	case RNH_NEXTHOP_TYPE: @@ -44,20 +44,20 @@ static inline const char *rnh_type2str(rnh_type_t type)  }  extern struct rnh *zebra_add_rnh(struct prefix *p, vrf_id_t vrfid, -				 rnh_type_t type, bool *exists); +				 enum rnh_type type, bool *exists);  extern struct rnh *zebra_lookup_rnh(struct prefix *p, vrf_id_t vrfid, -				    rnh_type_t type); +				    enum rnh_type type);  extern void zebra_free_rnh(struct rnh *rnh);  extern void zebra_add_rnh_client(struct rnh *rnh, struct zserv *client, -				 rnh_type_t type, vrf_id_t vrfid); +				 enum rnh_type type, vrf_id_t vrfid);  extern void zebra_register_rnh_pseudowire(vrf_id_t, struct zebra_pw *);  extern void zebra_deregister_rnh_pseudowire(vrf_id_t, struct zebra_pw *);  extern void zebra_remove_rnh_client(struct rnh *rnh, struct zserv *client, -				    rnh_type_t type); +				    enum rnh_type type);  extern void zebra_evaluate_rnh(struct zebra_vrf *zvrf, afi_t afi, int force, -			       rnh_type_t type, struct prefix *p); +			       enum rnh_type type, struct prefix *p);  extern void zebra_print_rnh_table(vrf_id_t vrfid, afi_t afi, struct vty *vty, -				  rnh_type_t type, struct prefix *p); +				  enum rnh_type type, struct prefix *p);  extern char *rnh_str(struct rnh *rnh, char *buf, int size);  extern int rnh_resolve_via_default(struct zebra_vrf *zvrf, int family);  | 
