/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ /* * SR-IPv6 implementation * * Author: * David Lebrun <[email protected]> * * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version * 2 of the License, or (at your option) any later version. */ #ifndef _UAPI_LINUX_SEG6_H #define _UAPI_LINUX_SEG6_H #include <linux/types.h> #include <linux/in6.h> /* For struct in6_addr. */ /* * SRH */ struct ipv6_sr_hdr { … }; #define SR6_FLAG1_PROTECTED … #define SR6_FLAG1_OAM … #define SR6_FLAG1_ALERT … #define SR6_FLAG1_HMAC … #define SR6_TLV_INGRESS … #define SR6_TLV_EGRESS … #define SR6_TLV_OPAQUE … #define SR6_TLV_PADDING … #define SR6_TLV_HMAC … #define sr_has_hmac(srh) … struct sr6_tlv { … }; #endif