Home
last modified time | relevance | path

Searched refs:NLMSG_HDRLEN (Results 1 – 25 of 50) sorted by relevance

12

/external/strace/tests/
Dnetlink_protocol.c208 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 …]
Dnetlink_route.c148 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 …]
Dnetlink_sock_diag.c132 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 …]
Dnetlink_selinux.c57 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()
Dnlattr_nlmsgerr.c49 .nlmsg_len = NLMSG_HDRLEN + 4, in init_nlmsgerr()
64 msg_len, NLMSG_HDRLEN + 4); in print_nlmsgerr()
Dnetlink_crypto.c110 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()
Dnetlink_netfilter.c92 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/
Dnetlink_protocol.c208 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 …]
Dnetlink_route.c148 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 …]
Dnetlink_sock_diag.c132 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 …]
Dnetlink_selinux.c57 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()
Dnlattr_nlmsgerr.c49 .nlmsg_len = NLMSG_HDRLEN + 4, in init_nlmsgerr()
64 msg_len, NLMSG_HDRLEN + 4); in print_nlmsgerr()
Dnetlink_crypto.c110 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/
Dnetlink_protocol.c208 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 …]
Dnetlink_route.c148 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 …]
Dnetlink_sock_diag.c132 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 …]
Dnetlink_selinux.c57 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()
Dnlattr_nlmsgerr.c49 .nlmsg_len = NLMSG_HDRLEN + 4, in init_nlmsgerr()
64 msg_len, NLMSG_HDRLEN + 4); in print_nlmsgerr()
Dnetlink_crypto.c110 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/
Dnetlink.h47 #undef NLMSG_HDRLEN
48 #define NLMSG_HDRLEN ((unsigned int) NLMSG_ALIGN(sizeof(struct nlmsghdr))) macro
Dnetlink.c620 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/
Dnetlink.h77 #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/
Dnetlink.h91 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr))) macro
92 #define NLMSG_LENGTH(len) ((len) + NLMSG_HDRLEN)
/external/iproute2/include/uapi/linux/
Dnetlink.h91 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr))) macro
92 #define NLMSG_LENGTH(len) ((len) + NLMSG_HDRLEN)
/external/libnl/lib/genl/
Dgenl.c228 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()

12