mirror of
				https://git.proxmox.com/git/mirror_frr
				synced 2025-11-04 01:27:09 +00:00 
			
		
		
		
	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>
		
			
				
	
	
		
			58 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			58 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
/* ospfd memory type declarations
 | 
						|
 *
 | 
						|
 * Copyright (C) 2015  David Lamparter
 | 
						|
 *
 | 
						|
 * This file is part of Quagga.
 | 
						|
 *
 | 
						|
 * Quagga is free software; you can redistribute it and/or modify it
 | 
						|
 * under the terms of the GNU General Public License as published by the
 | 
						|
 * Free Software Foundation; either version 2, or (at your option) any
 | 
						|
 * later version.
 | 
						|
 *
 | 
						|
 * Quagga is distributed in the hope that it will be useful, but
 | 
						|
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
						|
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 | 
						|
 * General Public License for more details.
 | 
						|
 *
 | 
						|
 * You should have received a copy of the GNU General Public License
 | 
						|
 * along with Quagga; see the file COPYING.  If not, write to the Free
 | 
						|
 * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 | 
						|
 * 02111-1307, USA.
 | 
						|
 */
 | 
						|
 | 
						|
#ifndef _QUAGGA_OSPF_MEMORY_H
 | 
						|
#define _QUAGGA_OSPF_MEMORY_H
 | 
						|
 | 
						|
#include "memory.h"
 | 
						|
 | 
						|
DECLARE_MGROUP(OSPFD)
 | 
						|
DECLARE_MTYPE(OSPF_TOP)
 | 
						|
DECLARE_MTYPE(OSPF_AREA)
 | 
						|
DECLARE_MTYPE(OSPF_AREA_RANGE)
 | 
						|
DECLARE_MTYPE(OSPF_NETWORK)
 | 
						|
DECLARE_MTYPE(OSPF_NEIGHBOR_STATIC)
 | 
						|
DECLARE_MTYPE(OSPF_IF)
 | 
						|
DECLARE_MTYPE(OSPF_NEIGHBOR)
 | 
						|
DECLARE_MTYPE(OSPF_ROUTE)
 | 
						|
DECLARE_MTYPE(OSPF_TMP)
 | 
						|
DECLARE_MTYPE(OSPF_LSA)
 | 
						|
DECLARE_MTYPE(OSPF_LSA_DATA)
 | 
						|
DECLARE_MTYPE(OSPF_LSDB)
 | 
						|
DECLARE_MTYPE(OSPF_PACKET)
 | 
						|
DECLARE_MTYPE(OSPF_FIFO)
 | 
						|
DECLARE_MTYPE(OSPF_VERTEX)
 | 
						|
DECLARE_MTYPE(OSPF_VERTEX_PARENT)
 | 
						|
DECLARE_MTYPE(OSPF_NEXTHOP)
 | 
						|
DECLARE_MTYPE(OSPF_PATH)
 | 
						|
DECLARE_MTYPE(OSPF_VL_DATA)
 | 
						|
DECLARE_MTYPE(OSPF_CRYPT_KEY)
 | 
						|
DECLARE_MTYPE(OSPF_EXTERNAL_INFO)
 | 
						|
DECLARE_MTYPE(OSPF_DISTANCE)
 | 
						|
DECLARE_MTYPE(OSPF_IF_INFO)
 | 
						|
DECLARE_MTYPE(OSPF_IF_PARAMS)
 | 
						|
DECLARE_MTYPE(OSPF_MESSAGE)
 | 
						|
DECLARE_MTYPE(OSPF_MPLS_TE)
 | 
						|
DECLARE_MTYPE(OSPF_PCE_PARAMS)
 | 
						|
 | 
						|
#endif /* _QUAGGA_OSPF_MEMORY_H */
 |