/external/libnl/tests/ |
D | check-attr.c | 18 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/ |
D | nlattr_ifla_linkinfo.c | 80 .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 …]
|
D | nlattr.c | 122 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 …]
|
D | test_nlattr.h | 67 (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 …]
|
D | nlattr_mdba_mdb_entry.c | 76 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()
|
D | nlattr_mdba_router_port.c | 93 .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()
|
D | nlattr_ifla_af_spec.c | 76 - NLA_HDRLEN, \ 86 msg_len - NLMSG_SPACE(hdrlen) - NLA_HDRLEN); \ 175 void *nlh0 = midtail_alloc(NLMSG_SPACE(hdrlen), 3 * NLA_HDRLEN + 256); in main()
|
D | nlattr_ifla_port.c | 56 void *nlh0 = midtail_alloc(NLMSG_SPACE(hdrlen), 2 * NLA_HDRLEN + 8); in main()
|
/external/strace/tests-m32/ |
D | nlattr_ifla_linkinfo.c | 80 .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 …]
|
D | nlattr.c | 122 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 …]
|
D | test_nlattr.h | 67 (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 …]
|
D | nlattr_mdba_mdb_entry.c | 76 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()
|
D | nlattr_mdba_router_port.c | 93 .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()
|
D | nlattr_ifla_af_spec.c | 76 - 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/ |
D | nlattr_ifla_linkinfo.c | 80 .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 …]
|
D | nlattr.c | 122 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 …]
|
D | test_nlattr.h | 67 (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 …]
|
D | nlattr_mdba_mdb_entry.c | 76 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()
|
D | nlattr_mdba_router_port.c | 93 .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()
|
D | nlattr_ifla_af_spec.c | 76 - NLA_HDRLEN, \ 86 msg_len - NLMSG_SPACE(hdrlen) - NLA_HDRLEN); \ 175 void *nlh0 = midtail_alloc(NLMSG_SPACE(hdrlen), 3 * NLA_HDRLEN + 256); in main()
|
D | nlattr_ifla_port.c | 56 void *nlh0 = midtail_alloc(NLMSG_SPACE(hdrlen), 2 * NLA_HDRLEN + 8); in main()
|
/external/strace/ |
D | nlattr.c | 98 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()
|
D | netlink.h | 58 #undef NLA_HDRLEN 59 #define NLA_HDRLEN ((unsigned int) NLA_ALIGN(sizeof(struct nlattr))) macro
|
/external/libnl/lib/ |
D | attr.c | 57 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/ |
D | cgroup_regression_getdelays.c | 44 #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()
|