Home
last modified time | relevance | path

Searched refs:NLA_ALIGN (Results 1 – 13 of 13) sorted by relevance

/aosp12/system/connectivity/wificond/net/
H A Dnl80211_attribute.cpp44 data_.resize(NLA_HDRLEN + NLA_ALIGN(payload_length), 0); in InitHeaderAndResize()
60 return NLA_ALIGN(header->nla_len) == data_.size(); in IsValid()
78 if (ptr + NLA_ALIGN(header->nla_len) > end_ptr) { in GetAttributeImpl()
84 *attr_end = const_cast<uint8_t*>(ptr + NLA_ALIGN(header->nla_len)); in GetAttributeImpl()
88 ptr += NLA_ALIGN(header->nla_len); in GetAttributeImpl()
123 data_.resize(NLA_ALIGN(total_len_without_padding), 0); in Merge()
233 if (ptr + NLA_ALIGN(header->nla_len) > end_ptr) { in GetListOfNestedAttributes()
239 ptr + NLA_ALIGN(header->nla_len)))); in GetListOfNestedAttributes()
243 ptr += NLA_ALIGN(header->nla_len); in GetListOfNestedAttributes()
255 if (ptr + NLA_ALIGN(header->nla_len) > end_ptr) { in DebugLog()
[all …]
H A Dnl80211_attribute.h95 if (NLA_ALIGN(sizeof(T)) + NLA_HDRLEN != data_.size() || in IsValid()
204 if (ptr + NLA_ALIGN(header->nla_len) > end_ptr) { in GetListOfAttributeValues()
210 ptr + NLA_ALIGN(header->nla_len))); in GetListOfAttributeValues()
215 ptr += NLA_ALIGN(header->nla_len); in GetListOfAttributeValues()
242 if (ptr + NLA_ALIGN(header->nla_len) > end_ptr) { in GetListOfAttributes()
248 ptr + NLA_ALIGN(header->nla_len))); in GetListOfAttributes()
253 ptr += NLA_ALIGN(header->nla_len); in GetListOfAttributes()
H A Dnl80211_packet.cpp224 if (ptr + NLA_ALIGN(header->nla_len) > end_ptr || in GetAllAttributes()
232 ptr += NLA_ALIGN(header->nla_len); in GetAllAttributes()
242 if (ptr + NLA_ALIGN(header->nla_len) > end_ptr) { in DebugLog()
252 ptr += NLA_ALIGN(header->nla_len); in DebugLog()
/aosp12/hardware/qcom/msm8994/kernel-headers/linux/
H A Dnetlink.h167 #define NLA_ALIGN(len) (((len) + NLA_ALIGNTO - 1) & ~(NLA_ALIGNTO - 1)) macro
169 #define NLA_HDRLEN ((int) NLA_ALIGN(sizeof(struct nlattr)))
/aosp12/hardware/qcom/msm8994/original-kernel-headers/linux/
H A Dnetlink.h180 #define NLA_ALIGN(len) (((len) + NLA_ALIGNTO - 1) & ~(NLA_ALIGNTO - 1)) macro
181 #define NLA_HDRLEN ((int) NLA_ALIGN(sizeof(struct nlattr)))
/aosp12/hardware/qcom/msm8996/kernel-headers/linux/
H A Dnetlink.h167 #define NLA_ALIGN(len) (((len) + NLA_ALIGNTO - 1) & ~(NLA_ALIGNTO - 1)) macro
169 #define NLA_HDRLEN ((int) NLA_ALIGN(sizeof(struct nlattr)))
/aosp12/hardware/qcom/msm8996/original-kernel-headers/linux/
H A Dnetlink.h180 #define NLA_ALIGN(len) (((len) + NLA_ALIGNTO - 1) & ~(NLA_ALIGNTO - 1)) macro
181 #define NLA_HDRLEN ((int) NLA_ALIGN(sizeof(struct nlattr)))
/aosp12/bionic/libc/kernel/uapi/linux/
H A Dnetlink.h157 #define NLA_ALIGN(len) (((len) + NLA_ALIGNTO - 1) & ~(NLA_ALIGNTO - 1)) macro
158 #define NLA_HDRLEN ((int) NLA_ALIGN(sizeof(struct nlattr)))
/aosp12/system/netd/server/
H A DXfrmController.cpp1017 iov[CRYPT_PAD].iov_len = NLA_ALIGN(len) - len; in updateSecurityAssociation()
1020 iov[AUTH_PAD].iov_len = NLA_ALIGN(len) - len; in updateSecurityAssociation()
1023 iov[AEAD_PAD].iov_len = NLA_ALIGN(len) - len; in updateSecurityAssociation()
1026 iov[MARK_PAD].iov_len = NLA_ALIGN(len) - len; in updateSecurityAssociation()
1032 iov[ENCAP_PAD].iov_len = NLA_ALIGN(len) - len; in updateSecurityAssociation()
1035 iov[INTF_ID_PAD].iov_len = NLA_ALIGN(len) - len; in updateSecurityAssociation()
1169 iov[MARK_PAD].iov_len = NLA_ALIGN(len) - len; in deleteSecurityAssociation()
1172 iov[INTF_ID_PAD].iov_len = NLA_ALIGN(len) - len; in deleteSecurityAssociation()
1283 iov[MARK_PAD].iov_len = NLA_ALIGN(len) - len; in updateTunnelModeSecurityPolicy()
1286 iov[INTF_ID_PAD].iov_len = NLA_ALIGN(len) - len; in updateTunnelModeSecurityPolicy()
[all …]
H A DXfrmControllerTest.cpp330 NLA_ALIGN(offsetof(XfrmController::nlattr_algo_crypt, key) + KEY_LENGTH) + in testIpSecAddSecurityAssociation()
331 NLA_ALIGN(offsetof(XfrmController::nlattr_algo_auth, key) + KEY_LENGTH); in testIpSecAddSecurityAssociation()
339 expectedMsgLength += NLA_ALIGN(sizeof(XfrmController::nlattr_xfrm_output_mark)); in testIpSecAddSecurityAssociation()
389 Slice attr_buf = drop(nlMsgSlice, NLA_ALIGN(sizeof(xfrm_usersa_info))); in testIpSecAddSecurityAssociation()
677 Slice attr_buf = drop(nlMsgSlice, NLA_ALIGN(sizeof(xfrm_userpolicy_info))); in TEST_P()
783 nlMsgSlice = drop(nlMsgSlice, NLA_ALIGN(sizeof(xfrm_userpolicy_id))); in TEST_P()
/aosp12/system/core/libsysutils/src/
H A DNetlinkEvent.cpp715 hdr += NLA_ALIGN(nla->nla_len); in findNlAttr()
716 left -= NLA_ALIGN(nla->nla_len); in findNlAttr()
/aosp12/system/connectivity/wificond/tests/
H A Dscan_utils_unittest.cpp68 data.resize(NLMSG_HDRLEN + NLA_ALIGN(sizeof(int)), 0); in CreateControlMessageError()
H A Dnetlink_utils_unittest.cpp97 data.resize(NLMSG_HDRLEN + NLA_ALIGN(sizeof(int)), 0); in CreateControlMessageError()