Skip to content

Commit c2f9bff

Browse files
committed
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 <[email protected]> Acked-by: David S. Miller <[email protected]>
1 parent 69435b9 commit c2f9bff

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

include/linux/socket.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,8 @@ struct ucred {
193193
#define AF_PHONET 35 /* Phonet sockets */
194194
#define AF_IEEE802154 36 /* IEEE802154 sockets */
195195
#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.. */
197198

198199
/* Protocol families, same as address families. */
199200
#define PF_UNSPEC AF_UNSPEC
@@ -234,6 +235,7 @@ struct ucred {
234235
#define PF_PHONET AF_PHONET
235236
#define PF_IEEE802154 AF_IEEE802154
236237
#define PF_CAIF AF_CAIF
238+
#define PF_ALG AF_ALG
237239
#define PF_MAX AF_MAX
238240

239241
/* Maximum queue length specifiable by listen. */
@@ -307,6 +309,7 @@ struct ucred {
307309
#define SOL_RDS 276
308310
#define SOL_IUCV 277
309311
#define SOL_CAIF 278
312+
#define SOL_ALG 279
310313

311314
/* IPX options */
312315
#define IPX_TYPE 1

0 commit comments

Comments
 (0)