Searched refs:NLMSG_LENGTH (Results 1 – 13 of 13) sorted by relevance
51 #define NLMSG_LENGTH(len) ((len) + NLMSG_ALIGN(sizeof(struct nlmsghdr))) macro52 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len))53 #define NLMSG_DATA(nlh) ((void*) (((char*) nlh) + NLMSG_LENGTH(0)))
183 req.hdr.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)); in netlink_send_oper_ifla()
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)))
249 req.nh.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)); in __bpf_set_link_xdp_fd_replace()306 len = nlh->nlmsg_len - NLMSG_LENGTH(sizeof(*ifi)); in __dump_link_nlmsg()363 .nh.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)), in bpf_xdp_query()486 req.nh.nlmsg_len = NLMSG_LENGTH(sizeof(struct tcmsg)); in tc_qdisc_modify()645 req.nh.nlmsg_len = NLMSG_LENGTH(sizeof(struct tcmsg)); in bpf_tc_attach()721 req.nh.nlmsg_len = NLMSG_LENGTH(sizeof(struct tcmsg)); in __bpf_tc_detach()788 req.nh.nlmsg_len = NLMSG_LENGTH(sizeof(struct tcmsg)); in bpf_tc_query()
629 request.mhdr.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)); in linkupdate()857 int len = h->nlmsg_len - NLMSG_LENGTH(sizeof(*iface)); in get_link_info()970 request.mhdr.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)); in link_show()1008 if ((len = h->nlmsg_len - NLMSG_LENGTH(sizeof(*ifa))) < 0) { in print_addrinfo()1126 req.nlm.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifaddrmsg)); in ipaddrupdate()1404 int len1 = addr_ptr->nlmsg_len - NLMSG_LENGTH(sizeof(*addressInfo)); in ipaddr_print()1576 int32_t tvar, msglen = mhdr->nlmsg_len - NLMSG_LENGTH(sizeof(struct rtmsg)); in display_route_info()1711 int tvar, msglen = mhdr->nlmsg_len - NLMSG_LENGTH(sizeof(struct rtmsg)); in display_route_info()1758 if (mhdr->nlmsg_len < NLMSG_LENGTH(sizeof(struct nlmsgerr))) in display_route_info()1791 request.mhdr.nlmsg_len = NLMSG_LENGTH(sizeof(struct rtmsg)); in route_get()[all …]
104 req.nh.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)); in main()
61 msg.nlhdr.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifaddrmsg)); in read_iface_prefix()
137 len = (unsigned int)(h->nlmsg_len - NLMSG_LENGTH(sizeof(*ifi))); in rops_handle_POLLIN_netlink()560 req.hdr.nlmsg_len = NLMSG_LENGTH(sizeof(req.gen)); in rops_pt_init_destroy_netlink()
93 nlhdr->nlmsg_len = NLMSG_LENGTH(sizeof(*cnmsg) + cnmsg->len); in netlink_send()
269 ctx->curmsg->nlmsg_len = NLMSG_LENGTH(payload_size); in tst_rtnl_add_message()
133 msg.n.nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN); in send_cmd()