Changeset View
Changeset View
Standalone View
Standalone View
head/sys/netipsec/ipsec.h
Show First 20 Lines • Show All 173 Lines • ▼ Show 20 Lines | |||||
* DISCARD and NONE are allowed for system default. | * DISCARD and NONE are allowed for system default. | ||||
*/ | */ | ||||
#define IPSEC_POLICY_DISCARD 0 /* discarding packet */ | #define IPSEC_POLICY_DISCARD 0 /* discarding packet */ | ||||
#define IPSEC_POLICY_NONE 1 /* through IPsec engine */ | #define IPSEC_POLICY_NONE 1 /* through IPsec engine */ | ||||
#define IPSEC_POLICY_IPSEC 2 /* do IPsec */ | #define IPSEC_POLICY_IPSEC 2 /* do IPsec */ | ||||
#define IPSEC_POLICY_ENTRUST 3 /* consulting SPD if present. */ | #define IPSEC_POLICY_ENTRUST 3 /* consulting SPD if present. */ | ||||
#define IPSEC_POLICY_BYPASS 4 /* only for privileged socket. */ | #define IPSEC_POLICY_BYPASS 4 /* only for privileged socket. */ | ||||
/* Policy scope */ | |||||
#define IPSEC_POLICYSCOPE_ANY 0x00 /* unspecified */ | |||||
#define IPSEC_POLICYSCOPE_GLOBAL 0x01 /* global scope */ | |||||
#define IPSEC_POLICYSCOPE_IFNET 0x02 /* if_ipsec(4) scope */ | |||||
#define IPSEC_POLICYSCOPE_PCB 0x04 /* PCB scope */ | |||||
/* Security protocol level */ | /* Security protocol level */ | ||||
#define IPSEC_LEVEL_DEFAULT 0 /* reference to system default */ | #define IPSEC_LEVEL_DEFAULT 0 /* reference to system default */ | ||||
#define IPSEC_LEVEL_USE 1 /* use SA if present. */ | #define IPSEC_LEVEL_USE 1 /* use SA if present. */ | ||||
#define IPSEC_LEVEL_REQUIRE 2 /* require SA. */ | #define IPSEC_LEVEL_REQUIRE 2 /* require SA. */ | ||||
#define IPSEC_LEVEL_UNIQUE 3 /* unique SA. */ | #define IPSEC_LEVEL_UNIQUE 3 /* unique SA. */ | ||||
#define IPSEC_MANUAL_REQID_MAX 0x3fff | #define IPSEC_MANUAL_REQID_MAX 0x3fff | ||||
/* | /* | ||||
▲ Show 20 Lines • Show All 166 Lines • Show Last 20 Lines |