| David 'Digit' Turner | e5446fe | 2009-05-20 13:00:10 +0200 | [diff] [blame] | 1 | /**************************************************************************** | 
|  | 2 | **************************************************************************** | 
|  | 3 | *** | 
|  | 4 | ***   This header was automatically generated from a Linux kernel header | 
|  | 5 | ***   of the same name, to make information necessary for userspace to | 
|  | 6 | ***   call into the kernel available to libc.  It contains only constants, | 
|  | 7 | ***   structures, and macros generated from the original header, and thus, | 
|  | 8 | ***   contains no copyrightable information. | 
|  | 9 | *** | 
|  | 10 | **************************************************************************** | 
|  | 11 | ****************************************************************************/ | 
|  | 12 | #ifndef _LINUX_IPSEC_H | 
|  | 13 | #define _LINUX_IPSEC_H | 
|  | 14 |  | 
|  | 15 | #include <linux/pfkeyv2.h> | 
|  | 16 |  | 
|  | 17 | #define IPSEC_PORT_ANY 0 | 
|  | 18 | #define IPSEC_ULPROTO_ANY 255 | 
|  | 19 | #define IPSEC_PROTO_ANY 255 | 
|  | 20 |  | 
|  | 21 | enum { | 
|  | 22 | IPSEC_MODE_ANY = 0, | 
|  | 23 | IPSEC_MODE_TRANSPORT = 1, | 
|  | 24 | IPSEC_MODE_TUNNEL = 2, | 
|  | 25 | IPSEC_MODE_BEET = 3 | 
|  | 26 | }; | 
|  | 27 |  | 
|  | 28 | enum { | 
|  | 29 | IPSEC_DIR_ANY = 0, | 
|  | 30 | IPSEC_DIR_INBOUND = 1, | 
|  | 31 | IPSEC_DIR_OUTBOUND = 2, | 
|  | 32 | IPSEC_DIR_FWD = 3, | 
|  | 33 | IPSEC_DIR_MAX = 4, | 
|  | 34 | IPSEC_DIR_INVALID = 5 | 
|  | 35 | }; | 
|  | 36 |  | 
|  | 37 | enum { | 
|  | 38 | IPSEC_POLICY_DISCARD = 0, | 
|  | 39 | IPSEC_POLICY_NONE = 1, | 
|  | 40 | IPSEC_POLICY_IPSEC = 2, | 
|  | 41 | IPSEC_POLICY_ENTRUST = 3, | 
|  | 42 | IPSEC_POLICY_BYPASS = 4 | 
|  | 43 | }; | 
|  | 44 |  | 
|  | 45 | enum { | 
|  | 46 | IPSEC_LEVEL_DEFAULT = 0, | 
|  | 47 | IPSEC_LEVEL_USE = 1, | 
|  | 48 | IPSEC_LEVEL_REQUIRE = 2, | 
|  | 49 | IPSEC_LEVEL_UNIQUE = 3 | 
|  | 50 | }; | 
|  | 51 |  | 
|  | 52 | #define IPSEC_MANUAL_REQID_MAX 0x3fff | 
|  | 53 |  | 
|  | 54 | #define IPSEC_REPLAYWSIZE 32 | 
|  | 55 |  | 
|  | 56 | #endif |