]> git.proxmox.com Git - mirror_frr.git/blob - pceplib/pcep.h
Merge pull request #8008 from chiragshah6/yang_nb5
[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 //#include <netinet/in.h>
32 #define ipv6_u __in6_u
33 #else
34 // bsd family
35 #define TCP_MD5SIG_MAXKEYLEN 80
36 //#include <netinet/in.h>
37 #define ipv6_u __u6_addr
38 #ifdef __FreeBSD__
39 #include <sys/endian.h>
40 #else
41 #include <endian.h>
42 #endif /* __FreeBSD__ */
43 #endif
44
45 #include <sys/socket.h>
46 #include <netinet/in.h>
47 #include <pthread.h>
48 #endif