xref: /freebsd/sbin/ifconfig/ifconfig_netlink.h (revision 4c91a5dfe48349c9238eeea6a5b9c11daca4e70d)
1*4c91a5dfSAlexander V. Chernikov /*-
2*4c91a5dfSAlexander V. Chernikov  * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3*4c91a5dfSAlexander V. Chernikov  *
4*4c91a5dfSAlexander V. Chernikov  * Copyright (c) 2023 Alexander V. Chernikov <melifaro@FreeBSD.org>
5*4c91a5dfSAlexander V. Chernikov  *
6*4c91a5dfSAlexander V. Chernikov  * Redistribution and use in source and binary forms, with or without
7*4c91a5dfSAlexander V. Chernikov  * modification, are permitted provided that the following conditions
8*4c91a5dfSAlexander V. Chernikov  * are met:
9*4c91a5dfSAlexander V. Chernikov  * 1. Redistributions of source code must retain the above copyright
10*4c91a5dfSAlexander V. Chernikov  *    notice, this list of conditions and the following disclaimer.
11*4c91a5dfSAlexander V. Chernikov  * 2. Redistributions in binary form must reproduce the above copyright
12*4c91a5dfSAlexander V. Chernikov  *    notice, this list of conditions and the following disclaimer in the
13*4c91a5dfSAlexander V. Chernikov  *    documentation and/or other materials provided with the distribution.
14*4c91a5dfSAlexander V. Chernikov  *
15*4c91a5dfSAlexander V. Chernikov  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
16*4c91a5dfSAlexander V. Chernikov  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17*4c91a5dfSAlexander V. Chernikov  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18*4c91a5dfSAlexander V. Chernikov  * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
19*4c91a5dfSAlexander V. Chernikov  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20*4c91a5dfSAlexander V. Chernikov  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21*4c91a5dfSAlexander V. Chernikov  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22*4c91a5dfSAlexander V. Chernikov  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23*4c91a5dfSAlexander V. Chernikov  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24*4c91a5dfSAlexander V. Chernikov  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25*4c91a5dfSAlexander V. Chernikov  * SUCH DAMAGE.
26*4c91a5dfSAlexander V. Chernikov  */
27*4c91a5dfSAlexander V. Chernikov 
28*4c91a5dfSAlexander V. Chernikov #pragma once
29*4c91a5dfSAlexander V. Chernikov 
30*4c91a5dfSAlexander V. Chernikov #ifndef WITHOUT_NETLINK
31*4c91a5dfSAlexander V. Chernikov #include <netlink/netlink.h>
32*4c91a5dfSAlexander V. Chernikov #include <netlink/netlink_route.h>
33*4c91a5dfSAlexander V. Chernikov #include <netlink/netlink_snl.h>
34*4c91a5dfSAlexander V. Chernikov #include <netlink/netlink_snl_route.h>
35*4c91a5dfSAlexander V. Chernikov #include <netlink/netlink_snl_route_compat.h>
36*4c91a5dfSAlexander V. Chernikov #include <netlink/netlink_snl_route_parsers.h>
37*4c91a5dfSAlexander V. Chernikov #endif
38