/external/strace/tests/ |
D | netlink_protocol.c | 208 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(*err) + 4); in test_nlmsgerr() 213 nlh->nlmsg_len = NLMSG_HDRLEN + 4; in test_nlmsgerr() 222 fd, nlh->nlmsg_len, nlh0 + NLMSG_HDRLEN, in test_nlmsgerr() 225 nlh->nlmsg_len = NLMSG_HDRLEN + 2; in test_nlmsgerr() 230 rc = sendto(fd, nlh, NLMSG_HDRLEN + 2, MSG_DONTWAIT, NULL, 0); in test_nlmsgerr() 234 fd, NLMSG_HDRLEN + 2, NLMSG_HDRLEN + 2, sprintrc(rc)); in test_nlmsgerr() 238 nlh->nlmsg_len = NLMSG_HDRLEN + sizeof(err->error); in test_nlmsgerr() 265 fd, nlh->nlmsg_len, nlh0 + NLMSG_HDRLEN, in test_nlmsgerr() 270 nlh->nlmsg_len = NLMSG_HDRLEN + sizeof(*err); in test_nlmsgerr() 277 err->msg.nlmsg_len = NLMSG_HDRLEN; in test_nlmsgerr() [all …]
|
D | netlink_route.c | 148 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(num)); in test_nlmsg_done() 160 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(buf)); in test_rtnl_unspec() 215 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(ifinfo)); in test_rtnl_link() 236 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(msg)); in test_rtnl_addr() 261 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(msg)); in test_rtnl_route() 288 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(msg)); in test_rtnl_rule() 312 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(msg)); in test_rtnl_neigh() 328 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(msg)); in test_rtnl_neightbl() 346 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(msg)); in test_rtnl_tc() 363 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(msg)); in test_rtnl_tca() [all …]
|
D | netlink_sock_diag.c | 132 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(buf)); in test_odd_family_req() 182 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(buf)); in test_odd_family_msg() 233 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(req)); in test_unix_diag_req() 255 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(msg)); in test_unix_diag_msg() 276 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(req)); in test_netlink_diag_req() 312 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(msg)); in test_netlink_diag_msg() 337 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(req)); in test_packet_diag_req() 358 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(msg)); in test_packet_diag_msg() 386 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(req)); in test_inet_diag_sockid() 452 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(req)); in test_inet_diag_req() [all …]
|
D | netlink_selinux.c | 57 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, 4); in test_selnl_msg_unspec() 72 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(msg)); in test_selnl_msg_setenforce() 86 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(msg)); in test_selnl_msg_policyload()
|
D | nlattr_nlmsgerr.c | 49 .nlmsg_len = NLMSG_HDRLEN + 4, in init_nlmsgerr() 64 msg_len, NLMSG_HDRLEN + 4); in print_nlmsgerr()
|
D | netlink_crypto.c | 110 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(alg)); in test_crypto_msg_newalg() 152 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, 4); in test_crypto_msg_unspec()
|
D | netlink_netfilter.c | 92 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(num)); in test_nlmsg_done() 115 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, in test_nfgenmsg()
|
/external/strace/tests-mx32/ |
D | netlink_protocol.c | 208 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(*err) + 4); in test_nlmsgerr() 213 nlh->nlmsg_len = NLMSG_HDRLEN + 4; in test_nlmsgerr() 222 fd, nlh->nlmsg_len, nlh0 + NLMSG_HDRLEN, in test_nlmsgerr() 225 nlh->nlmsg_len = NLMSG_HDRLEN + 2; in test_nlmsgerr() 230 rc = sendto(fd, nlh, NLMSG_HDRLEN + 2, MSG_DONTWAIT, NULL, 0); in test_nlmsgerr() 234 fd, NLMSG_HDRLEN + 2, NLMSG_HDRLEN + 2, sprintrc(rc)); in test_nlmsgerr() 238 nlh->nlmsg_len = NLMSG_HDRLEN + sizeof(err->error); in test_nlmsgerr() 265 fd, nlh->nlmsg_len, nlh0 + NLMSG_HDRLEN, in test_nlmsgerr() 270 nlh->nlmsg_len = NLMSG_HDRLEN + sizeof(*err); in test_nlmsgerr() 277 err->msg.nlmsg_len = NLMSG_HDRLEN; in test_nlmsgerr() [all …]
|
D | netlink_route.c | 148 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(num)); in test_nlmsg_done() 160 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(buf)); in test_rtnl_unspec() 215 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(ifinfo)); in test_rtnl_link() 236 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(msg)); in test_rtnl_addr() 261 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(msg)); in test_rtnl_route() 288 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(msg)); in test_rtnl_rule() 312 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(msg)); in test_rtnl_neigh() 328 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(msg)); in test_rtnl_neightbl() 346 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(msg)); in test_rtnl_tc() 363 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(msg)); in test_rtnl_tca() [all …]
|
D | netlink_sock_diag.c | 132 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(buf)); in test_odd_family_req() 182 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(buf)); in test_odd_family_msg() 233 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(req)); in test_unix_diag_req() 255 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(msg)); in test_unix_diag_msg() 276 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(req)); in test_netlink_diag_req() 312 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(msg)); in test_netlink_diag_msg() 337 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(req)); in test_packet_diag_req() 358 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(msg)); in test_packet_diag_msg() 386 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(req)); in test_inet_diag_sockid() 452 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(req)); in test_inet_diag_req() [all …]
|
D | netlink_selinux.c | 57 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, 4); in test_selnl_msg_unspec() 72 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(msg)); in test_selnl_msg_setenforce() 86 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(msg)); in test_selnl_msg_policyload()
|
D | nlattr_nlmsgerr.c | 49 .nlmsg_len = NLMSG_HDRLEN + 4, in init_nlmsgerr() 64 msg_len, NLMSG_HDRLEN + 4); in print_nlmsgerr()
|
D | netlink_crypto.c | 110 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(alg)); in test_crypto_msg_newalg() 152 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, 4); in test_crypto_msg_unspec()
|
/external/strace/tests-m32/ |
D | netlink_protocol.c | 208 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(*err) + 4); in test_nlmsgerr() 213 nlh->nlmsg_len = NLMSG_HDRLEN + 4; in test_nlmsgerr() 222 fd, nlh->nlmsg_len, nlh0 + NLMSG_HDRLEN, in test_nlmsgerr() 225 nlh->nlmsg_len = NLMSG_HDRLEN + 2; in test_nlmsgerr() 230 rc = sendto(fd, nlh, NLMSG_HDRLEN + 2, MSG_DONTWAIT, NULL, 0); in test_nlmsgerr() 234 fd, NLMSG_HDRLEN + 2, NLMSG_HDRLEN + 2, sprintrc(rc)); in test_nlmsgerr() 238 nlh->nlmsg_len = NLMSG_HDRLEN + sizeof(err->error); in test_nlmsgerr() 265 fd, nlh->nlmsg_len, nlh0 + NLMSG_HDRLEN, in test_nlmsgerr() 270 nlh->nlmsg_len = NLMSG_HDRLEN + sizeof(*err); in test_nlmsgerr() 277 err->msg.nlmsg_len = NLMSG_HDRLEN; in test_nlmsgerr() [all …]
|
D | netlink_route.c | 148 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(num)); in test_nlmsg_done() 160 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(buf)); in test_rtnl_unspec() 215 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(ifinfo)); in test_rtnl_link() 236 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(msg)); in test_rtnl_addr() 261 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(msg)); in test_rtnl_route() 288 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(msg)); in test_rtnl_rule() 312 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(msg)); in test_rtnl_neigh() 328 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(msg)); in test_rtnl_neightbl() 346 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(msg)); in test_rtnl_tc() 363 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(msg)); in test_rtnl_tca() [all …]
|
D | netlink_sock_diag.c | 132 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(buf)); in test_odd_family_req() 182 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(buf)); in test_odd_family_msg() 233 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(req)); in test_unix_diag_req() 255 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(msg)); in test_unix_diag_msg() 276 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(req)); in test_netlink_diag_req() 312 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(msg)); in test_netlink_diag_msg() 337 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(req)); in test_packet_diag_req() 358 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(msg)); in test_packet_diag_msg() 386 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(req)); in test_inet_diag_sockid() 452 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(req)); in test_inet_diag_req() [all …]
|
D | netlink_selinux.c | 57 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, 4); in test_selnl_msg_unspec() 72 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(msg)); in test_selnl_msg_setenforce() 86 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(msg)); in test_selnl_msg_policyload()
|
D | nlattr_nlmsgerr.c | 49 .nlmsg_len = NLMSG_HDRLEN + 4, in init_nlmsgerr() 64 msg_len, NLMSG_HDRLEN + 4); in print_nlmsgerr()
|
D | netlink_crypto.c | 110 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(alg)); in test_crypto_msg_newalg() 152 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, 4); in test_crypto_msg_unspec()
|
/external/strace/ |
D | netlink.h | 47 #undef NLMSG_HDRLEN 48 #define NLMSG_HDRLEN ((unsigned int) NLMSG_ALIGN(sizeof(struct nlmsghdr))) macro
|
D | netlink.c | 620 if (nlmsg_len > NLMSG_HDRLEN) in decode_nlmsghdr_with_payload() 625 if (nlmsg_len > NLMSG_HDRLEN) { in decode_nlmsghdr_with_payload() 627 decode_payload(tcp, fd, family, nlmsghdr, addr + NLMSG_HDRLEN, in decode_nlmsghdr_with_payload() 628 nlmsg_len - NLMSG_HDRLEN); in decode_nlmsghdr_with_payload() 661 if (nlmsghdr.nlmsg_len >= NLMSG_HDRLEN) { in decode_netlink()
|
/external/libnl/include/linux-private/linux/ |
D | netlink.h | 77 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr))) macro 78 #define NLMSG_LENGTH(len) ((len)+NLMSG_ALIGN(NLMSG_HDRLEN))
|
/external/kernel-headers/original/uapi/linux/ |
D | netlink.h | 91 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr))) macro 92 #define NLMSG_LENGTH(len) ((len) + NLMSG_HDRLEN)
|
/external/iproute2/include/uapi/linux/ |
D | netlink.h | 91 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr))) macro 92 #define NLMSG_LENGTH(len) ((len) + NLMSG_HDRLEN)
|
/external/libnl/lib/genl/ |
D | genl.c | 228 nlh = (const struct nlmsghdr *)((const unsigned char *) gnlh - NLMSG_HDRLEN); in genlmsg_len() 229 return (nlh->nlmsg_len - GENL_HDRLEN - NLMSG_HDRLEN); in genlmsg_len()
|