Searched refs:NLMSG_LENGTH (Results 1 – 20 of 20) sorted by relevance
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)))
147 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()
218 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()
270 .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()
101 #define NLMSG_LENGTH(len) ((len) + NLMSG_HDRLEN) macro102 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len))
320 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 …]
102 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()
84 req.nh.nlmsg_len = NLMSG_ALIGN(NLMSG_LENGTH(sizeof(req.ifm))); in tun_delete()
290 if (h->nlmsg_len < NLMSG_LENGTH(sizeof(*err))) in read_vsock_stat()306 NLMSG_LENGTH(sizeof(struct vsock_diag_msg))) { in read_vsock_stat()
119 unsigned int rta_len = len - NLMSG_LENGTH(sizeof(*udr)); in render_response()
53 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()
280 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()
217 nh->nlmsg_len = NLMSG_LENGTH(sizeof(req.info)); in setup_xfrmi_external_dev()
49 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)); in create_netkit()
179 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)); in create_netkit()
1809 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct tcmsg)); in qdisc_replace()
136 msg.n.nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN); in send_cmd()
129 msg.n.nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN); in send_cmd()
122 msg.n.nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN); in send_cmd_mt_nla()
404 req.nh.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)); in xsk_set_mtu()