Home
last modified time | relevance | path

Searched refs:nlmsghdr (Results 1 – 12 of 12) sorted by relevance

/tools/include/uapi/linux/
Dnetlink.h44 struct nlmsghdr { struct
91 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr)))
96 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
97 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \
98 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \
111 struct nlmsghdr msg;
/tools/testing/selftests/net/mptcp/
Dpm_nl_ctl.c40 struct nlmsghdr *nh = (void *)data; in init_genl_req()
56 static void nl_error(struct nlmsghdr *nh) in nl_error()
87 static int do_nl_req(int fd, struct nlmsghdr *nh, int len, int max) in do_nl_req()
119 static int genl_parse_getfamily(struct nlmsghdr *nlh) in genl_parse_getfamily()
150 char data[NLMSG_ALIGN(sizeof(struct nlmsghdr)) + in resolve_mptcp_pm_netlink()
153 struct nlmsghdr *nh; in resolve_mptcp_pm_netlink()
175 char data[NLMSG_ALIGN(sizeof(struct nlmsghdr)) + in add_addr()
179 struct nlmsghdr *nh; in add_addr()
306 char data[NLMSG_ALIGN(sizeof(struct nlmsghdr)) + in del_addr()
310 struct nlmsghdr *nh; in del_addr()
[all …]
/tools/testing/selftests/netfilter/
Dnf-queue.c77 static int queue_cb(const struct nlmsghdr *nlh, void *data) in queue_cb()
120 static struct nlmsghdr *
123 struct nlmsghdr *nlh = mnl_nlmsg_put_header(buf); in nfq_build_cfg_request()
144 static struct nlmsghdr *
147 struct nlmsghdr *nlh = mnl_nlmsg_put_header(buf); in nfq_build_cfg_params()
167 static struct nlmsghdr *
174 struct nlmsghdr *nlh; in nfq_build_verdict()
212 struct nlmsghdr *nlh; in open_queue()
274 struct nlmsghdr *nlh; in mainloop()
/tools/bpf/bpftool/
Dnet.c94 typedef int (*__dump_nlmsg_t)(struct nlmsghdr *nlmsg, dump_nlmsg_t, void *cookie);
145 struct nlmsghdr *nh; in netlink_recv()
160 for (nh = (struct nlmsghdr *)buf; NLMSG_OK(nh, (unsigned int)len); in netlink_recv()
197 static int __dump_class_nlmsg(struct nlmsghdr *nlh, in __dump_class_nlmsg()
217 struct nlmsghdr nlh; in netlink_get_class()
236 static int __dump_qdisc_nlmsg(struct nlmsghdr *nlh, in __dump_qdisc_nlmsg()
256 struct nlmsghdr nlh; in netlink_get_qdisc()
275 static int __dump_filter_nlmsg(struct nlmsghdr *nlh, in __dump_filter_nlmsg()
295 struct nlmsghdr nlh; in netlink_get_filter()
315 static int __dump_link_nlmsg(struct nlmsghdr *nlh, in __dump_link_nlmsg()
[all …]
/tools/lib/bpf/
Dnlattr.h57 struct nlmsghdr nh;
117 int libbpf_nla_dump_errormsg(struct nlmsghdr *nlh);
Dnlattr.c81 static inline int nlmsg_len(const struct nlmsghdr *nlh) in nlmsg_len()
158 int libbpf_nla_dump_errormsg(struct nlmsghdr *nlh) in libbpf_nla_dump_errormsg()
Dnetlink.c27 typedef int (*__dump_nlmsg_t)(struct nlmsghdr *nlmsg, libbpf_dump_nlmsg_t,
127 struct nlmsghdr *nh; in libbpf_netlink_recv()
158 for (nh = (struct nlmsghdr *)iov.iov_base; NLMSG_OK(nh, len); in libbpf_netlink_recv()
294 static int __dump_link_nlmsg(struct nlmsghdr *nlh, in __dump_link_nlmsg()
569 static int get_tc_info(struct nlmsghdr *nh, libbpf_dump_nlmsg_t fn, in get_tc_info()
/tools/testing/selftests/net/
Dipsec.c172 static inline struct rtattr *rtattr_hdr(struct nlmsghdr *nh) in rtattr_hdr()
177 static int rtattr_pack(struct nlmsghdr *nh, size_t req_sz, in rtattr_pack()
197 static struct rtattr *_rtattr_begin(struct nlmsghdr *nh, size_t req_sz, in _rtattr_begin()
208 static inline struct rtattr *rtattr_begin(struct nlmsghdr *nh, size_t req_sz, in rtattr_begin()
214 static inline void rtattr_end(struct nlmsghdr *nh, struct rtattr *attr) in rtattr_end()
221 static int veth_pack_peerb(struct nlmsghdr *nh, size_t req_sz, in veth_pack_peerb()
249 struct nlmsghdr hdr; in netlink_check_answer()
251 struct nlmsghdr orig_msg; in netlink_check_answer()
274 struct nlmsghdr nh; in veth_add()
324 struct nlmsghdr nh; in ip4_addr_set()
[all …]
Dudpgso.c361 struct nlmsghdr *nh; in set_route_mtu()
/tools/testing/vsock/
Dvsock_diag_test.c170 struct nlmsghdr nlh; in send_req()
268 const struct nlmsghdr *h; in read_vsock_stat()
279 h = (struct nlmsghdr *)buf; in read_vsock_stat()
/tools/accounting/
Dgetdelays.c68 struct nlmsghdr n;
166 struct nlmsghdr n; in get_family_id()
469 sizeof(struct nlmsghdr), msg.n.nlmsg_len, rep_len); in main()
/tools/testing/selftests/nci/
Dnci_dev.c85 struct nlmsghdr n;
179 struct nlmsghdr n; in get_family_id()
641 struct nlmsghdr n; in get_taginfo()
733 genlhdr = (struct genlmsghdr *)((struct nlmsghdr *)evt_data + 1); in connect_tag()