0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 09:41:54 +00:00

SNMP: cleanup

This commit is contained in:
Vojtech Vilimek 2024-08-14 12:26:20 +02:00
parent faf862ae13
commit dd9e1323b5
2 changed files with 0 additions and 5 deletions

View File

@ -396,9 +396,6 @@ snmp_cleanup(struct snmp_proto *p)
rfree(p->lp);
p->bgp_trie = NULL;
rfree(p->end_oids);
p->end_oids = NULL;
p->state = SNMP_DOWN;
}
@ -553,7 +550,6 @@ snmp_start(struct proto *P)
p->lp = lp_new(p->pool);
p->mib_tree = mb_alloc(p->pool, sizeof(struct mib_tree));
p->bgp_trie = f_new_trie(p->lp, 0);
p->end_oids = lp_new(p->pool);
p->startup_timer = tm_new_init(p->pool, snmp_startup_timeout, p, 0, 0);
p->ping_timer = tm_new_init(p->pool, snmp_ping_timeout, p, p->timeout, 0);

View File

@ -98,7 +98,6 @@ struct snmp_proto {
struct object_lock *lock;
pool *pool; /* a shortcut to the procotol mem. pool */
linpool *lp; /* linpool for bgp_trie nodes */
linpool *end_oids;
enum snmp_proto_state state;