Home
last modified time | relevance | path

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

/linux-6.12.1/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)))
/linux-6.12.1/tools/testing/selftests/net/tcp_ao/lib/
Dnetlink.c147 req.nh.nlmsg_len = NLMSG_LENGTH(sizeof(req.info)); in __add_veth()
210 req.nh.nlmsg_len = NLMSG_LENGTH(sizeof(req.info)); in __ip_addr_add()
258 req.nh.nlmsg_len = NLMSG_LENGTH(sizeof(req.rt)); in __ip_route_add()
317 req.nh.nlmsg_len = NLMSG_LENGTH(sizeof(req.info)); in __link_set_up()
361 req.nh.nlmsg_len = NLMSG_LENGTH(sizeof(req.info)); in __add_vrf()
/linux-6.12.1/tools/bpf/bpftool/
Dnet.c218 len = nlh->nlmsg_len - NLMSG_LENGTH(sizeof(*t)); in __dump_class_nlmsg()
233 .nlh.nlmsg_len = NLMSG_LENGTH(sizeof(struct tcmsg)), in netlink_get_class()
257 len = nlh->nlmsg_len - NLMSG_LENGTH(sizeof(*t)); in __dump_qdisc_nlmsg()
272 .nlh.nlmsg_len = NLMSG_LENGTH(sizeof(struct tcmsg)), in netlink_get_qdisc()
296 len = nlh->nlmsg_len - NLMSG_LENGTH(sizeof(*t)); in __dump_filter_nlmsg()
311 .nlh.nlmsg_len = NLMSG_LENGTH(sizeof(struct tcmsg)), in netlink_get_filter()
335 len = nlh->nlmsg_len - NLMSG_LENGTH(sizeof(*ifi)); in __dump_link_nlmsg()
350 .nlh.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)), in netlink_get_link()
/linux-6.12.1/tools/lib/bpf/
Dnetlink.c270 .nh.nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN), in libbpf_netlink_resolve_genl_family_id()
294 req.nh.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)); in __bpf_set_link_xdp_fd_replace()
351 len = nlh->nlmsg_len - NLMSG_LENGTH(sizeof(*ifi)); in __dump_link_nlmsg()
434 .nh.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)), in bpf_xdp_query()
484 req.nh.nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN); in bpf_xdp_query()
593 req.nh.nlmsg_len = NLMSG_LENGTH(sizeof(struct tcmsg)); in tc_qdisc_modify()
752 req.nh.nlmsg_len = NLMSG_LENGTH(sizeof(struct tcmsg)); in bpf_tc_attach()
829 req.nh.nlmsg_len = NLMSG_LENGTH(sizeof(struct tcmsg)); in __bpf_tc_detach()
896 req.nh.nlmsg_len = NLMSG_LENGTH(sizeof(struct tcmsg)); in bpf_tc_query()
/linux-6.12.1/include/uapi/linux/
Dnetlink.h101 #define NLMSG_LENGTH(len) ((len) + NLMSG_HDRLEN) macro
102 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len))
/linux-6.12.1/tools/testing/selftests/net/
Dipsec.c320 req.nh.nlmsg_len = NLMSG_LENGTH(sizeof(req.info)); in veth_add()
368 req.nh.nlmsg_len = NLMSG_LENGTH(sizeof(req.info)); in ip4_addr_set()
408 req.nh.nlmsg_len = NLMSG_LENGTH(sizeof(req.info)); in link_set_up()
436 req.nh.nlmsg_len = NLMSG_LENGTH(sizeof(req.rt)); in ip4_route_set()
925 req.nh.nlmsg_len = NLMSG_LENGTH(sizeof(req.info)); in xfrm_state_add()
1024 req.nh.nlmsg_len = NLMSG_LENGTH(0); in xfrm_state_check()
1109 req.nh.nlmsg_len = NLMSG_LENGTH(sizeof(req.info)); in xfrm_policy_add()
1182 req.nh.nlmsg_len = NLMSG_LENGTH(sizeof(req.id)); in xfrm_policy_del()
1233 req.nh.nlmsg_len = NLMSG_LENGTH(sizeof(req.id)); in xfrm_state_del()
1289 req.nh.nlmsg_len = NLMSG_LENGTH(sizeof(req.spi)); in xfrm_state_allocspi()
[all …]
Dtap.c102 req.nh.nlmsg_len = NLMSG_LENGTH(sizeof(req.info)); in dev_create()
159 req.nh.nlmsg_len = NLMSG_LENGTH(sizeof(req.info)); in dev_delete()
Dtun.c84 req.nh.nlmsg_len = NLMSG_ALIGN(NLMSG_LENGTH(sizeof(req.ifm))); in tun_delete()
/linux-6.12.1/tools/testing/vsock/
Dvsock_diag_test.c290 if (h->nlmsg_len < NLMSG_LENGTH(sizeof(*err))) in read_vsock_stat()
306 NLMSG_LENGTH(sizeof(struct vsock_diag_msg))) { in read_vsock_stat()
/linux-6.12.1/tools/testing/selftests/net/af_unix/
Ddiag_uid.c119 unsigned int rta_len = len - NLMSG_LENGTH(sizeof(*udr)); in render_response()
/linux-6.12.1/tools/testing/selftests/net/mptcp/
Dpm_nl_ctl.c53 nh->nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN); in init_genl_req()
143 msg_len = nh->nlmsg_len - NLMSG_LENGTH(GENL_HDRLEN); in capture_events()
256 len -= NLMSG_LENGTH(GENL_HDRLEN); in genl_parse_getfamily()
1064 len -= NLMSG_LENGTH(GENL_HDRLEN); in print_addrs()
1200 len -= NLMSG_LENGTH(GENL_HDRLEN); in print_limits()
/linux-6.12.1/samples/bpf/
Dxdp_router_ipv4_user.c280 req.nl.nlmsg_len = NLMSG_LENGTH(sizeof(struct rtmsg)); in get_route_table()
416 req.nl.nlmsg_len = NLMSG_LENGTH(sizeof(struct rtmsg)); in get_arp_table()
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
Dxfrm_info.c217 nh->nlmsg_len = NLMSG_LENGTH(sizeof(req.info)); in setup_xfrmi_external_dev()
Dtc_netkit.c49 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)); in create_netkit()
Dtc_redirect.c179 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)); in create_netkit()
Dtc_links.c1809 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct tcmsg)); in qdisc_replace()
/linux-6.12.1/tools/accounting/
Dprocacct.c136 msg.n.nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN); in send_cmd()
Dgetdelays.c129 msg.n.nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN); in send_cmd()
/linux-6.12.1/tools/testing/selftests/nci/
Dnci_dev.c122 msg.n.nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN); in send_cmd_mt_nla()
/linux-6.12.1/tools/testing/selftests/bpf/
Dxsk.c404 req.nh.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)); in xsk_set_mtu()