Home
last modified time | relevance | path

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

/third_party/wpa_supplicant/wpa_supplicant-2.9/src/drivers/
Dpriv_netlink.h51 #define NLMSG_LENGTH(len) ((len) + NLMSG_ALIGN(sizeof(struct nlmsghdr))) macro
52 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len))
53 #define NLMSG_DATA(nlh) ((void*) (((char*) nlh) + NLMSG_LENGTH(0)))
Dnetlink.c183 req.hdr.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)); in netlink_send_oper_ifla()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/drivers/
Dpriv_netlink.h51 #define NLMSG_LENGTH(len) ((len) + NLMSG_ALIGN(sizeof(struct nlmsghdr))) macro
52 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len))
53 #define NLMSG_DATA(nlh) ((void*) (((char*) nlh) + NLMSG_LENGTH(0)))
Dnetlink.c183 req.hdr.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)); in netlink_send_oper_ifla()
/third_party/libbpf/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)))
/third_party/libbpf/src/
Dnetlink.c249 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()
/third_party/toybox/toys/pending/
Dip.c629 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 …]
/third_party/ltp/testcases/kernel/containers/share/
Dns_ifmove.c104 req.nh.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)); in main()
/third_party/ltp/testcases/lib/
Dtst_net_iface_prefix.c61 msg.nlhdr.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifaddrmsg)); in read_iface_prefix()
/third_party/libwebsockets/lib/roles/netlink/
Dops-netlink.c137 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()
/third_party/ltp/testcases/kernel/connectors/pec/
Dpec_listener.c93 nlhdr->nlmsg_len = NLMSG_LENGTH(sizeof(*cnmsg) + cnmsg->len); in netlink_send()
/third_party/ltp/lib/
Dtst_rtnetlink.c269 ctx->curmsg->nlmsg_len = NLMSG_LENGTH(payload_size); in tst_rtnl_add_message()
/third_party/ltp/testcases/kernel/controllers/cgroup/
Dcgroup_regression_getdelays.c133 msg.n.nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN); in send_cmd()