]> git.ipfire.org Git - people/ms/strongswan.git/blob - src/pluto/kameipsec.h
(no commit message)
[people/ms/strongswan.git] / src / pluto / kameipsec.h
1 #ifndef __IPSEC_H
2 #define __IPSEC_H 1
3
4 /* The definitions, required to talk to KAME racoon IKE. */
5
6 #define IPSEC_PORT_ANY 0
7 #define IPSEC_ULPROTO_ANY 255
8 #define IPSEC_PROTO_ANY 255
9
10 enum {
11 IPSEC_MODE_ANY = 0, /* We do not support this for SA */
12 IPSEC_MODE_TRANSPORT = 1,
13 IPSEC_MODE_TUNNEL = 2
14 };
15
16 enum {
17 IPSEC_DIR_ANY = 0,
18 IPSEC_DIR_INBOUND = 1,
19 IPSEC_DIR_OUTBOUND = 2,
20 IPSEC_DIR_FWD = 3, /* It is our own */
21 IPSEC_DIR_MAX = 4,
22 IPSEC_DIR_INVALID = 5
23 };
24
25 enum {
26 IPSEC_POLICY_DISCARD = 0,
27 IPSEC_POLICY_NONE = 1,
28 IPSEC_POLICY_IPSEC = 2,
29 IPSEC_POLICY_ENTRUST = 3,
30 IPSEC_POLICY_BYPASS = 4
31 };
32
33 enum {
34 IPSEC_LEVEL_DEFAULT = 0,
35 IPSEC_LEVEL_USE = 1,
36 IPSEC_LEVEL_REQUIRE = 2,
37 IPSEC_LEVEL_UNIQUE = 3
38 };
39
40 #define IPSEC_MANUAL_REQID_MAX 0x3fff
41
42 #define IPSEC_REPLAYWSIZE 32
43
44 #define IP_IPSEC_POLICY 16
45 #define IPV6_IPSEC_POLICY 34
46
47 #endif /* __IPSEC_H */