pfkeyv2.h (62587) | pfkeyv2.h (78064) |
---|---|
1/* $FreeBSD: head/sys/net/pfkeyv2.h 62587 2000-07-04 16:35:15Z itojun $ */ 2/* $KAME: pfkeyv2.h,v 1.17 2000/06/22 08:38:33 sakane Exp $ */ | 1/* $FreeBSD: head/sys/net/pfkeyv2.h 78064 2001-06-11 12:39:29Z ume $ */ 2/* $KAME: pfkeyv2.h,v 1.25 2001/03/12 08:34:06 itojun Exp $ */ |
3 4/* 5 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions 10 * are met: --- 57 unchanged lines hidden (view full) --- 68#define SADB_X_SPDUPDATE 13 69#define SADB_X_SPDADD 14 70#define SADB_X_SPDDELETE 15 /* by policy index */ 71#define SADB_X_SPDGET 16 72#define SADB_X_SPDACQUIRE 17 73#define SADB_X_SPDDUMP 18 74#define SADB_X_SPDFLUSH 19 75#define SADB_X_SPDSETIDX 20 | 3 4/* 5 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions 10 * are met: --- 57 unchanged lines hidden (view full) --- 68#define SADB_X_SPDUPDATE 13 69#define SADB_X_SPDADD 14 70#define SADB_X_SPDDELETE 15 /* by policy index */ 71#define SADB_X_SPDGET 16 72#define SADB_X_SPDACQUIRE 17 73#define SADB_X_SPDDUMP 18 74#define SADB_X_SPDFLUSH 19 75#define SADB_X_SPDSETIDX 20 |
76#define SADB_X_SPDEXPIRE 21 /* not yet */ | 76#define SADB_X_SPDEXPIRE 21 |
77#define SADB_X_SPDDELETE2 22 /* by policy id */ 78#define SADB_MAX 22 79 80struct sadb_msg { 81 u_int8_t sadb_msg_version; 82 u_int8_t sadb_msg_type; 83 u_int8_t sadb_msg_errno; 84 u_int8_t sadb_msg_satype; --- 208 unchanged lines hidden (view full) --- 293#define SADB_SASTATE_LARVAL 0 294#define SADB_SASTATE_MATURE 1 295#define SADB_SASTATE_DYING 2 296#define SADB_SASTATE_DEAD 3 297#define SADB_SASTATE_MAX 3 298 299#define SADB_SAFLAGS_PFS 1 300 | 77#define SADB_X_SPDDELETE2 22 /* by policy id */ 78#define SADB_MAX 22 79 80struct sadb_msg { 81 u_int8_t sadb_msg_version; 82 u_int8_t sadb_msg_type; 83 u_int8_t sadb_msg_errno; 84 u_int8_t sadb_msg_satype; --- 208 unchanged lines hidden (view full) --- 293#define SADB_SASTATE_LARVAL 0 294#define SADB_SASTATE_MATURE 1 295#define SADB_SASTATE_DYING 2 296#define SADB_SASTATE_DEAD 3 297#define SADB_SASTATE_MAX 3 298 299#define SADB_SAFLAGS_PFS 1 300 |
301#define SADB_AALG_NONE 0 302#define SADB_AALG_MD5HMAC 1 /* 2 */ 303#define SADB_AALG_SHA1HMAC 2 /* 3 */ 304#define SADB_AALG_MD5 3 /* Keyed MD5 */ 305#define SADB_AALG_SHA 4 /* Keyed SHA */ 306#define SADB_AALG_NULL 5 /* null authentication */ 307#define SADB_AALG_MAX 6 | 301/* RFC2367 numbers - meets RFC2407 */ 302#define SADB_AALG_NONE 0 303#define SADB_AALG_MD5HMAC 1 /*2*/ 304#define SADB_AALG_SHA1HMAC 2 /*3*/ 305#define SADB_AALG_MAX 8 306/* private allocations - based on RFC2407/IANA assignment */ 307#define SADB_X_AALG_SHA2_256 6 /*5*/ 308#define SADB_X_AALG_SHA2_384 7 /*6*/ 309#define SADB_X_AALG_SHA2_512 8 /*7*/ 310/* private allocations should use 249-255 (RFC2407) */ 311#define SADB_X_AALG_MD5 3 /*249*/ /* Keyed MD5 */ 312#define SADB_X_AALG_SHA 4 /*250*/ /* Keyed SHA */ 313#define SADB_X_AALG_NULL 5 /*251*/ /* null authentication */ |
308 | 314 |
309#define SADB_EALG_NONE 0 310#define SADB_EALG_DESCBC 1 /* 2 */ 311#define SADB_EALG_3DESCBC 2 /* 3 */ 312#define SADB_EALG_NULL 3 /* 11 */ 313#define SADB_EALG_BLOWFISHCBC 4 314#define SADB_EALG_CAST128CBC 5 315#define SADB_EALG_RC5CBC 6 316#define SADB_EALG_MAX 7 | 315/* RFC2367 numbers - meets RFC2407 */ 316#define SADB_EALG_NONE 0 317#define SADB_EALG_DESCBC 1 /*2*/ 318#define SADB_EALG_3DESCBC 2 /*3*/ 319#define SADB_EALG_NULL 3 /*11*/ 320#define SADB_EALG_MAX 12 321/* private allocations - based on RFC2407/IANA assignment */ 322#define SADB_X_EALG_CAST128CBC 5 /*6*/ 323#define SADB_X_EALG_BLOWFISHCBC 4 /*7*/ 324#define SADB_X_EALG_RIJNDAELCBC 12 325#define SADB_X_EALG_AES 12 326/* private allocations should use 249-255 (RFC2407) */ |
317 318#if 1 /*nonstandard */ 319#define SADB_X_CALG_NONE 0 320#define SADB_X_CALG_OUI 1 321#define SADB_X_CALG_DEFLATE 2 322#define SADB_X_CALG_LZS 3 323#define SADB_X_CALG_MAX 4 324#endif --- 58 unchanged lines hidden --- | 327 328#if 1 /*nonstandard */ 329#define SADB_X_CALG_NONE 0 330#define SADB_X_CALG_OUI 1 331#define SADB_X_CALG_DEFLATE 2 332#define SADB_X_CALG_LZS 3 333#define SADB_X_CALG_MAX 4 334#endif --- 58 unchanged lines hidden --- |