Home
last modified time | relevance | path

Searched refs:NLA_HDRLEN (Results 1 – 25 of 123) sorted by relevance

12345

/external/libnl/tests/
Dcheck-attr.c18 fail_if(nla_attr_size(0) != NLA_HDRLEN, in START_TEST()
20 fail_if(nla_attr_size(1) != NLA_HDRLEN + 1, in START_TEST()
22 fail_if(nla_attr_size(2) != NLA_HDRLEN + 2, in START_TEST()
24 fail_if(nla_attr_size(3) != NLA_HDRLEN + 3, in START_TEST()
26 fail_if(nla_attr_size(4) != NLA_HDRLEN + 4, in START_TEST()
29 fail_if(nla_total_size(1) != NLA_HDRLEN + 4, in START_TEST()
31 fail_if(nla_total_size(2) != NLA_HDRLEN + 4, in START_TEST()
33 fail_if(nla_total_size(3) != NLA_HDRLEN + 4, in START_TEST()
35 fail_if(nla_total_size(4) != NLA_HDRLEN + 4, in START_TEST()
/external/strace/tests/
Dnlattr_ifla_linkinfo.c80 .nla_len = NLA_HDRLEN + (objsz_), \
93 hdrlen + NLA_HDRLEN, \
101 (objsz_) + NLA_HDRLEN, \
115 + NLA_HDRLEN + (objsz_)); \
119 .nla_len = NLA_HDRLEN + (objsz_), \
131 (nlh0_) - NLA_HDRLEN, \
132 hdrlen + NLA_HDRLEN, \
141 (objsz_) + NLA_HDRLEN, \
148 TEST_NLATTR_EX_((fd_), (nlh0_) - NLA_HDRLEN, \
149 hdrlen + NLA_HDRLEN, \
[all …]
Dnlattr.c122 msg_len = NLMSG_SPACE(sizeof(msg->udm)) + NLA_HDRLEN + 4; in test_nlattr()
127 .nla_len = NLA_HDRLEN + 4, in test_nlattr()
143 msg_len = NLMSG_SPACE(sizeof(msg->udm)) + NLA_HDRLEN + 2; in test_nlattr()
148 .nla_len = NLA_HDRLEN, in test_nlattr()
159 fd, msg_len, NLA_HDRLEN, msg_len, sprintrc(rc)); in test_nlattr()
162 msg_len = NLMSG_SPACE(sizeof(msg->udm)) + NLA_HDRLEN * 2; in test_nlattr()
167 .nla_len = NLA_HDRLEN, in test_nlattr()
177 fd, msg_len, NLA_HDRLEN, nla + 1, msg_len, sprintrc(rc)); in test_nlattr()
180 msg_len = NLMSG_SPACE(sizeof(msg->udm)) + NLA_HDRLEN * 2; in test_nlattr()
185 .nla_len = NLA_HDRLEN, in test_nlattr()
[all …]
Dtest_nlattr.h67 (nlh0_) - (NLA_HDRLEN + (slen_)); \
71 NLA_HDRLEN + (nla_data_len_); \
73 NLMSG_SPACE(hdrlen_) + NLA_HDRLEN + (nla_total_len_); \
234 TEST_NLATTR_((fd_), (nlh0_) - NLA_HDRLEN * depth_, \
235 (hdrlen_) + NLA_HDRLEN * depth_, \
244 TEST_NLATTR_((fd_), (nlh0_) - NLA_HDRLEN * depth_, \
245 (hdrlen_) + NLA_HDRLEN * depth_, \
255 TEST_NLATTR_((fd_), (nlh0_) - NLA_HDRLEN * depth_, \
256 (hdrlen_) + NLA_HDRLEN * depth_, \
297 TEST_NLATTR_((fd_), (nlh0_) - NLA_HDRLEN * depth_, \
[all …]
Dnlattr_mdba_mdb_entry.c76 len -= NLA_HDRLEN; in init_br_port_msg()
92 msg_len - NLMSG_SPACE(hdrlen) - NLA_HDRLEN); in print_br_port_msg()
102 void *nlh0 = midtail_alloc(NLMSG_SPACE(hdrlen), NLA_HDRLEN + 4 in main()
104 - 4 + NLA_HDRLEN * 2 + sizeof(struct nlattr) in main()
115 TEST_NLATTR_(fd, nlh0 - NLA_HDRLEN * 2, hdrlen + NLA_HDRLEN * 2, in main()
161 TEST_NLATTR(fd, nlh0 - NLA_HDRLEN * 2, hdrlen + NLA_HDRLEN * 2, in main()
Dnlattr_mdba_router_port.c93 .nla_len = NLA_HDRLEN + sizeof(type), in main()
96 char buf[NLMSG_ALIGN(ifindex) + NLA_HDRLEN + sizeof(type)]; in main()
101 NLA_HDRLEN + sizeof(buf)); in main()
113 memcpy(buf + NLMSG_ALIGN(ifindex) + NLA_HDRLEN, &type, sizeof(type)); in main()
114 TEST_NLATTR(fd, nlh0 - NLA_HDRLEN, hdrlen + NLA_HDRLEN, in main()
Dnlattr_ifla_af_spec.c76 - NLA_HDRLEN, \
86 msg_len - NLMSG_SPACE(hdrlen) - NLA_HDRLEN); \
175 void *nlh0 = midtail_alloc(NLMSG_SPACE(hdrlen), 3 * NLA_HDRLEN + 256); in main()
Dnlattr_ifla_port.c56 void *nlh0 = midtail_alloc(NLMSG_SPACE(hdrlen), 2 * NLA_HDRLEN + 8); in main()
/external/strace/tests-m32/
Dnlattr_ifla_linkinfo.c80 .nla_len = NLA_HDRLEN + (objsz_), \
93 hdrlen + NLA_HDRLEN, \
101 (objsz_) + NLA_HDRLEN, \
115 + NLA_HDRLEN + (objsz_)); \
119 .nla_len = NLA_HDRLEN + (objsz_), \
131 (nlh0_) - NLA_HDRLEN, \
132 hdrlen + NLA_HDRLEN, \
141 (objsz_) + NLA_HDRLEN, \
148 TEST_NLATTR_EX_((fd_), (nlh0_) - NLA_HDRLEN, \
149 hdrlen + NLA_HDRLEN, \
[all …]
Dnlattr.c122 msg_len = NLMSG_SPACE(sizeof(msg->udm)) + NLA_HDRLEN + 4; in test_nlattr()
127 .nla_len = NLA_HDRLEN + 4, in test_nlattr()
143 msg_len = NLMSG_SPACE(sizeof(msg->udm)) + NLA_HDRLEN + 2; in test_nlattr()
148 .nla_len = NLA_HDRLEN, in test_nlattr()
159 fd, msg_len, NLA_HDRLEN, msg_len, sprintrc(rc)); in test_nlattr()
162 msg_len = NLMSG_SPACE(sizeof(msg->udm)) + NLA_HDRLEN * 2; in test_nlattr()
167 .nla_len = NLA_HDRLEN, in test_nlattr()
177 fd, msg_len, NLA_HDRLEN, nla + 1, msg_len, sprintrc(rc)); in test_nlattr()
180 msg_len = NLMSG_SPACE(sizeof(msg->udm)) + NLA_HDRLEN * 2; in test_nlattr()
185 .nla_len = NLA_HDRLEN, in test_nlattr()
[all …]
Dtest_nlattr.h67 (nlh0_) - (NLA_HDRLEN + (slen_)); \
71 NLA_HDRLEN + (nla_data_len_); \
73 NLMSG_SPACE(hdrlen_) + NLA_HDRLEN + (nla_total_len_); \
234 TEST_NLATTR_((fd_), (nlh0_) - NLA_HDRLEN * depth_, \
235 (hdrlen_) + NLA_HDRLEN * depth_, \
244 TEST_NLATTR_((fd_), (nlh0_) - NLA_HDRLEN * depth_, \
245 (hdrlen_) + NLA_HDRLEN * depth_, \
255 TEST_NLATTR_((fd_), (nlh0_) - NLA_HDRLEN * depth_, \
256 (hdrlen_) + NLA_HDRLEN * depth_, \
297 TEST_NLATTR_((fd_), (nlh0_) - NLA_HDRLEN * depth_, \
[all …]
Dnlattr_mdba_mdb_entry.c76 len -= NLA_HDRLEN; in init_br_port_msg()
92 msg_len - NLMSG_SPACE(hdrlen) - NLA_HDRLEN); in print_br_port_msg()
102 void *nlh0 = midtail_alloc(NLMSG_SPACE(hdrlen), NLA_HDRLEN + 4 in main()
104 - 4 + NLA_HDRLEN * 2 + sizeof(struct nlattr) in main()
115 TEST_NLATTR_(fd, nlh0 - NLA_HDRLEN * 2, hdrlen + NLA_HDRLEN * 2, in main()
161 TEST_NLATTR(fd, nlh0 - NLA_HDRLEN * 2, hdrlen + NLA_HDRLEN * 2, in main()
Dnlattr_mdba_router_port.c93 .nla_len = NLA_HDRLEN + sizeof(type), in main()
96 char buf[NLMSG_ALIGN(ifindex) + NLA_HDRLEN + sizeof(type)]; in main()
101 NLA_HDRLEN + sizeof(buf)); in main()
113 memcpy(buf + NLMSG_ALIGN(ifindex) + NLA_HDRLEN, &type, sizeof(type)); in main()
114 TEST_NLATTR(fd, nlh0 - NLA_HDRLEN, hdrlen + NLA_HDRLEN, in main()
Dnlattr_ifla_af_spec.c76 - NLA_HDRLEN, \
86 msg_len - NLMSG_SPACE(hdrlen) - NLA_HDRLEN); \
175 void *nlh0 = midtail_alloc(NLMSG_SPACE(hdrlen), 3 * NLA_HDRLEN + 256); in main()
/external/strace/tests-mx32/
Dnlattr_ifla_linkinfo.c80 .nla_len = NLA_HDRLEN + (objsz_), \
93 hdrlen + NLA_HDRLEN, \
101 (objsz_) + NLA_HDRLEN, \
115 + NLA_HDRLEN + (objsz_)); \
119 .nla_len = NLA_HDRLEN + (objsz_), \
131 (nlh0_) - NLA_HDRLEN, \
132 hdrlen + NLA_HDRLEN, \
141 (objsz_) + NLA_HDRLEN, \
148 TEST_NLATTR_EX_((fd_), (nlh0_) - NLA_HDRLEN, \
149 hdrlen + NLA_HDRLEN, \
[all …]
Dnlattr.c122 msg_len = NLMSG_SPACE(sizeof(msg->udm)) + NLA_HDRLEN + 4; in test_nlattr()
127 .nla_len = NLA_HDRLEN + 4, in test_nlattr()
143 msg_len = NLMSG_SPACE(sizeof(msg->udm)) + NLA_HDRLEN + 2; in test_nlattr()
148 .nla_len = NLA_HDRLEN, in test_nlattr()
159 fd, msg_len, NLA_HDRLEN, msg_len, sprintrc(rc)); in test_nlattr()
162 msg_len = NLMSG_SPACE(sizeof(msg->udm)) + NLA_HDRLEN * 2; in test_nlattr()
167 .nla_len = NLA_HDRLEN, in test_nlattr()
177 fd, msg_len, NLA_HDRLEN, nla + 1, msg_len, sprintrc(rc)); in test_nlattr()
180 msg_len = NLMSG_SPACE(sizeof(msg->udm)) + NLA_HDRLEN * 2; in test_nlattr()
185 .nla_len = NLA_HDRLEN, in test_nlattr()
[all …]
Dtest_nlattr.h67 (nlh0_) - (NLA_HDRLEN + (slen_)); \
71 NLA_HDRLEN + (nla_data_len_); \
73 NLMSG_SPACE(hdrlen_) + NLA_HDRLEN + (nla_total_len_); \
234 TEST_NLATTR_((fd_), (nlh0_) - NLA_HDRLEN * depth_, \
235 (hdrlen_) + NLA_HDRLEN * depth_, \
244 TEST_NLATTR_((fd_), (nlh0_) - NLA_HDRLEN * depth_, \
245 (hdrlen_) + NLA_HDRLEN * depth_, \
255 TEST_NLATTR_((fd_), (nlh0_) - NLA_HDRLEN * depth_, \
256 (hdrlen_) + NLA_HDRLEN * depth_, \
297 TEST_NLATTR_((fd_), (nlh0_) - NLA_HDRLEN * depth_, \
[all …]
Dnlattr_mdba_mdb_entry.c76 len -= NLA_HDRLEN; in init_br_port_msg()
92 msg_len - NLMSG_SPACE(hdrlen) - NLA_HDRLEN); in print_br_port_msg()
102 void *nlh0 = midtail_alloc(NLMSG_SPACE(hdrlen), NLA_HDRLEN + 4 in main()
104 - 4 + NLA_HDRLEN * 2 + sizeof(struct nlattr) in main()
115 TEST_NLATTR_(fd, nlh0 - NLA_HDRLEN * 2, hdrlen + NLA_HDRLEN * 2, in main()
161 TEST_NLATTR(fd, nlh0 - NLA_HDRLEN * 2, hdrlen + NLA_HDRLEN * 2, in main()
Dnlattr_mdba_router_port.c93 .nla_len = NLA_HDRLEN + sizeof(type), in main()
96 char buf[NLMSG_ALIGN(ifindex) + NLA_HDRLEN + sizeof(type)]; in main()
101 NLA_HDRLEN + sizeof(buf)); in main()
113 memcpy(buf + NLMSG_ALIGN(ifindex) + NLA_HDRLEN, &type, sizeof(type)); in main()
114 TEST_NLATTR(fd, nlh0 - NLA_HDRLEN, hdrlen + NLA_HDRLEN, in main()
Dnlattr_ifla_af_spec.c76 - NLA_HDRLEN, \
86 msg_len - NLMSG_SPACE(hdrlen) - NLA_HDRLEN); \
175 void *nlh0 = midtail_alloc(NLMSG_SPACE(hdrlen), 3 * NLA_HDRLEN + 256); in main()
Dnlattr_ifla_port.c56 void *nlh0 = midtail_alloc(NLMSG_SPACE(hdrlen), 2 * NLA_HDRLEN + 8); in main()
/external/strace/
Dnlattr.c98 if (nla_len > NLA_HDRLEN) in decode_nlattr_with_data()
103 if (nla_len > NLA_HDRLEN) { in decode_nlattr_with_data()
112 tcp, addr + NLA_HDRLEN, in decode_nlattr_with_data()
113 nla_len - NLA_HDRLEN, in decode_nlattr_with_data()
117 printstr_ex(tcp, addr + NLA_HDRLEN, in decode_nlattr_with_data()
118 nla_len - NLA_HDRLEN, QUOTE_FORCE_HEX); in decode_nlattr_with_data()
154 if (nla.nla_len >= NLA_HDRLEN) { in decode_nlattr()
Dnetlink.h58 #undef NLA_HDRLEN
59 #define NLA_HDRLEN ((unsigned int) NLA_ALIGN(sizeof(struct nlattr))) macro
/external/libnl/lib/
Dattr.c57 return NLA_HDRLEN + payload; in nla_attr_size()
122 return (char *) nla + NLA_HDRLEN; in nla_data()
133 return nla->nla_len - NLA_HDRLEN; in nla_len()
823 if (len == NLA_HDRLEN) { in nla_nest_end()
/external/ltp/testcases/kernel/controllers/cgroup/
Dcgroup_regression_getdelays.c44 #define NLA_DATA(na) ((void *)((char*)(na) + NLA_HDRLEN))
45 #define NLA_PAYLOAD(len) (len - NLA_HDRLEN)
142 na->nla_len = nla_len + 1 + NLA_HDRLEN; in send_cmd()

12345