]> git.proxmox.com Git - mirror_frr.git/commit - ldpd/ldpd.c
ldpd: replace global vars w/ qobj for vty context
authorRenato Westphal <renato@opensourcerouting.org>
Thu, 29 Sep 2016 17:16:50 +0000 (14:16 -0300)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 7 Oct 2016 13:09:52 +0000 (09:09 -0400)
commit0b47280e45ce89e7dbdc7c0124d21ae722e6da59
treea157600fd1547d68c2f276d746ad208d1335faa0
parent4af8997d5594d097abf3978b20843412ac7db1c6
ldpd: replace global vars w/ qobj for vty context

ldpd was keeping track of the vty session's position in config editing
with 3 global static variables.  This worked because only one vty could
be in configuration-editing mode before.

Replace with vty->qobj_index infrastructure and enable
vty_config_lockless.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
ldpd/Makefile.am
ldpd/ldp_vty_conf.c
ldpd/ldpd.c