Lines Matching full:payload

17  *    <--- nlmsg_total_size(payload)  --->
18 * <-- nlmsg_msg_size(payload) ->
20 * | nlmsghdr | Pad | Payload | Pad | nlmsghdr
25 * Payload Format:
53 * nlmsg_msg_size(payload) length of message w/o padding
54 * nlmsg_total_size(payload) length of message w/ padding
55 * nlmsg_padlen(payload) length of padding at tail
57 * Message Payload Access:
58 * nlmsg_data(nlh) head of message payload
59 * nlmsg_len(nlh) length of message payload
80 * <------- nla_total_size(payload) ------->
81 * <---- nla_attr_size(payload) ----->
83 * | Header | Pad | Payload | Pad | Header
123 * nla_attr_size(payload) length of attribute w/o padding
124 * nla_total_size(payload) length of attribute w/ padding
125 * nla_padlen(payload) length of padding
127 * Attribute Payload Access:
128 * nla_data(nla) head of attribute payload
129 * nla_len(nla) length of attribute payload
131 * Attribute Payload Access for Basic Types:
132 * nla_get_uint(nla) get payload for a uint attribute
133 * nla_get_sint(nla) get payload for a sint attribute
134 * nla_get_u8(nla) get payload for a u8 attribute
135 * nla_get_u16(nla) get payload for a u16 attribute
136 * nla_get_u32(nla) get payload for a u32 attribute
137 * nla_get_u64(nla) get payload for a u64 attribute
138 * nla_get_s8(nla) get payload for a s8 attribute
139 * nla_get_s16(nla) get payload for a s16 attribute
140 * nla_get_s32(nla) get payload for a s32 attribute
141 * nla_get_s64(nla) get payload for a s64 attribute
143 * nla_get_msecs(nla) get payload for a msecs attribute
227 * @len: Type specific length of payload
236 * NLA_BINARY Maximum length of attribute payload
254 * All other Minimum length of attribute payload
570 * @payload: length of message payload
572 static inline int nlmsg_msg_size(int payload) in nlmsg_msg_size() argument
574 return NLMSG_HDRLEN + payload; in nlmsg_msg_size()
579 * @payload: length of message payload
581 static inline int nlmsg_total_size(int payload) in nlmsg_total_size() argument
583 return NLMSG_ALIGN(nlmsg_msg_size(payload)); in nlmsg_total_size()
588 * @payload: length of message payload
590 static inline int nlmsg_padlen(int payload) in nlmsg_padlen() argument
592 return nlmsg_total_size(payload) - nlmsg_msg_size(payload); in nlmsg_padlen()
596 * nlmsg_data - head of message payload
605 * nlmsg_len - length of message payload
952 * @payload: length of message payload
956 * the message header and payload.
959 int type, int payload, int flags) in nlmsg_put() argument
961 if (unlikely(skb_tailroom(skb) < nlmsg_total_size(payload))) in nlmsg_put()
964 return __nlmsg_put(skb, portid, seq, type, payload, flags); in nlmsg_put()
970 * @size: length of message payload
975 * the extra payload.
993 * @payload: length of message payload
997 * the message header and payload.
1001 int type, int payload, in nlmsg_put_answer() argument
1005 type, payload, flags); in nlmsg_put_answer()
1010 * @payload: size of the message payload
1013 * Use NLMSG_DEFAULT_SIZE if the size of the payload isn't known
1016 static inline struct sk_buff *nlmsg_new(size_t payload, gfp_t flags) in nlmsg_new() argument
1018 return alloc_skb(nlmsg_total_size(payload), flags); in nlmsg_new()
1024 * @payload: size of the message payload
1030 static inline struct sk_buff *nlmsg_new_large(size_t payload) in nlmsg_new_large() argument
1032 return netlink_alloc_large_skb(nlmsg_total_size(payload), 0); in nlmsg_new_large()
1210 * @payload: length of payload
1212 static inline int nla_attr_size(int payload) in nla_attr_size() argument
1214 return NLA_HDRLEN + payload; in nla_attr_size()
1219 * @payload: length of payload
1221 static inline int nla_total_size(int payload) in nla_total_size() argument
1223 return NLA_ALIGN(nla_attr_size(payload)); in nla_total_size()
1228 * @payload: length of payload
1230 static inline int nla_padlen(int payload) in nla_padlen() argument
1232 return nla_total_size(payload) - nla_attr_size(payload); in nla_padlen()
1245 * nla_data - head of payload
1254 * nla_len - length of payload
1692 * nla_get_u32 - return payload of u32 attribute
1701 * nla_get_u32_default - return payload of u32 attribute or default
1715 * nla_get_be32 - return payload of __be32 attribute
1724 * nla_get_be32_default - return payload of be32 attribute or default
1739 * nla_get_le32 - return payload of __le32 attribute
1748 * nla_get_le32_default - return payload of le32 attribute or default
1763 * nla_get_u16 - return payload of u16 attribute
1772 * nla_get_u16_default - return payload of u16 attribute or default
1786 * nla_get_be16 - return payload of __be16 attribute
1795 * nla_get_be16_default - return payload of be16 attribute or default
1810 * nla_get_le16 - return payload of __le16 attribute
1819 * nla_get_le16_default - return payload of le16 attribute or default
1834 * nla_get_u8 - return payload of u8 attribute
1843 * nla_get_u8_default - return payload of u8 attribute or default
1857 * nla_get_u64 - return payload of u64 attribute
1870 * nla_get_u64_default - return payload of u64 attribute or default
1884 * nla_get_uint - return payload of uint attribute
1895 * nla_get_uint_default - return payload of uint attribute or default
1909 * nla_get_be64 - return payload of __be64 attribute
1922 * nla_get_be64_default - return payload of be64 attribute or default
1937 * nla_get_le64 - return payload of __le64 attribute
1946 * nla_get_le64_default - return payload of le64 attribute or default
1961 * nla_get_s32 - return payload of s32 attribute
1970 * nla_get_s32_default - return payload of s32 attribute or default
1984 * nla_get_s16 - return payload of s16 attribute
1993 * nla_get_s16_default - return payload of s16 attribute or default
2007 * nla_get_s8 - return payload of s8 attribute
2016 * nla_get_s8_default - return payload of s8 attribute or default
2030 * nla_get_s64 - return payload of s64 attribute
2043 * nla_get_s64_default - return payload of s64 attribute or default
2057 * nla_get_sint - return payload of uint attribute
2068 * nla_get_sint_default - return payload of sint attribute or default
2082 * nla_get_flag - return payload of flag attribute
2091 * nla_get_msecs - return payload of msecs attribute
2104 * nla_get_msecs_default - return payload of msecs attribute or default
2119 * nla_get_in_addr - return payload of IPv4 address attribute
2128 * nla_get_in_addr_default - return payload of be32 attribute or default
2143 * nla_get_in6_addr - return payload of IPv6 address attribute
2155 * nla_get_bitfield32 - return payload of 32 bitfield attribute
2328 * @payload: length of payload
2330 static inline int nla_total_size_64bit(int payload) in nla_total_size_64bit() argument
2332 return NLA_ALIGN(nla_attr_size(payload)) in nla_total_size_64bit()