summaryrefslogtreecommitdiff
path: root/nest/proto-hooks.c
diff options
context:
space:
mode:
Diffstat (limited to 'nest/proto-hooks.c')
-rw-r--r--nest/proto-hooks.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/nest/proto-hooks.c b/nest/proto-hooks.c
index 2582c48b..e80f87ea 100644
--- a/nest/proto-hooks.c
+++ b/nest/proto-hooks.c
@@ -90,7 +90,7 @@ void dump_attrs(rte *e)
* @p: protocol instance
*
* The start() hook is called by the core when it wishes to start
- * the instance.
+ * the instance. Multitable protocols should lock their tables here.
*
* Result: new protocol state
*/
@@ -110,6 +110,17 @@ int shutdown(struct proto *p)
{ DUMMY; }
/**
+ * cleanup - request instance cleanup
+ * @p: protocol instance
+ *
+ * The cleanup() hook is called by the core when the protocol became
+ * hungry/down, i.e. all protocol ahooks and routes are flushed.
+ * Multitable protocols should unlock their tables here.
+ */
+void cleanup(struct proto *p)
+{ DUMMY; }
+
+/**
* get_status - get instance status
* @p: protocol instance
* @buf: buffer to be filled with the status string