Go to the documentation of this file.
6 #ifndef _LINUX_PFKEY2_H
7 #define _LINUX_PFKEY2_H
9 #include <linux/types.h>
12 #define PFKEYV2_REVISION 199806L
239 #define SADB_RESERVED 0
240 #define SADB_GETSPI 1
241 #define SADB_UPDATE 2
243 #define SADB_DELETE 4
245 #define SADB_ACQUIRE 6
246 #define SADB_REGISTER 7
247 #define SADB_EXPIRE 8
250 #define SADB_X_PROMISC 11
251 #define SADB_X_PCHANGE 12
252 #define SADB_X_SPDUPDATE 13
253 #define SADB_X_SPDADD 14
254 #define SADB_X_SPDDELETE 15
255 #define SADB_X_SPDGET 16
256 #define SADB_X_SPDACQUIRE 17
257 #define SADB_X_SPDDUMP 18
258 #define SADB_X_SPDFLUSH 19
259 #define SADB_X_SPDSETIDX 20
260 #define SADB_X_SPDEXPIRE 21
261 #define SADB_X_SPDDELETE2 22
262 #define SADB_X_NAT_T_NEW_MAPPING 23
263 #define SADB_X_MIGRATE 24
267 #define SADB_SAFLAGS_PFS 1
268 #define SADB_SAFLAGS_NOPMTUDISC 0x20000000
269 #define SADB_SAFLAGS_DECAP_DSCP 0x40000000
270 #define SADB_SAFLAGS_NOECN 0x80000000
273 #define SADB_SASTATE_LARVAL 0
274 #define SADB_SASTATE_MATURE 1
275 #define SADB_SASTATE_DYING 2
276 #define SADB_SASTATE_DEAD 3
277 #define SADB_SASTATE_MAX 3
280 #define SADB_SATYPE_UNSPEC 0
281 #define SADB_SATYPE_AH 2
282 #define SADB_SATYPE_ESP 3
283 #define SADB_SATYPE_RSVP 5
284 #define SADB_SATYPE_OSPFV2 6
285 #define SADB_SATYPE_RIPV2 7
286 #define SADB_SATYPE_MIP 8
287 #define SADB_X_SATYPE_IPCOMP 9
288 #define SADB_SATYPE_MAX 9
291 #define SADB_AALG_NONE 0
292 #define SADB_AALG_MD5HMAC 2
293 #define SADB_AALG_SHA1HMAC 3
294 #define SADB_X_AALG_SHA2_256HMAC 5
295 #define SADB_X_AALG_SHA2_384HMAC 6
296 #define SADB_X_AALG_SHA2_512HMAC 7
297 #define SADB_X_AALG_RIPEMD160HMAC 8
298 #define SADB_X_AALG_AES_XCBC_MAC 9
299 #define SADB_X_AALG_NULL 251
300 #define SADB_AALG_MAX 251
303 #define SADB_EALG_NONE 0
304 #define SADB_EALG_DESCBC 2
305 #define SADB_EALG_3DESCBC 3
306 #define SADB_X_EALG_CASTCBC 6
307 #define SADB_X_EALG_BLOWFISHCBC 7
308 #define SADB_EALG_NULL 11
309 #define SADB_X_EALG_AESCBC 12
310 #define SADB_X_EALG_AESCTR 13
311 #define SADB_X_EALG_AES_CCM_ICV8 14
312 #define SADB_X_EALG_AES_CCM_ICV12 15
313 #define SADB_X_EALG_AES_CCM_ICV16 16
314 #define SADB_X_EALG_AES_GCM_ICV8 18
315 #define SADB_X_EALG_AES_GCM_ICV12 19
316 #define SADB_X_EALG_AES_GCM_ICV16 20
317 #define SADB_X_EALG_CAMELLIACBC 22
318 #define SADB_X_EALG_NULL_AES_GMAC 23
319 #define SADB_EALG_MAX 253
321 #define SADB_X_EALG_SERPENTCBC 252
322 #define SADB_X_EALG_TWOFISHCBC 253
325 #define SADB_X_CALG_NONE 0
326 #define SADB_X_CALG_OUI 1
327 #define SADB_X_CALG_DEFLATE 2
328 #define SADB_X_CALG_LZS 3
329 #define SADB_X_CALG_LZJH 4
330 #define SADB_X_CALG_MAX 4
333 #define SADB_EXT_RESERVED 0
334 #define SADB_EXT_SA 1
335 #define SADB_EXT_LIFETIME_CURRENT 2
336 #define SADB_EXT_LIFETIME_HARD 3
337 #define SADB_EXT_LIFETIME_SOFT 4
338 #define SADB_EXT_ADDRESS_SRC 5
339 #define SADB_EXT_ADDRESS_DST 6
340 #define SADB_EXT_ADDRESS_PROXY 7
341 #define SADB_EXT_KEY_AUTH 8
342 #define SADB_EXT_KEY_ENCRYPT 9
343 #define SADB_EXT_IDENTITY_SRC 10
344 #define SADB_EXT_IDENTITY_DST 11
345 #define SADB_EXT_SENSITIVITY 12
346 #define SADB_EXT_PROPOSAL 13
347 #define SADB_EXT_SUPPORTED_AUTH 14
348 #define SADB_EXT_SUPPORTED_ENCRYPT 15
349 #define SADB_EXT_SPIRANGE 16
350 #define SADB_X_EXT_KMPRIVATE 17
351 #define SADB_X_EXT_POLICY 18
352 #define SADB_X_EXT_SA2 19
354 #define SADB_X_EXT_NAT_T_TYPE 20
355 #define SADB_X_EXT_NAT_T_SPORT 21
356 #define SADB_X_EXT_NAT_T_DPORT 22
357 #define SADB_X_EXT_NAT_T_OA 23
358 #define SADB_X_EXT_SEC_CTX 24
360 #define SADB_X_EXT_KMADDRESS 25
361 #define SADB_EXT_MAX 25
364 #define SADB_IDENTTYPE_RESERVED 0
365 #define SADB_IDENTTYPE_PREFIX 1
366 #define SADB_IDENTTYPE_FQDN 2
367 #define SADB_IDENTTYPE_USERFQDN 3
368 #define SADB_IDENTTYPE_MAX 3