]> git.proxmox.com Git - mirror_frr.git/commit
zebra: clean up zapi organization
authorQuentin Young <qlyoung@cumulusnetworks.com>
Sun, 22 Apr 2018 20:01:20 +0000 (16:01 -0400)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Mon, 23 Apr 2018 02:50:24 +0000 (22:50 -0400)
commitbf094f69758888e3bd555a24e91f3768bffbf31a
treeeb4c2bbbdc5bb7350a1efbaff27d14655c2f168c
parent616022e9582caf32d26ad7b08007052050b7c65e
zebra: clean up zapi organization

zserv.c has become something of a dumping ground for everything vaguely
related to ZAPI and really needs some love. This change splits out the
code fo building and consuming ZAPI messages into a separate source
file, leaving the actual session and client lifecycle code in zserv.c.

Unfortunately since the #include situation in Zebra has not been paid
much attention I was forced to fix the headers in a lot of other source
files. This is a net improvement overall though.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
24 files changed:
zebra/label_manager.h
zebra/main.c
zebra/redistribute.c
zebra/redistribute.h
zebra/router-id.c
zebra/rt_netlink.c
zebra/rtadv.c
zebra/subdir.am
zebra/table_manager.h
zebra/zapi_msg.c [new file with mode: 0644]
zebra/zapi_msg.h [new file with mode: 0644]
zebra/zebra_ns.h
zebra/zebra_pbr.c
zebra/zebra_ptm.h
zebra/zebra_ptm_redistribute.c
zebra/zebra_pw.c
zebra/zebra_pw.h
zebra/zebra_rib.c
zebra/zebra_rnh.c
zebra/zebra_rnh.h
zebra/zebra_routemap.h
zebra/zebra_vrf.c
zebra/zserv.c
zebra/zserv.h