]> git.proxmox.com Git - mirror_frr.git/blob - pceplib/pcep.h
Merge pull request #12114 from opensourcerouting/feature/bgp_aigp_attribute
[mirror_frr.git] / pceplib / pcep.h
1 /*
2 * This file is part of the PCEPlib, a PCEP protocol library.
3 *
4 * Copyright (C) 2020 Volta Networks https://voltanet.io/
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public License
17 * along with this program. If not, see <https://www.gnu.org/licenses/>.
18 *
19 * Author : Javier Garcia <javier.garcia@voltanet.io>
20 *
21 */
22
23
24 #ifndef PCEP_H_
25 #define PCEP_H_
26 #ifdef HAVE_CONFIG_H
27 #include "config.h"
28 #endif
29
30 #if defined(linux) || defined(GNU_LINUX)
31
32 #define ipv6_u __in6_u
33 #else
34 /* bsd family */
35 #define ipv6_u __u6_addr
36 #ifdef __FreeBSD__
37 #include <sys/endian.h>
38 #else
39 #include <endian.h>
40 #endif /* __FreeBSD__ */
41 #endif
42
43 #include <sys/socket.h>
44 #include <netinet/in.h>
45 #include <pthread.h>
46
47 /* Cross-compilation seems to have trouble finding this */
48 #if defined(TCP_MD5SIG_MAXKEYLEN)
49 #define PCEP_MD5SIG_MAXKEYLEN TCP_MD5SIG_MAXKEYLEN
50 #else
51 #define PCEP_MD5SIG_MAXKEYLEN 80
52 #endif
53
54 #endif