The C and C++ Include Header Files
/usr/include/linux/netfilter/xt_policy.h
$ cat -n /usr/include/linux/netfilter/xt_policy.h 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 #ifndef _XT_POLICY_H 3 #define _XT_POLICY_H 4 5 #include
6 #include
7 #include
8 #include
9 10 #define XT_POLICY_MAX_ELEM 4 11 12 enum xt_policy_flags { 13 XT_POLICY_MATCH_IN = 0x1, 14 XT_POLICY_MATCH_OUT = 0x2, 15 XT_POLICY_MATCH_NONE = 0x4, 16 XT_POLICY_MATCH_STRICT = 0x8, 17 }; 18 19 enum xt_policy_modes { 20 XT_POLICY_MODE_TRANSPORT, 21 XT_POLICY_MODE_TUNNEL 22 }; 23 24 struct xt_policy_spec { 25 __u8 saddr:1, 26 daddr:1, 27 proto:1, 28 mode:1, 29 spi:1, 30 reqid:1; 31 }; 32 33 union xt_policy_addr { 34 struct in_addr a4; 35 struct in6_addr a6; 36 }; 37 38 struct xt_policy_elem { 39 union { 40 struct { 41 union xt_policy_addr saddr; 42 union xt_policy_addr smask; 43 union xt_policy_addr daddr; 44 union xt_policy_addr dmask; 45 }; 46 }; 47 __be32 spi; 48 __u32 reqid; 49 __u8 proto; 50 __u8 mode; 51 52 struct xt_policy_spec match; 53 struct xt_policy_spec invert; 54 }; 55 56 struct xt_policy_info { 57 struct xt_policy_elem pol[XT_POLICY_MAX_ELEM]; 58 __u16 flags; 59 __u16 len; 60 }; 61 62 #endif /* _XT_POLICY_H */
Contact us
|
About us
|
Term of use
|
Copyright © 2000-2024 MyWebUniversity.com ™