diff options
| author | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2012-10-19 15:19:19 -0400 |
|---|---|---|
| committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2012-10-19 15:19:19 -0400 |
| commit | e05dacd71db0a5da7c1a44bcaab2a8a240b9c233 (patch) | |
| tree | 31382cf1c7d62c03126448affb2fc86e8c4aaa8b /include/uapi/linux/ipsec.h | |
| parent | 3ab0b83bf6a1e834f4b884150d8012990c75d25d (diff) | |
| parent | ddffeb8c4d0331609ef2581d84de4d763607bd37 (diff) | |
Merge commit 'v3.7-rc1' into stable/for-linus-3.7
* commit 'v3.7-rc1': (10892 commits)
Linux 3.7-rc1
x86, boot: Explicitly include autoconf.h for hostprogs
perf: Fix UAPI fallout
ARM: config: make sure that platforms are ordered by option string
ARM: config: sort select statements alphanumerically
UAPI: (Scripted) Disintegrate include/linux/byteorder
UAPI: (Scripted) Disintegrate include/linux
UAPI: Unexport linux/blk_types.h
UAPI: Unexport part of linux/ppp-comp.h
perf: Handle new rbtree implementation
procfs: don't need a PATH_MAX allocation to hold a string representation of an int
vfs: embed struct filename inside of names_cache allocation if possible
audit: make audit_inode take struct filename
vfs: make path_openat take a struct filename pointer
vfs: turn do_path_lookup into wrapper around struct filename variant
audit: allow audit code to satisfy getname requests from its names_list
vfs: define struct filename and have getname() return it
btrfs: Fix compilation with user namespace support enabled
userns: Fix posix_acl_file_xattr_userns gid conversion
userns: Properly print bluetooth socket uids
...
Diffstat (limited to 'include/uapi/linux/ipsec.h')
| -rw-r--r-- | include/uapi/linux/ipsec.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/include/uapi/linux/ipsec.h b/include/uapi/linux/ipsec.h new file mode 100644 index 000000000000..d17a6302a0e9 --- /dev/null +++ b/include/uapi/linux/ipsec.h | |||
| @@ -0,0 +1,47 @@ | |||
| 1 | #ifndef _LINUX_IPSEC_H | ||
| 2 | #define _LINUX_IPSEC_H | ||
| 3 | |||
| 4 | /* The definitions, required to talk to KAME racoon IKE. */ | ||
| 5 | |||
| 6 | #include <linux/pfkeyv2.h> | ||
| 7 | |||
| 8 | #define IPSEC_PORT_ANY 0 | ||
| 9 | #define IPSEC_ULPROTO_ANY 255 | ||
| 10 | #define IPSEC_PROTO_ANY 255 | ||
| 11 | |||
| 12 | enum { | ||
| 13 | IPSEC_MODE_ANY = 0, /* We do not support this for SA */ | ||
| 14 | IPSEC_MODE_TRANSPORT = 1, | ||
| 15 | IPSEC_MODE_TUNNEL = 2, | ||
| 16 | IPSEC_MODE_BEET = 3 | ||
| 17 | }; | ||
| 18 | |||
| 19 | enum { | ||
| 20 | IPSEC_DIR_ANY = 0, | ||
| 21 | IPSEC_DIR_INBOUND = 1, | ||
| 22 | IPSEC_DIR_OUTBOUND = 2, | ||
| 23 | IPSEC_DIR_FWD = 3, /* It is our own */ | ||
| 24 | IPSEC_DIR_MAX = 4, | ||
| 25 | IPSEC_DIR_INVALID = 5 | ||
| 26 | }; | ||
| 27 | |||
| 28 | enum { | ||
| 29 | IPSEC_POLICY_DISCARD = 0, | ||
| 30 | IPSEC_POLICY_NONE = 1, | ||
| 31 | IPSEC_POLICY_IPSEC = 2, | ||
| 32 | IPSEC_POLICY_ENTRUST = 3, | ||
| 33 | IPSEC_POLICY_BYPASS = 4 | ||
| 34 | }; | ||
| 35 | |||
| 36 | enum { | ||
| 37 | IPSEC_LEVEL_DEFAULT = 0, | ||
| 38 | IPSEC_LEVEL_USE = 1, | ||
| 39 | IPSEC_LEVEL_REQUIRE = 2, | ||
| 40 | IPSEC_LEVEL_UNIQUE = 3 | ||
| 41 | }; | ||
| 42 | |||
| 43 | #define IPSEC_MANUAL_REQID_MAX 0x3fff | ||
| 44 | |||
| 45 | #define IPSEC_REPLAYWSIZE 32 | ||
| 46 | |||
| 47 | #endif /* _LINUX_IPSEC_H */ | ||
