hc
2023-12-11 1f93a7dfd1f8d5ff7a5c53246c7534fe2332d6f4
kernel/include/uapi/linux/tipc.h
....@@ -190,6 +190,8 @@
190190 #define TIPC_MCAST_REPLICAST 134 /* Default: TIPC selects. No arg */
191191 #define TIPC_GROUP_JOIN 135 /* Takes struct tipc_group_req* */
192192 #define TIPC_GROUP_LEAVE 136 /* No argument */
193
+#define TIPC_SOCK_RECVQ_USED 137 /* Default: none (read only) */
194
+#define TIPC_NODELAY 138 /* Default: false */
193195
194196 /*
195197 * Flag values
....@@ -231,6 +233,29 @@
231233 char node_id[TIPC_NODEID_LEN];
232234 };
233235
236
+/*
237
+ * TIPC Crypto, AEAD
238
+ */
239
+#define TIPC_AEAD_ALG_NAME (32)
240
+
241
+struct tipc_aead_key {
242
+ char alg_name[TIPC_AEAD_ALG_NAME];
243
+ unsigned int keylen; /* in bytes */
244
+ char key[];
245
+};
246
+
247
+#define TIPC_AEAD_KEYLEN_MIN (16 + 4)
248
+#define TIPC_AEAD_KEYLEN_MAX (32 + 4)
249
+#define TIPC_AEAD_KEY_SIZE_MAX (sizeof(struct tipc_aead_key) + \
250
+ TIPC_AEAD_KEYLEN_MAX)
251
+
252
+static inline int tipc_aead_key_size(struct tipc_aead_key *key)
253
+{
254
+ return sizeof(*key) + key->keylen;
255
+}
256
+
257
+#define TIPC_REKEYING_NOW (~0U)
258
+
234259 /* The macros and functions below are deprecated:
235260 */
236261