blob: 56acafa7df902206e9b7e0999143c52178ecd40a [file] [log] [blame]
David 'Digit' Turnere5446fe2009-05-20 13:00:10 +02001/****************************************************************************
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
Ben Cheng4b29af02012-03-07 16:14:53 -080014
David 'Digit' Turnere5446fe2009-05-20 13:00:10 +020015#include <linux/pfkeyv2.h>
Ben Cheng4b29af02012-03-07 16:14:53 -080016
David 'Digit' Turnere5446fe2009-05-20 13:00:10 +020017#define IPSEC_PORT_ANY 0
18#define IPSEC_ULPROTO_ANY 255
19#define IPSEC_PROTO_ANY 255
Ben Cheng4b29af02012-03-07 16:14:53 -080020
David 'Digit' Turnere5446fe2009-05-20 13:00:10 +020021enum {
22 IPSEC_MODE_ANY = 0,
23 IPSEC_MODE_TRANSPORT = 1,
24 IPSEC_MODE_TUNNEL = 2,
25 IPSEC_MODE_BEET = 3
26};
Ben Cheng4b29af02012-03-07 16:14:53 -080027
David 'Digit' Turnere5446fe2009-05-20 13:00:10 +020028enum {
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};
Ben Cheng4b29af02012-03-07 16:14:53 -080036
David 'Digit' Turnere5446fe2009-05-20 13:00:10 +020037enum {
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};
Ben Cheng4b29af02012-03-07 16:14:53 -080044
David 'Digit' Turnere5446fe2009-05-20 13:00:10 +020045enum {
46 IPSEC_LEVEL_DEFAULT = 0,
47 IPSEC_LEVEL_USE = 1,
48 IPSEC_LEVEL_REQUIRE = 2,
49 IPSEC_LEVEL_UNIQUE = 3
50};
Ben Cheng4b29af02012-03-07 16:14:53 -080051
David 'Digit' Turnere5446fe2009-05-20 13:00:10 +020052#define IPSEC_MANUAL_REQID_MAX 0x3fff
Ben Cheng4b29af02012-03-07 16:14:53 -080053
David 'Digit' Turnere5446fe2009-05-20 13:00:10 +020054#define IPSEC_REPLAYWSIZE 32
Ben Cheng4b29af02012-03-07 16:14:53 -080055
David 'Digit' Turnere5446fe2009-05-20 13:00:10 +020056#endif