]> git.proxmox.com Git - mirror_frr.git/blob - pceplib/pcep.h
Merge pull request #13684 from LabNConsulting/chopps/pause-functionality
[mirror_frr.git] / pceplib / pcep.h
1 // SPDX-License-Identifier: LGPL-2.1-or-later
2 /*
3 * This file is part of the PCEPlib, a PCEP protocol library.
4 *
5 * Copyright (C) 2020 Volta Networks https://voltanet.io/
6 *
7 * Author : Javier Garcia <javier.garcia@voltanet.io>
8 *
9 */
10
11
12 #ifndef PCEP_H_
13 #define PCEP_H_
14 #ifdef HAVE_CONFIG_H
15 #include "config.h"
16 #endif
17
18 #if defined(linux) || defined(GNU_LINUX)
19
20 #define ipv6_u __in6_u
21 #else
22 /* bsd family */
23 #define ipv6_u __u6_addr
24 #ifdef __FreeBSD__
25 #include <sys/endian.h>
26 #else
27 #include <endian.h>
28 #endif /* __FreeBSD__ */
29 #endif
30
31 #include <sys/socket.h>
32 #include <netinet/in.h>
33 #include <pthread.h>
34
35 /* Cross-compilation seems to have trouble finding this */
36 #if defined(TCP_MD5SIG_MAXKEYLEN)
37 #define PCEP_MD5SIG_MAXKEYLEN TCP_MD5SIG_MAXKEYLEN
38 #else
39 #define PCEP_MD5SIG_MAXKEYLEN 80
40 #endif
41
42 #endif