]> git.proxmox.com Git - mirror_frr.git/commit - lib/vector.c
*: split & distribute memtypes and stop (re|ab)using lib/ MTYPEs
authorDavid Lamparter <equinox@opensourcerouting.org>
Fri, 29 May 2015 03:48:31 +0000 (05:48 +0200)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 19 Sep 2016 20:31:04 +0000 (16:31 -0400)
commit4a1ab8e4050a141d3d7a80b5f8bb27dfd045dae8
tree14b33d958cb88df6195994c78ee74b781e7968a6
parentfc7948fafee457874a21aa955c56a617b563f85c
*: split & distribute memtypes and stop (re|ab)using lib/ MTYPEs

This is a rather large mechanical commit that splits up the memory types
defined in lib/memtypes.c and distributes them into *_memory.[ch] files
in the individual daemons.

The zebra change is slightly annoying because there is no nice place to
put the #include "zebra_memory.h" statement.

bgpd, ospf6d, isisd and some tests were reusing MTYPEs defined in the
library for its own use.  This is bad practice and would break when the
memtype are made static.

Acked-by: Vincent JARDIN <vincent.jardin@6wind.com>
Acked-by: Donald Sharp <sharpd@cumulusnetworks.com>
[CF: rebased for cmaster-next]
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
111 files changed:
bgpd/Makefile.am
bgpd/bgp_community.c
bgpd/bgp_fsm.c
bgpd/bgp_memory.c [new file with mode: 0644]
bgpd/bgp_memory.h [new file with mode: 0644]
bgpd/bgp_nexthop.c
bgpd/bgp_open.c
bgpd/bgp_vty.c
bgpd/bgpd.c
bgpd/bgpd.h
isisd/Makefile.am
isisd/dict.c
isisd/isis_memory.c [new file with mode: 0644]
isisd/isis_memory.h [new file with mode: 0644]
isisd/isis_redist.c
isisd/isisd.h
lib/.gitignore
lib/Makefile.am
lib/bfd.c
lib/buffer.c
lib/command.c
lib/command.h
lib/distribute.c
lib/filter.c
lib/hash.c
lib/hash.h
lib/if.c
lib/if.h
lib/if_rmap.c
lib/keychain.c
lib/linklist.c
lib/log.c
lib/memory.c
lib/memory.h
lib/memtypes.c [deleted file]
lib/memtypes.pl [deleted file]
lib/nexthop.c
lib/ns.c
lib/plist.c
lib/pqueue.c
lib/prefix.c
lib/privs.c
lib/routemap.c
lib/routemap.h
lib/sockunion.c
lib/stream.c
lib/table.c
lib/table.h
lib/thread.c
lib/vector.c
lib/vector.h
lib/vrf.c
lib/vty.c
lib/workqueue.c
lib/workqueue.h
lib/zclient.c
ospf6d/Makefile.am
ospf6d/ospf6_interface.c
ospf6d/ospf6_memory.c [new file with mode: 0644]
ospf6d/ospf6_memory.h [new file with mode: 0644]
ospf6d/ospf6d.h
ospfd/Makefile.am
ospfd/ospf_memory.c [new file with mode: 0644]
ospfd/ospf_memory.h [new file with mode: 0644]
ospfd/ospf_te.c
ospfd/ospfd.h
pimd/Makefile.am
pimd/pim_memory.c [new file with mode: 0644]
pimd/pim_memory.h [new file with mode: 0644]
pimd/pimd.h
ripd/Makefile.am
ripd/rip_memory.c [new file with mode: 0644]
ripd/rip_memory.h [new file with mode: 0644]
ripd/ripd.h
ripngd/Makefile.am
ripngd/ripng_memory.c [new file with mode: 0644]
ripngd/ripng_memory.h [new file with mode: 0644]
ripngd/ripngd.h
tests/heavy-wq.c
tests/test-memory.c
vtysh/vtysh.c
vtysh/vtysh.h
vtysh/vtysh_config.c
zebra/Makefile.am
zebra/connected.c
zebra/if_ioctl.c
zebra/if_ioctl_solaris.c
zebra/if_sysctl.c
zebra/interface.c
zebra/irdp_interface.c
zebra/irdp_main.c
zebra/irdp_packet.c
zebra/kernel_socket.c
zebra/main.c
zebra/redistribute.c
zebra/router-id.c
zebra/rt_netlink.c
zebra/rtadv.c
zebra/rtread_sysctl.c
zebra/test_main.c
zebra/zebra_memory.c [new file with mode: 0644]
zebra/zebra_memory.h [new file with mode: 0644]
zebra/zebra_ns.c
zebra/zebra_ptm_redistribute.c
zebra/zebra_rib.c
zebra/zebra_rnh.c
zebra/zebra_routemap.c
zebra/zebra_static.c
zebra/zebra_vrf.c
zebra/zebra_vty.c
zebra/zserv.c