Home
last modified time | relevance | path

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

/external/strace/
Dnetlink.h54 #ifndef NLA_ALIGN
55 # define NLA_ALIGN(len) (((len) + 3) & ~3) macro
59 #define NLA_HDRLEN ((unsigned int) NLA_ALIGN(sizeof(struct nlattr)))
Dnlattr.c150 const unsigned int nla_len = NLA_ALIGN(nla.nla_len); in decode_nlattr()
DChangeLog13633 netlink_sock_diag: replace NLA_ALIGN with NLMSG_ALIGN.
13634 In several netlink_sock_diag parsers NLA_ALIGN was used instead of
13642 NLA_ALIGN with NLMSG_ALIGN.
/external/strace/tests-m32/
Dnlattr_ifla_linkinfo.c86 pos += NLA_ALIGN(type_len); \
114 char *buf = tail_alloc(NLA_ALIGN(tuntype_len) \
124 pos += NLA_ALIGN(tuntype_len); \
197 size_t buflen = NLA_ALIGN(tuntype_len) + NLA_HDRLEN; \
201 attrsz += NLA_HDRLEN + NLA_ALIGN(attrs[i].sz); \
214 pos += NLA_ALIGN(tuntype_len); \
234 pos += NLA_ALIGN(attrs[i].sz); \
/external/strace/tests/
Dnlattr_ifla_linkinfo.c86 pos += NLA_ALIGN(type_len); \
114 char *buf = tail_alloc(NLA_ALIGN(tuntype_len) \
124 pos += NLA_ALIGN(tuntype_len); \
197 size_t buflen = NLA_ALIGN(tuntype_len) + NLA_HDRLEN; \
201 attrsz += NLA_HDRLEN + NLA_ALIGN(attrs[i].sz); \
214 pos += NLA_ALIGN(tuntype_len); \
234 pos += NLA_ALIGN(attrs[i].sz); \
/external/strace/tests-mx32/
Dnlattr_ifla_linkinfo.c86 pos += NLA_ALIGN(type_len); \
114 char *buf = tail_alloc(NLA_ALIGN(tuntype_len) \
124 pos += NLA_ALIGN(tuntype_len); \
197 size_t buflen = NLA_ALIGN(tuntype_len) + NLA_HDRLEN; \
201 attrsz += NLA_HDRLEN + NLA_ALIGN(attrs[i].sz); \
214 pos += NLA_ALIGN(tuntype_len); \
234 pos += NLA_ALIGN(attrs[i].sz); \
/external/libnl/include/netlink/
Dnetlink-kernel.h281 #define NLA_ALIGN(len) (((len) + NLA_ALIGNTO - 1) & ~(NLA_ALIGNTO - 1))
288 #define NLA_HDRLEN ((int) NLA_ALIGN(sizeof(struct nlattr)))
/external/libnl/include/linux-private/linux/
Dnetlink.h146 #define NLA_ALIGN(len) (((len) + NLA_ALIGNTO - 1) & ~(NLA_ALIGNTO - 1)) macro
147 #define NLA_HDRLEN ((int) NLA_ALIGN(sizeof(struct nlattr)))
/external/kernel-headers/original/uapi/linux/
Dnetlink.h231 #define NLA_ALIGN(len) (((len) + NLA_ALIGNTO - 1) & ~(NLA_ALIGNTO - 1)) macro
232 #define NLA_HDRLEN ((int) NLA_ALIGN(sizeof(struct nlattr)))
/external/iproute2/include/uapi/linux/
Dnetlink.h226 #define NLA_ALIGN(len) (((len) + NLA_ALIGNTO - 1) & ~(NLA_ALIGNTO - 1)) macro
227 #define NLA_HDRLEN ((int) NLA_ALIGN(sizeof(struct nlattr)))
/external/ltp/testcases/kernel/controllers/cgroup/
Dcgroup_regression_getdelays.c188 na = (struct nlattr *)((char *)na + NLA_ALIGN(na->nla_len)); in get_family_id()
438 len += NLA_ALIGN(na->nla_len); in main()
497 len2 += NLA_ALIGN(na->nla_len); in main()
/external/libnl/lib/
Dattr.c75 return NLA_ALIGN(nla_attr_size(payload)); in nla_total_size()
173 int totlen = NLA_ALIGN(nla->nla_len); in nla_next()
/external/libnl/lib/route/cls/
Dematch.c410 data = nla_data(a) + NLA_ALIGN(sizeof(*hdr)); in rtnl_ematch_parse_attr()
411 len = nla_len(a) - NLA_ALIGN(sizeof(*hdr)); in rtnl_ematch_parse_attr()
/external/libnl/lib/netfilter/
Dqueue_msg.c287 iov[2].iov_len = NLA_ALIGN(payload_len); in nfnl_queue_msg_send_verdict_payload()
/external/bcc/src/cc/
Dlibbpf.c1302 req.nh.nlmsg_len += NLA_ALIGN(nla->nla_len); in bpf_attach_xdp()
/external/libnl/doc/
Dcore.txt1671 <---- NLA_HDRLEN -----> <--- NLA_ALIGN(len) ---> <---- NLA_HDRLEN ---