summaryrefslogtreecommitdiff
path: root/nest/protocol.h
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2015-03-29 18:27:13 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2015-03-29 18:29:49 +0200
commit9aed29e605334d34d0e6a90fc172ee83d0274ad3 (patch)
tree349b424464aef43726f410d80e070f8955782a58 /nest/protocol.h
parenta5a5a41e2ee51ad6dfef0ab24e07d6d9b16a4215 (diff)
BGP: Enhanced route refresh (RFC 7313) support
Also hook feed_done is renamed to feed_end.
Diffstat (limited to 'nest/protocol.h')
-rw-r--r--nest/protocol.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/nest/protocol.h b/nest/protocol.h
index f46e0b13..8660cc2c 100644
--- a/nest/protocol.h
+++ b/nest/protocol.h
@@ -179,7 +179,8 @@ struct proto {
* reload_routes Request protocol to reload all its routes to the core
* (using rte_update()). Returns: 0=reload cannot be done,
* 1= reload is scheduled and will happen (asynchronously).
- * feed_done Notify protocol about finish of route feeding.
+ * feed_begin Notify protocol about beginning of route feeding.
+ * feed_end Notify protocol about finish of route feeding.
*/
void (*if_notify)(struct proto *, unsigned flags, struct iface *i);
@@ -190,7 +191,8 @@ struct proto {
void (*store_tmp_attrs)(struct rte *rt, struct ea_list *attrs);
int (*import_control)(struct proto *, struct rte **rt, struct ea_list **attrs, struct linpool *pool);
int (*reload_routes)(struct proto *);
- void (*feed_done)(struct proto *);
+ void (*feed_begin)(struct proto *, int initial);
+ void (*feed_end)(struct proto *);
/*
* Routing entry hooks (called only for routes belonging to this protocol):