Searched refs:NLMSG_LENGTH (Results 1 – 4 of 4) sorted by relevance
147 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()
92 #define NLMSG_LENGTH(len) ((len) + NLMSG_HDRLEN) macro93 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len))94 #define NLMSG_DATA(nlh) ((void*)(((char*)nlh) + NLMSG_LENGTH(0)))
298 if (h->nlmsg_len < NLMSG_LENGTH(sizeof(*err))) in read_vsock_stat()314 NLMSG_LENGTH(sizeof(struct vsock_diag_msg))) { in read_vsock_stat()
130 msg.n.nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN); in send_cmd()