]>
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)
31 //#include <netinet/in.h>
32 #define ipv6_u __in6_u
35 #define TCP_MD5SIG_MAXKEYLEN 80
36 //#include <netinet/in.h>
37 #define ipv6_u __u6_addr
39 #include <sys/endian.h>
42 #endif /* __FreeBSD__ */
45 #include <sys/socket.h>
46 #include <netinet/in.h>