/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _IP6T_SRH_H #define _IP6T_SRH_H #include <linux/types.h> #include <linux/netfilter.h> /* Values for "mt_flags" field in struct ip6t_srh */ #define IP6T_SRH_NEXTHDR … #define IP6T_SRH_LEN_EQ … #define IP6T_SRH_LEN_GT … #define IP6T_SRH_LEN_LT … #define IP6T_SRH_SEGS_EQ … #define IP6T_SRH_SEGS_GT … #define IP6T_SRH_SEGS_LT … #define IP6T_SRH_LAST_EQ … #define IP6T_SRH_LAST_GT … #define IP6T_SRH_LAST_LT … #define IP6T_SRH_TAG … #define IP6T_SRH_PSID … #define IP6T_SRH_NSID … #define IP6T_SRH_LSID … #define IP6T_SRH_MASK … /* Values for "mt_invflags" field in struct ip6t_srh */ #define IP6T_SRH_INV_NEXTHDR … #define IP6T_SRH_INV_LEN_EQ … #define IP6T_SRH_INV_LEN_GT … #define IP6T_SRH_INV_LEN_LT … #define IP6T_SRH_INV_SEGS_EQ … #define IP6T_SRH_INV_SEGS_GT … #define IP6T_SRH_INV_SEGS_LT … #define IP6T_SRH_INV_LAST_EQ … #define IP6T_SRH_INV_LAST_GT … #define IP6T_SRH_INV_LAST_LT … #define IP6T_SRH_INV_TAG … #define IP6T_SRH_INV_PSID … #define IP6T_SRH_INV_NSID … #define IP6T_SRH_INV_LSID … #define IP6T_SRH_INV_MASK … /** * struct ip6t_srh - SRH match options * @ next_hdr: Next header field of SRH * @ hdr_len: Extension header length field of SRH * @ segs_left: Segments left field of SRH * @ last_entry: Last entry field of SRH * @ tag: Tag field of SRH * @ mt_flags: match options * @ mt_invflags: Invert the sense of match options */ struct ip6t_srh { … }; /** * struct ip6t_srh1 - SRH match options (revision 1) * @ next_hdr: Next header field of SRH * @ hdr_len: Extension header length field of SRH * @ segs_left: Segments left field of SRH * @ last_entry: Last entry field of SRH * @ tag: Tag field of SRH * @ psid_addr: Address of previous SID in SRH SID list * @ nsid_addr: Address of NEXT SID in SRH SID list * @ lsid_addr: Address of LAST SID in SRH SID list * @ psid_msk: Mask of previous SID in SRH SID list * @ nsid_msk: Mask of next SID in SRH SID list * @ lsid_msk: MAsk of last SID in SRH SID list * @ mt_flags: match options * @ mt_invflags: Invert the sense of match options */ struct ip6t_srh1 { … }; #endif /*_IP6T_SRH_H*/