diff options
author | Herbert Xu <herbert@gondor.hengli.com.au> | 2010-11-26 20:58:23 +0800 |
---|---|---|
committer | Miloslav Trmač <mitr@redhat.com> | 2010-11-28 04:54:27 +0100 |
commit | 42063e4df44e5bbef04f79c2e35216029f215b4c (patch) | |
tree | cac9ea08e059a5ac428fdd59a62ad776b2a052d6 | |
parent | 7273c1c64b2d4cb0ddfa7682ec7ab71dfe906398 (diff) | |
download | kernel-crypto-42063e4df44e5bbef04f79c2e35216029f215b4c.tar.gz kernel-crypto-42063e4df44e5bbef04f79c2e35216029f215b4c.tar.xz kernel-crypto-42063e4df44e5bbef04f79c2e35216029f215b4c.zip |
net - Add AF_ALG macros
net - Add AF_ALG macros
This patch adds the socket family/level macros for the yet-to-be-born
AF_ALG family. The AF_ALG family provides the user-space interface
for the kernel crypto API.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Acked-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | include/linux/socket.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/socket.h b/include/linux/socket.h index 032a19eb61b..c2aa02d876a 100644 --- a/include/linux/socket.h +++ b/include/linux/socket.h @@ -190,7 +190,8 @@ struct ucred { #define AF_PHONET 35 /* Phonet sockets */ #define AF_IEEE802154 36 /* IEEE802154 sockets */ #define AF_CAIF 37 /* CAIF sockets */ -#define AF_MAX 38 /* For now.. */ +#define AF_ALG 38 /* Algorithm sockets */ +#define AF_MAX 39 /* For now.. */ /* Protocol families, same as address families. */ #define PF_UNSPEC AF_UNSPEC @@ -231,6 +232,7 @@ struct ucred { #define PF_PHONET AF_PHONET #define PF_IEEE802154 AF_IEEE802154 #define PF_CAIF AF_CAIF +#define PF_ALG AF_ALG #define PF_MAX AF_MAX /* Maximum queue length specifiable by listen. */ @@ -304,6 +306,7 @@ struct ucred { #define SOL_RDS 276 #define SOL_IUCV 277 #define SOL_CAIF 278 +#define SOL_ALG 279 /* IPX options */ #define IPX_TYPE 1 |