diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2012-03-30 11:04:12 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2012-03-30 11:04:12 +0200 |
commit | bf2abe2f515d7b7aaed5fb4f37af82169adcd2f2 (patch) | |
tree | 158a3edcfa3a79a954cb5a26989929120ec8912b /nest/proto-hooks.c | |
parent | fb829de69052755a31d76d73e17525d050e5ff4d (diff) | |
parent | c0adf7e9fc0bb920175a639c6f56ed7b4190f3e4 (diff) |
Merge branch 'soon'
Conflicts:
nest/proto.c
nest/rt-table.c
Diffstat (limited to 'nest/proto-hooks.c')
-rw-r--r-- | nest/proto-hooks.c | 13 |
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 |