diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2010-10-19 09:04:42 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2010-11-19 02:39:46 -0500 |
commit | c2f9bff5ace07fbea03a53c6c3253f6c3a81e9f9 (patch) | |
tree | dd5dcc487f588730be77cb2915a5d9f5e2905aaa /include/linux/socket.h | |
parent | 69435b94d01f49197b287eb5902fb8c5cee8fe1d (diff) |
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>
Diffstat (limited to 'include/linux/socket.h')
-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 5146b50202ce..ebc081b18da6 100644 --- a/include/linux/socket.h +++ b/include/linux/socket.h | |||
@@ -193,7 +193,8 @@ struct ucred { | |||
193 | #define AF_PHONET 35 /* Phonet sockets */ | 193 | #define AF_PHONET 35 /* Phonet sockets */ |
194 | #define AF_IEEE802154 36 /* IEEE802154 sockets */ | 194 | #define AF_IEEE802154 36 /* IEEE802154 sockets */ |
195 | #define AF_CAIF 37 /* CAIF sockets */ | 195 | #define AF_CAIF 37 /* CAIF sockets */ |
196 | #define AF_MAX 38 /* For now.. */ | 196 | #define AF_ALG 38 /* Algorithm sockets */ |
197 | #define AF_MAX 39 /* For now.. */ | ||
197 | 198 | ||
198 | /* Protocol families, same as address families. */ | 199 | /* Protocol families, same as address families. */ |
199 | #define PF_UNSPEC AF_UNSPEC | 200 | #define PF_UNSPEC AF_UNSPEC |
@@ -234,6 +235,7 @@ struct ucred { | |||
234 | #define PF_PHONET AF_PHONET | 235 | #define PF_PHONET AF_PHONET |
235 | #define PF_IEEE802154 AF_IEEE802154 | 236 | #define PF_IEEE802154 AF_IEEE802154 |
236 | #define PF_CAIF AF_CAIF | 237 | #define PF_CAIF AF_CAIF |
238 | #define PF_ALG AF_ALG | ||
237 | #define PF_MAX AF_MAX | 239 | #define PF_MAX AF_MAX |
238 | 240 | ||
239 | /* Maximum queue length specifiable by listen. */ | 241 | /* Maximum queue length specifiable by listen. */ |
@@ -307,6 +309,7 @@ struct ucred { | |||
307 | #define SOL_RDS 276 | 309 | #define SOL_RDS 276 |
308 | #define SOL_IUCV 277 | 310 | #define SOL_IUCV 277 |
309 | #define SOL_CAIF 278 | 311 | #define SOL_CAIF 278 |
312 | #define SOL_ALG 279 | ||
310 | 313 | ||
311 | /* IPX options */ | 314 | /* IPX options */ |
312 | #define IPX_TYPE 1 | 315 | #define IPX_TYPE 1 |