mirror of
https://github.com/ziglang/zig.git
synced 2025-12-08 07:13:08 +00:00
* Add missing Linux headers. Closes #9837 * Update existing headers to latest Linux. * Consolidate headers that are the same for multiple Zig target CPU architectures. For example, Linux has only an x86 directory for both x86_64 and x86 CPU architectures. Now Zig only ships an x86 directory for Linux headers, and will emit the proper corresponding -isystem flags. * tools/update-linux-headers.zig is now available for upgrading to newer Linux headers, and the update process is now documented on the wiki.
49 lines
1.0 KiB
C
Vendored
49 lines
1.0 KiB
C
Vendored
/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
|
|
/*
|
|
* IPv6 IOAM Lightweight Tunnel API
|
|
*
|
|
* Author:
|
|
* Justin Iurman <justin.iurman@uliege.be>
|
|
*/
|
|
|
|
#ifndef _LINUX_IOAM6_IPTUNNEL_H
|
|
#define _LINUX_IOAM6_IPTUNNEL_H
|
|
|
|
/* Encap modes:
|
|
* - inline: direct insertion
|
|
* - encap: ip6ip6 encapsulation
|
|
* - auto: __inline__ for local packets, encap for in-transit packets
|
|
*/
|
|
enum {
|
|
__IOAM6_IPTUNNEL_MODE_MIN,
|
|
|
|
IOAM6_IPTUNNEL_MODE_INLINE,
|
|
IOAM6_IPTUNNEL_MODE_ENCAP,
|
|
IOAM6_IPTUNNEL_MODE_AUTO,
|
|
|
|
__IOAM6_IPTUNNEL_MODE_MAX,
|
|
};
|
|
|
|
#define IOAM6_IPTUNNEL_MODE_MIN (__IOAM6_IPTUNNEL_MODE_MIN + 1)
|
|
#define IOAM6_IPTUNNEL_MODE_MAX (__IOAM6_IPTUNNEL_MODE_MAX - 1)
|
|
|
|
enum {
|
|
IOAM6_IPTUNNEL_UNSPEC,
|
|
|
|
/* Encap mode */
|
|
IOAM6_IPTUNNEL_MODE, /* u8 */
|
|
|
|
/* Tunnel dst address.
|
|
* For encap,auto modes.
|
|
*/
|
|
IOAM6_IPTUNNEL_DST, /* struct in6_addr */
|
|
|
|
/* IOAM Trace Header */
|
|
IOAM6_IPTUNNEL_TRACE, /* struct ioam6_trace_hdr */
|
|
|
|
__IOAM6_IPTUNNEL_MAX,
|
|
};
|
|
|
|
#define IOAM6_IPTUNNEL_MAX (__IOAM6_IPTUNNEL_MAX - 1)
|
|
|
|
#endif /* _LINUX_IOAM6_IPTUNNEL_H */ |