mirror of
				https://git.proxmox.com/git/mirror_frr
				synced 2025-11-04 13:22:24 +00:00 
			
		
		
		
	Use a pcep-specific value for MD5SIG_MAXLEN, use the OS value if present. Signed-off-by: Mark Stapp <mjs@voltanet.io>
		
			
				
	
	
		
			55 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			55 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
/*
 | 
						|
 * This file is part of the PCEPlib, a PCEP protocol library.
 | 
						|
 *
 | 
						|
 * Copyright (C) 2020 Volta Networks https://voltanet.io/
 | 
						|
 *
 | 
						|
 * This library is free software; you can redistribute it and/or
 | 
						|
 * modify it under the terms of the GNU Lesser General Public
 | 
						|
 * License as published by the Free Software Foundation; either
 | 
						|
 * version 2 of the License, or (at your option) any later version.
 | 
						|
 *
 | 
						|
 * This library 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
 | 
						|
 * Lesser General Public License for more details.
 | 
						|
 *
 | 
						|
 * You should have received a copy of the GNU Lesser General Public License
 | 
						|
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 | 
						|
 *
 | 
						|
 * Author : Javier Garcia <javier.garcia@voltanet.io>
 | 
						|
 *
 | 
						|
 */
 | 
						|
 | 
						|
 | 
						|
#ifndef PCEP_H_
 | 
						|
#define PCEP_H_
 | 
						|
#ifdef HAVE_CONFIG_H
 | 
						|
#include "config.h"
 | 
						|
#endif
 | 
						|
 | 
						|
#if defined(linux) || defined(GNU_LINUX)
 | 
						|
 | 
						|
#define ipv6_u __in6_u
 | 
						|
#else
 | 
						|
/* bsd family */
 | 
						|
#define ipv6_u __u6_addr
 | 
						|
#ifdef __FreeBSD__
 | 
						|
#include <sys/endian.h>
 | 
						|
#else
 | 
						|
#include <endian.h>
 | 
						|
#endif /* __FreeBSD__ */
 | 
						|
#endif
 | 
						|
 | 
						|
#include <sys/socket.h>
 | 
						|
#include <netinet/in.h>
 | 
						|
#include <pthread.h>
 | 
						|
 | 
						|
/* Cross-compilation seems to have trouble finding this */
 | 
						|
#if defined(TCP_MD5SIG_MAXKEYLEN)
 | 
						|
#define PCEP_MD5SIG_MAXKEYLEN TCP_MD5SIG_MAXKEYLEN
 | 
						|
#else
 | 
						|
#define PCEP_MD5SIG_MAXKEYLEN 80
 | 
						|
#endif
 | 
						|
 | 
						|
#endif
 |