summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_rnh.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-05-08 13:58:32 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-07-29 18:37:24 +0200
commit7e24fdf333e8ffe78403788d824eae110c6e65bf (patch)
tree08564ff89be16bb9928acb85ffdd05d7e31a196f /zebra/zebra_rnh.h
parentzebra: Allow a static daemon to connect (diff)
downloadfrr-7e24fdf333e8ffe78403788d824eae110c6e65bf.tar.xz
frr-7e24fdf333e8ffe78403788d824eae110c6e65bf.zip
staticd: Start the addition of a staticd
This is the start of separating out the static handling code from zebra -> staticd. This will help simplify the zebra code and isolate static route handling to it's own code base. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_rnh.h')
-rw-r--r--zebra/zebra_rnh.h23
1 files changed, 9 insertions, 14 deletions
diff --git a/zebra/zebra_rnh.h b/zebra/zebra_rnh.h
index ea7d5545e..9e09a1bc6 100644
--- a/zebra/zebra_rnh.h
+++ b/zebra/zebra_rnh.h
@@ -39,14 +39,16 @@ struct rnh {
struct route_entry *state;
struct prefix resolved_route;
struct list *client_list;
- struct list
- *zebra_static_route_list; /* static routes dependent on this NH
- */
- struct list
- *zebra_pseudowire_list; /* pseudowires dependent on this NH */
+
+ /* pseudowires dependent on this nh */
+ struct list *zebra_pseudowire_list;
+
struct route_node *node;
- int filtered[ZEBRA_ROUTE_MAX]; /* if this has been filtered for client
- */
+
+ /*
+ * if this has been filtered for the client
+ */
+ int filtered[ZEBRA_ROUTE_MAX];
};
typedef enum { RNH_NEXTHOP_TYPE, RNH_IMPORT_CHECK_TYPE } rnh_type_t;
@@ -73,13 +75,6 @@ extern void zebra_free_rnh(struct rnh *rnh);
extern void zebra_delete_rnh(struct rnh *rnh, rnh_type_t type);
extern void zebra_add_rnh_client(struct rnh *rnh, struct zserv *client,
rnh_type_t type, vrf_id_t vrfid);
-extern void zebra_register_rnh_static_nh(vrf_id_t, struct prefix *,
- struct route_node *);
-extern void zebra_deregister_rnh_static_nexthops(vrf_id_t,
- struct nexthop *nexthop,
- struct route_node *rn);
-extern void zebra_deregister_rnh_static_nh(vrf_id_t, struct prefix *,
- struct route_node *);
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,