mirror of
				https://git.proxmox.com/git/mirror_frr
				synced 2025-11-04 08:28:50 +00:00 
			
		
		
		
	Replace all HAVE_MPLS #ifdef's by a run-time check if MPLS is supported by the kernel or not. This way we don't need to create multiple packages for each OS distribution. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
		
			
				
	
	
		
			9 lines
		
	
	
		
			272 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
		
			272 B
		
	
	
	
		
			C
		
	
	
	
	
	
#include <zebra.h>
 | 
						|
#include "zebra/rt.h"
 | 
						|
#include "zebra/zebra_mpls.h"
 | 
						|
 | 
						|
int kernel_add_lsp (zebra_lsp_t *lsp) { return 0; }
 | 
						|
int kernel_upd_lsp (zebra_lsp_t *lsp) { return 0; }
 | 
						|
int kernel_del_lsp (zebra_lsp_t *lsp) { return 0; }
 | 
						|
int mpls_kernel_init (void) { return -1; };
 |