diff options
author | Maria Matejka <mq@ucw.cz> | 2022-03-09 15:03:48 +0100 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2022-03-09 15:03:48 +0100 |
commit | 41572e0c1b53e3aee6e84a2daada97c5f7620697 (patch) | |
tree | 5f3dd3d98fc2480ab640a44d38387a4494b105eb /proto/static/static.c | |
parent | 9dc1d7782ef792787b49b929d1b331429d23c68e (diff) | |
parent | f81702b7e44ba7f2b264fe14f0f4e1e30913e475 (diff) |
Merge commit 'f81702b7' into haugesund
Diffstat (limited to 'proto/static/static.c')
-rw-r--r-- | proto/static/static.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/proto/static/static.c b/proto/static/static.c index 6e258f6f..f8ac9c81 100644 --- a/proto/static/static.c +++ b/proto/static/static.c @@ -507,19 +507,13 @@ static_shutdown(struct proto *P) WALK_LIST(r, cf->routes) static_reset_rte(p, r); - return PS_DOWN; -} - -static void -static_cleanup(struct proto *P) -{ - struct static_proto *p = (void *) P; - if (p->igp_table_ip4) rt_unlock_table(p->igp_table_ip4); if (p->igp_table_ip6) rt_unlock_table(p->igp_table_ip6); + + return PS_DOWN; } static void @@ -777,7 +771,6 @@ struct protocol proto_static = { .dump = static_dump, .start = static_start, .shutdown = static_shutdown, - .cleanup = static_cleanup, .reconfigure = static_reconfigure, .copy_config = static_copy_config, .get_route_info = static_get_route_info, |