Home
last modified time | relevance | path

Searched refs:NLMSG_LENGTH (Results 1 – 4 of 4) sorted by relevance

/tools/lib/bpf/
Dnetlink.c147 req.nh.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)); in bpf_set_link_xdp_fd()
197 len = nlh->nlmsg_len - NLMSG_LENGTH(sizeof(*ifi)); in __dump_link_nlmsg()
291 .nlh.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)), in libbpf_nl_get_link()
314 len = nlh->nlmsg_len - NLMSG_LENGTH(sizeof(*t)); in __dump_class_nlmsg()
329 .nlh.nlmsg_len = NLMSG_LENGTH(sizeof(struct tcmsg)), in libbpf_nl_get_class()
353 len = nlh->nlmsg_len - NLMSG_LENGTH(sizeof(*t)); in __dump_qdisc_nlmsg()
368 .nlh.nlmsg_len = NLMSG_LENGTH(sizeof(struct tcmsg)), in libbpf_nl_get_qdisc()
392 len = nlh->nlmsg_len - NLMSG_LENGTH(sizeof(*t)); in __dump_filter_nlmsg()
407 .nlh.nlmsg_len = NLMSG_LENGTH(sizeof(struct tcmsg)), in libbpf_nl_get_filter()
/tools/include/uapi/linux/
Dnetlink.h92 #define NLMSG_LENGTH(len) ((len) + NLMSG_HDRLEN) macro
93 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len))
94 #define NLMSG_DATA(nlh) ((void*)(((char*)nlh) + NLMSG_LENGTH(0)))
/tools/testing/vsock/
Dvsock_diag_test.c298 if (h->nlmsg_len < NLMSG_LENGTH(sizeof(*err))) in read_vsock_stat()
314 NLMSG_LENGTH(sizeof(struct vsock_diag_msg))) { in read_vsock_stat()
/tools/accounting/
Dgetdelays.c130 msg.n.nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN); in send_cmd()