~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/uapi/linux/netfilter/xt_policy.h

Version: ~ [ linux-5.12 ] ~ [ linux-5.11.16 ] ~ [ linux-5.10.32 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.114 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.188 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.231 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.267 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.267 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.18.140 ] ~ [ linux-3.16.85 ] ~ [ linux-3.14.79 ] ~ [ linux-3.12.74 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 #ifndef _XT_POLICY_H
  2 #define _XT_POLICY_H
  3 
  4 #include <linux/types.h>
  5 #include <linux/in.h>
  6 #include <linux/in6.h>
  7 
  8 #define XT_POLICY_MAX_ELEM      4
  9 
 10 enum xt_policy_flags {
 11         XT_POLICY_MATCH_IN      = 0x1,
 12         XT_POLICY_MATCH_OUT     = 0x2,
 13         XT_POLICY_MATCH_NONE    = 0x4,
 14         XT_POLICY_MATCH_STRICT  = 0x8,
 15 };
 16 
 17 enum xt_policy_modes {
 18         XT_POLICY_MODE_TRANSPORT,
 19         XT_POLICY_MODE_TUNNEL
 20 };
 21 
 22 struct xt_policy_spec {
 23         __u8    saddr:1,
 24                         daddr:1,
 25                         proto:1,
 26                         mode:1,
 27                         spi:1,
 28                         reqid:1;
 29 };
 30 
 31 #ifndef __KERNEL__
 32 union xt_policy_addr {
 33         struct in_addr  a4;
 34         struct in6_addr a6;
 35 };
 36 #endif
 37 
 38 struct xt_policy_elem {
 39         union {
 40 #ifdef __KERNEL__
 41                 struct {
 42                         union nf_inet_addr saddr;
 43                         union nf_inet_addr smask;
 44                         union nf_inet_addr daddr;
 45                         union nf_inet_addr dmask;
 46                 };
 47 #else
 48                 struct {
 49                         union xt_policy_addr saddr;
 50                         union xt_policy_addr smask;
 51                         union xt_policy_addr daddr;
 52                         union xt_policy_addr dmask;
 53                 };
 54 #endif
 55         };
 56         __be32                  spi;
 57         __u32           reqid;
 58         __u8            proto;
 59         __u8            mode;
 60 
 61         struct xt_policy_spec   match;
 62         struct xt_policy_spec   invert;
 63 };
 64 
 65 struct xt_policy_info {
 66         struct xt_policy_elem pol[XT_POLICY_MAX_ELEM];
 67         __u16 flags;
 68         __u16 len;
 69 };
 70 
 71 #endif /* _XT_POLICY_H */
 72 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp