Lines Matching +full:sub +full:- +full:message
1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
17 #define NETLINK_ISCSI 8 /* Open-iSCSI */
45 * struct nlmsghdr - fixed format metadata header of Netlink messages
46 * @nlmsg_len: Length of message including header
47 * @nlmsg_type: Message content type
62 #define NLM_F_REQUEST 0x01 /* It is request message. */
63 #define NLM_F_MULTI 0x02 /* Multipart message, terminated by NLMSG_DONE */
85 /* Flags for ACK message */
99 #define NLMSG_ALIGN(len) ( ((len)+NLMSG_ALIGNTO-1) & ~(NLMSG_ALIGNTO-1) )
104 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \
106 NLMSG_ALIGN((nlh)->nlmsg_len)))
108 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \
109 (nlh)->nlmsg_len <= (len))
110 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len)))
123 * followed by the message contents unless NETLINK_CAP_ACK was set
125 * message length is aligned with NLMSG_ALIGN()
134 * enum nlmsgerr_attrs - nlmsgerr attributes
136 * @NLMSGERR_ATTR_MSG: error message string (string)
138 * message, counting from the beginning of the header (u32)
140 * be used - in the success case - to identify a created
145 * missing at the message level
160 NLMSGERR_ATTR_MAX = __NLMSGERR_ATTR_MAX - 1
221 * <------- NLA_HDRLEN ------> <-- NLA_ALIGN(payload)-->
222 * +---------------------+- - -+- - - - - - - - - -+- - -+
225 * +---------------------+- - -+- - - - - - - - - -+- - -+
226 * <-------------- nlattr->nla_len -------------->
236 * +---+---+-------------------------------+
238 * +---+---+-------------------------------+
249 #define NLA_ALIGN(len) (((len) + NLA_ALIGNTO - 1) & ~(NLA_ALIGNTO - 1))
271 * policy descriptions - it's specific to each family how this is used
277 * enum netlink_attribute_type - type of an attribute
280 * @NL_ATTR_TYPE_U8: 8-bit unsigned attribute
281 * @NL_ATTR_TYPE_U16: 16-bit unsigned attribute
282 * @NL_ATTR_TYPE_U32: 32-bit unsigned attribute
283 * @NL_ATTR_TYPE_U64: 64-bit unsigned attribute
284 * @NL_ATTR_TYPE_S8: 8-bit signed attribute
285 * @NL_ATTR_TYPE_S16: 16-bit signed attribute
286 * @NL_ATTR_TYPE_S32: 32-bit signed attribute
287 * @NL_ATTR_TYPE_S64: 64-bit signed attribute
290 * @NL_ATTR_TYPE_NUL_STRING: NUL-terminated string,
293 * consists of sub-attributes. The nested policy and maxtype
296 * attribute contains sub-attributes whose type is irrelevant
301 * @NL_ATTR_TYPE_SINT: 32-bit or 64-bit signed attribute, aligned to 4B
302 * @NL_ATTR_TYPE_UINT: 32-bit or 64-bit unsigned attribute, aligned to 4B
333 * enum netlink_policy_type_attr - policy type attributes
349 * @NL_POLICY_TYPE_ATTR_POLICY_IDX: sub policy for nested and
351 * @NL_POLICY_TYPE_ATTR_POLICY_MAXTYPE: maximum sub policy
358 * @NL_POLICY_TYPE_ATTR_PAD: pad attribute for 64-bit alignment
380 NL_POLICY_TYPE_ATTR_MAX = __NL_POLICY_TYPE_ATTR_MAX - 1