]>
git.proxmox.com Git - mirror_frr.git/blob - pceplib/pcep.h
2 * This file is part of the PCEPlib, a PCEP protocol library.
4 * Copyright (C) 2020 Volta Networks https://voltanet.io/
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.
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.
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/>.
19 * Author : Javier Garcia <javier.garcia@voltanet.io>
30 #if defined(linux) || defined(GNU_LINUX)
32 #define ipv6_u __in6_u
35 #define ipv6_u __u6_addr
37 #include <sys/endian.h>
40 #endif /* __FreeBSD__ */
43 #include <sys/socket.h>
44 #include <netinet/in.h>
47 /* Cross-compilation seems to have trouble finding this */
48 #if defined(TCP_MD5SIG_MAXKEYLEN)
49 #define PCEP_MD5SIG_MAXKEYLEN TCP_MD5SIG_MAXKEYLEN
51 #define PCEP_MD5SIG_MAXKEYLEN 80