1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
3 * IPv6 IOAM Lightweight Tunnel API
6 * Justin Iurman <justin.iurman@uliege.be>
9 #ifndef _UAPI_LINUX_IOAM6_IPTUNNEL_H
10 #define _UAPI_LINUX_IOAM6_IPTUNNEL_H
13 * - inline: direct insertion
14 * - encap: ip6ip6 encapsulation
15 * - auto: inline for local packets, encap for in-transit packets
18 __IOAM6_IPTUNNEL_MODE_MIN
,
20 IOAM6_IPTUNNEL_MODE_INLINE
,
21 IOAM6_IPTUNNEL_MODE_ENCAP
,
22 IOAM6_IPTUNNEL_MODE_AUTO
,
24 __IOAM6_IPTUNNEL_MODE_MAX
,
27 #define IOAM6_IPTUNNEL_MODE_MIN (__IOAM6_IPTUNNEL_MODE_MIN + 1)
28 #define IOAM6_IPTUNNEL_MODE_MAX (__IOAM6_IPTUNNEL_MODE_MAX - 1)
31 IOAM6_IPTUNNEL_UNSPEC
,
34 IOAM6_IPTUNNEL_MODE
, /* u8 */
36 /* Tunnel dst address.
37 * For encap,auto modes.
39 IOAM6_IPTUNNEL_DST
, /* struct in6_addr */
41 /* IOAM Trace Header */
42 IOAM6_IPTUNNEL_TRACE
, /* struct ioam6_trace_hdr */
44 /* Insertion frequency:
45 * "k over n" packets (0 < k <= n)
48 #define IOAM6_IPTUNNEL_FREQ_MIN 1
49 #define IOAM6_IPTUNNEL_FREQ_MAX 1000000
50 IOAM6_IPTUNNEL_FREQ_K
, /* u32 */
51 IOAM6_IPTUNNEL_FREQ_N
, /* u32 */
53 /* Tunnel src address.
54 * For encap,auto modes.
55 * Optional (automatic if not provided).
57 IOAM6_IPTUNNEL_SRC
, /* struct in6_addr */
62 #define IOAM6_IPTUNNEL_MAX (__IOAM6_IPTUNNEL_MAX - 1)
64 #endif /* _UAPI_LINUX_IOAM6_IPTUNNEL_H */