Blame include/uapi/linux/seg6_iptunnel.h
|
Packit Service |
3880ab |
/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
|
|
Packit Service |
3880ab |
/*
|
|
Packit Service |
3880ab |
* SR-IPv6 implementation
|
|
Packit Service |
3880ab |
*
|
|
Packit Service |
3880ab |
* Author:
|
|
Packit Service |
3880ab |
* David Lebrun <david.lebrun@uclouvain.be>
|
|
Packit Service |
3880ab |
*
|
|
Packit Service |
3880ab |
*
|
|
Packit Service |
3880ab |
* This program is free software; you can redistribute it and/or
|
|
Packit Service |
3880ab |
* modify it under the terms of the GNU General Public License
|
|
Packit Service |
3880ab |
* as published by the Free Software Foundation; either version
|
|
Packit Service |
3880ab |
* 2 of the License, or (at your option) any later version.
|
|
Packit Service |
3880ab |
*/
|
|
Packit Service |
3880ab |
|
|
Packit Service |
3880ab |
#ifndef _LINUX_SEG6_IPTUNNEL_H
|
|
Packit Service |
3880ab |
#define _LINUX_SEG6_IPTUNNEL_H
|
|
Packit Service |
3880ab |
|
|
Packit Service |
3880ab |
#include <linux/seg6.h> /* For struct ipv6_sr_hdr. */
|
|
Packit Service |
3880ab |
|
|
Packit Service |
3880ab |
enum {
|
|
Packit Service |
3880ab |
SEG6_IPTUNNEL_UNSPEC,
|
|
Packit Service |
3880ab |
SEG6_IPTUNNEL_SRH,
|
|
Packit Service |
3880ab |
__SEG6_IPTUNNEL_MAX,
|
|
Packit Service |
3880ab |
};
|
|
Packit Service |
3880ab |
#define SEG6_IPTUNNEL_MAX (__SEG6_IPTUNNEL_MAX - 1)
|
|
Packit Service |
3880ab |
|
|
Packit Service |
3880ab |
struct seg6_iptunnel_encap {
|
|
Packit Service |
3880ab |
int mode;
|
|
Packit Service |
3880ab |
struct ipv6_sr_hdr srh[0];
|
|
Packit Service |
3880ab |
};
|
|
Packit Service |
3880ab |
|
|
Packit Service |
3880ab |
#define SEG6_IPTUN_ENCAP_SIZE(x) ((sizeof(*x)) + (((x)->srh->hdrlen + 1) << 3))
|
|
Packit Service |
3880ab |
|
|
Packit Service |
3880ab |
enum {
|
|
Packit Service |
3880ab |
SEG6_IPTUN_MODE_INLINE,
|
|
Packit Service |
3880ab |
SEG6_IPTUN_MODE_ENCAP,
|
|
Packit Service |
3880ab |
SEG6_IPTUN_MODE_L2ENCAP,
|
|
Packit Service |
3880ab |
};
|
|
Packit Service |
3880ab |
|
|
Packit Service |
3880ab |
#endif
|